-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make some dependency changes, support Python 3.10 and 3.11 (#5611)
Co-authored-by: jack1142 <[email protected]>
- Loading branch information
Showing
59 changed files
with
322 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
docs/install_guides/_includes/_create-env-with-venv-outro.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
And activate it with the following command: | ||
|
||
.. prompt:: bash | ||
|
||
source ~/redenv/bin/activate | ||
|
||
.. important:: | ||
|
||
You must activate the virtual environment with the above command every time you open a new | ||
shell to run, install or update Red. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. include:: _includes/_create-env-with-venv-intro.rst | ||
|
||
.. prompt:: bash | ||
|
||
python3.10 -m venv ~/redenv | ||
|
||
.. include:: _includes/_create-env-with-venv-outro.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. include:: _includes/_create-env-with-venv-intro.rst | ||
|
||
.. prompt:: bash | ||
|
||
python3.11 -m venv ~/redenv | ||
|
||
.. include:: _includes/_create-env-with-venv-outro.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. include:: _includes/_create-env-with-venv-intro.rst | ||
|
||
.. prompt:: bash | ||
|
||
python3.9 -m venv ~/redenv | ||
|
||
.. include:: _includes/_create-env-with-venv-outro.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
---------------------------- | ||
Installing Python with pyenv | ||
---------------------------- | ||
|
||
On distributions where Python 3.10 needs to be compiled from source, we recommend the use of pyenv. | ||
This simplifies the compilation process and has the added bonus of simplifying setting up Red in a | ||
virtual environment. | ||
|
||
.. include:: _includes/_install-pyenv-and-setup-path.rst | ||
|
||
.. prompt:: bash | ||
|
||
CONFIGURE_OPTS=--enable-optimizations pyenv install 3.10.9 -v | ||
|
||
This may take a long time to complete, depending on your hardware. For some machines (such as | ||
Raspberry Pis and micro-tier VPSes), it may take over an hour; in this case, you may wish to remove | ||
the ``CONFIGURE_OPTS=--enable-optimizations`` part from the front of the command, which will | ||
drastically reduce the install time. However, be aware that this will make Python run about 10% | ||
slower. | ||
|
||
After that is finished, run: | ||
|
||
.. prompt:: bash | ||
|
||
pyenv global 3.10.9 | ||
|
||
Pyenv is now installed and your system should be configured to run Python 3.10. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.