Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could we leverage python-environment-tools? #21180

Open
sureshjoshi opened this issue Jul 18, 2024 · 3 comments
Open

Could we leverage python-environment-tools? #21180

sureshjoshi opened this issue Jul 18, 2024 · 3 comments
Labels
backend: Python Python backend-related issues enhancement question

Comments

@sureshjoshi
Copy link
Member

I've noticed that sometimes finding the appropriate python on my system can take 0.5-1s per run (not sure why, I'm basing this off the logs I see while running).

Around the same time, I saw a note in VSCode about this:
https://github.com/microsoft/python-environment-tools

I have done approximately zero research into this on pants, but I wanted to create a ticket before I forgot about this entirely.

🤷🏽

Alternatives:

My preference would be to setup PBS downloads and use those directly, and keep the system out of the equation as much as possible.

@cburroughs
Copy link
Contributor

I've also noticed that finding the interpreter 'feels slow'. Speculation: I wonder if the inotify work would allow us to repeat that work less often.

@sureshjoshi
Copy link
Member Author

FWIW automatic discovery by pants was also one of the (many) banes of my existence before scie-pants packaged and released its own Pythons. Everything worked pretty seamlessly since that happened.

Cleaning up the runtime interpreter for performance (and determinism across machines) would be nice, but also gotta be careful it's not a breaking change.

In my ideal world, Pants would always provide the tool that is required, with an escape hatch to use system tools, not the other way around 🤷🏽

@huonw huonw added the backend: Python Python backend-related issues label Jul 28, 2024
@huonw
Copy link
Contributor

huonw commented Jul 28, 2024

Also related: "python providers" like pants.backend.python.providers.experimental.pyenv and pants.backend.python.providers.experimental.pyenv.custom_install and the WIP #19462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Python Python backend-related issues enhancement question
Projects
None yet
Development

No branches or pull requests

3 participants