Skip to content

Instantly share code, notes, and snippets.

@mchapman87501
Last active September 14, 2019 13:57
Show Gist options
  • Save mchapman87501/30cddaa34f708e9f9d6a28e55f4ab5a9 to your computer and use it in GitHub Desktop.
Save mchapman87501/30cddaa34f708e9f9d6a28e55f4ab5a9 to your computer and use it in GitHub Desktop.
Configure Python 3.8.0b2 with home-brew tcl-tk and openssl
#!/bin/zsh
# Configure Python 3.8.0b2 with homebrew tcl-tk and openssl
# on macOS Catalina public beta with Xcode 11 beta 4
# Installs to ~/local.
set -e -u
brew update
brew install openssl tcl-tk
export CPPFLAGS="-I/usr/local/opt/tcl-tk/include -I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/opt/tcl-tk/lib -L/usr/local/opt/openssl/lib"
# Packages such as Anaconda Python sometimes include compiler toolchain
# components that are incompatible w. those included w. Xcode. Ensure default
# tools are found first. (Must also do this in the environment where 'make' is run.)
export PATH=/usr/bin:${PATH}
./configure --with-openssl=/usr/local/opt/openssl --prefix=${HOME}/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment