glamorous-vegetable-64929
05/02/2024, 1:06 PMpython -m module
) and the "catch" is that the python interpreter must not be the default one.
What I have tried to do is the following:
shell_source(
source="./my-script.sh",
dependencies=[
"//tools/pants/dev:dev_env_export",
]
)
python_sources(
name="dev_env_export",
interpreter_constraints=["CPython==3.9.*"],
resolve = "dev-pants",
dependencies=[
"//tools/pants/dev:dev-pants",
]
)
pants_requirements(
name = "dev-pants",
resolve = "dev-pants"
)
However, pants_requirements
gets processed with the default interpreter (Py312), which then fails. What's the right way to make pants_requirement
use Py39?
Thanks 🙏square-psychiatrist-19087
05/02/2024, 1:10 PMsquare-psychiatrist-19087
05/02/2024, 1:11 PMglamorous-vegetable-64929
05/02/2024, 1:35 PM