Skip to content

Instantly share code, notes, and snippets.

@gwerbin
Created April 3, 2024 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwerbin/658a16130679f9b54574bc367cb4ae94 to your computer and use it in GitHub Desktop.
Save gwerbin/658a16130679f9b54574bc367cb4ae94 to your computer and use it in GitHub Desktop.
Optimized builds with Pyenv
brew install openssl@3 readline tcl-tk
export PYENV_CCACHE_DISABLE=1
export PYTHON_CFLAGS='-mcpu=native'
export PYTHON_CONFIGURE_OPTS='--enable-optimizations'
MAKE_OPTS='-j4' pyenv install -f 3.8
export PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto'
MAKE_OPTS='-j4' pyenv install -f 3.9 3.10 3.11 3.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment