Last active
October 8, 2024 14:15
-
-
Save Tarliton/7fc1d1fba706a8c2b892579215af4395 to your computer and use it in GitHub Desktop.
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
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev systemtap-sdt-dev | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc | |
docker run --rm -it gcc:11 bash -c "gcc -march=native -Q --help=target " | |
CONFIGURE_OPTS="--with-lto --enable-optimizations" CFLAGS="-march=znver2 -mtune=znver2 -fno-semantic-interposition" pyenv install -k -v 3.9.4 | |
CONFIGURE_OPTS="--with-lto --enable-optimizations --with-computed-gotos --enable-ipv6 --with-system-ffi --with-dtrace --enable-experimental-jit" CFLAGS="-march=skylake -mtune=skylake -fno-semantic-interposition" pyenv install -k -v 3.13.0 | |
# CFLAGS="-fuse-ld=mold" | |
#virtualenv | |
~/.pyenv/versions/3.8.2/bin/python -m venv ~/.virtualenvs/myenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment