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

Installation of specific version of pyenv #120

Closed
Valt25 opened this issue Nov 9, 2021 · 2 comments · Fixed by #126
Closed

Installation of specific version of pyenv #120

Valt25 opened this issue Nov 9, 2021 · 2 comments · Fixed by #126

Comments

@Valt25
Copy link

Valt25 commented Nov 9, 2021

Prelude

Our CI process use pre-built image with pyenv installed. Lucky we have no need to rebuild that image for half a year.

Problem

But this week I have need to make some minor changes in build-script, and after success build, I can not use that image, because pyenv have not been installed properly.

As I found out, it was because we have used installer to install pyenv:
curl https://pyenv.run | bash

It is similar problem to:
#112
#103

And simple fix was to add some path to PATH)

Key problem

But the key problem is that installer use last version of installer to install last version of pyenv. For half a year last version have been changed and installation process have follow it. It is ok for any product to develop, even with breaking changes.

Questions and discussion

It is not ok, depends on last commit in repository of one of several dependencies. In that case reproducability restricted by time between 2 breaking changes commits.

So my question is how can I install specific version of pyenv?

One of ad-hoc solution i have asked on stackoverflow: https://stackoverflow.com/questions/69887414/how-can-i-install-specific-version-of-pyenv/69888820#69888820

If there is no way to install specific version of pyenv using pyenv-installer(or even specific version of installer), then let this issue would be a start of disscussion wheather it is really necessary feature?

@native-api
Copy link
Member

You can install any commit of Pyenv via a Git checkout.

@Valt25
Copy link
Author

Valt25 commented Nov 9, 2021

You can install any commit of Pyenv via a Git checkout.

Yes, that is working solution, but in that case I can use out-of-the-box pyenv-installer

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

Successfully merging a pull request may close this issue.

2 participants