-
Notifications
You must be signed in to change notification settings - Fork 313
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
Add pyenv shims to PATH #1263
Add pyenv shims to PATH #1263
Conversation
Recently the pyenv init command does not add pyenv shims to the `PATH` anymore. This needs to be done now explicitly with a new command. We add the command in build scripts and our documentation to make sure shims are available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's get our CI green again.
Makefile
Outdated
@@ -29,8 +29,7 @@ VENV_ACTIVATE = . $(VENV_ACTIVATE_FILE) | |||
VEPYTHON = $(VENV_NAME)/bin/$(PY_BIN) | |||
VEPYLINT = $(VENV_NAME)/bin/pylint | |||
PYENV_ERROR = "\033[0;31mIMPORTANT\033[0m: Please install pyenv.\n" | |||
PYENV_PATH_ERROR = "\033[0;31mIMPORTANT\033[0m: Please add $(HOME)/$(PYENV_REGEX) to your PATH env.\n" | |||
PYENV_PREREQ_HELP = "\033[0;31mIMPORTANT\033[0m: please add \033[0;31meval \"\$$(pyenv init -)\"\033[0m to your bash profile and restart your terminal before proceeding any further.\n" | |||
PYENV_PREREQ_HELP = "\033[0;31mIMPORTANT\033[0m: please add \033[0;31meval \"\$$(pyenv init -)\"\033[0m and \033[0;31meval \"\$$(pyenv init --path)\"\033[0m to your bash profile and restart your terminal before proceeding any further.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline maybe we just reference the instructions; the most authoritative form I think is by executing pyenv init
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in ffb25ba.
docs/developing.rst
Outdated
@@ -6,7 +6,7 @@ Prerequisites | |||
|
|||
Install the following software packages: | |||
|
|||
* Pyenv installed and ``eval "$(pyenv init -)"`` is added to the shell configuration file. For more details please refer to the PyEnv `installation instructions <https://github.com/pyenv/pyenv#installation>`_. | |||
* Pyenv installed, ``eval "$(pyenv init -)"`` and ``eval "$(pyenv init --path)"`` is added to the shell configuration file. For more details please refer to the PyEnv `installation instructions <https://github.com/pyenv/pyenv#installation>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise here, let's reference pyenv init
for the prerequisites.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in ffb25ba.
@@ -44,6 +44,7 @@ function build { | |||
export LC_ALL=en_US.UTF-8 | |||
update_pyenv | |||
eval "$(pyenv init -)" | |||
eval "$(pyenv init --path)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should leave a breadcrumb where this comes from i.e. either pyenv/pyenv#1906 (comment) or the issue itself pyenv/pyenv#1906
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in ffb25ba.
Recently the pyenv init command does not add pyenv shims to the
PATH
anymore. This needs to be done now explicitly with a new command. We add
the command in build scripts and our documentation to make sure shims
are available.