Address common issues with load path configuration in docs (#5356)

* Add instructions on how to add pyenv to load path

* Support zsh in pyenv load path instructions

* Make instructions for Mac work when shell-specific profile file exists

* Includes are weird...

* .

* Fix my misunderstanding of what files zsh sources

* Operator precedence, or something like that
This commit is contained in:
jack1142
2021-11-02 20:38:06 +01:00
committed by GitHub
parent 6c4e5af5ee
commit 78c92cc766
4 changed files with 30 additions and 18 deletions

View File

@@ -6,14 +6,7 @@ On distributions where Python 3.9 needs to be compiled from source, we recommend
This simplifies the compilation process and has the added bonus of simplifying setting up Red in a
virtual environment.
.. prompt:: bash
command -v pyenv && pyenv update || curl https://pyenv.run | bash
**After this command, you may see a warning about 'pyenv' not being in the load path. Follow the
instructions given to fix that, then close and reopen your shell.**
Then run the following command:
.. include:: _includes/_install-pyenv-and-setup-path.rst
.. prompt:: bash