Skip to content

Instantly share code, notes, and snippets.

@Tarliton
Last active March 11, 2024 19:00
Show Gist options
  • Save Tarliton/7fc1d1fba706a8c2b892579215af4395 to your computer and use it in GitHub Desktop.
Save Tarliton/7fc1d1fba706a8c2b892579215af4395 to your computer and use it in GitHub Desktop.
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
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" CFLAGS="-march=skylake -mtune=skylake -fno-semantic-interposition" pyenv install -k -v 3.11.4
# 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