Skip to content

Programmatically install missing python with pyenv #6408

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

Open
ohshazbot opened this issue May 20, 2025 · 0 comments
Open

Programmatically install missing python with pyenv #6408

ohshazbot opened this issue May 20, 2025 · 0 comments

Comments

@ohshazbot
Copy link

Automatic Python Installation is a great feature and I love it. I want to use it more, however I'm thinking it's tied to having stdin or something, because I cannot programmatically install python along with my code on a remote resource. It would be swell if there was an environment variable or flag or something to say "yes, please always install this missing python version if I have pyenv available".

Is your feature request related to a problem? Please describe.

I'm trying to do a remote installation via ansible and am trying to reduce having to track the intended version of python in multiple places

Describe the solution you'd like

A flag or environment variable that would:

  1. be treated as an automatic yes response in the conditions when the version of python isn't available by pyenv is available
  2. still works when pipenv install is being executed without stdin (or whatever mechanism is used to distinguish this case from the "was not found... You can specify specific versions of Python with" case.

Describe alternatives you've considered

I tried piping yes, but that does not work via these remote executations. I'm currently working on a manual solution that parses python version out of the Pipfile (having a utility that can return that detail would help)

Additional context

I'm operating against a few LTS versions of Ubuntu, and python 3.10+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant