fresh-mechanic-68429
01/22/2024, 5:05 PMflat-zoo-31952
01/22/2024, 6:01 PMflat-zoo-31952
01/22/2024, 6:02 PMwide-midnight-78598
01/22/2024, 6:19 PMflat-zoo-31952
01/22/2024, 6:21 PMpants_requirements()
bit will make sure that the appropriate packages are in the set of dependencies and then it should work just like developing anything elsefresh-mechanic-68429
01/22/2024, 6:29 PM[python]
enable_resolves = true
interpreter_constraints = ["CPython>=3.9.*"]
[python.resolves]
pants-plugins = "lock.txt"
[python.resolves_to_interpreter_constraints]
pants-plugins = ["==3.9.*"]
and use that resolve name in the BUILD for the pants_requirements
pants_requirements(
name="pants",
resolve="pants-plugins",
)
Export that lockfile to a virtual env
pants export --resolve=pants-plugins
Then in VSCode set the python interpreter path
{
"python.defaultInterpreterPath": "dist/export/python/virtualenvs/pants-plugins/3.9.18"
}
flat-zoo-31952
01/22/2024, 7:10 PMhappy-kitchen-89482
01/23/2024, 12:22 AMfresh-mechanic-68429
01/23/2024, 4:48 AM