Last active
April 4, 2023 10:35
-
-
Save smuuf/ecf78e000713acaacc99116e9a2ca480 to your computer and use it in GitHub Desktop.
Simple install any version of pypy
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 is the name of archive taken from https://downloads.python.org/pypy/ | |
PYPY_VER="pypy3.9-v7.3.11-linux64" | |
PYPY_VER_NUM=`echo ${PYPY_VER} | grep -oP "v(\d\.?)+" | sed -r 's/[v.]//g'` | |
cd ~ | |
mkdir pypy | |
wget https://downloads.python.org/pypy/$PYPY_VER.tar.bz2 && tar -xvjf $PYPY_VER.tar.bz2 | |
rm $PYPY_VER.tar.bz2 | |
mv $PYPY_VER pypy/ | |
sudo ln -s ~/pypy/$PYPY_VER/bin/pypy3 /usr/bin/pypy3-$PYPY_VER_NUM; chmod +x /usr/bin/pypy3-$PYPY_VER_NUM | |
# In this example, the resulting binary has this form: pypy3-732, | |
# which is a symlink to /home/username/pypy/pypy3.6-v7.3.2-linux64/bin/pypy3 | |
# You can then create venv with specified pypy version using this: | |
# $ pypy3-732 -m venv /home/username/envs/some-pypy732-venv-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment