Skip to content

Instantly share code, notes, and snippets.

@saulshanabrook
Created October 17, 2022 17:23
Show Gist options
  • Save saulshanabrook/6c8969c3564f73692a7d766b51f7facb to your computer and use it in GitHub Desktop.
Save saulshanabrook/6c8969c3564f73692a7d766b51f7facb to your computer and use it in GitHub Desktop.
Configure CPython Mac
#!/usr/local/bin/fish
set fish_trace on
# https://stackoverflow.com/questions/57746792/homebrews-llvm-fatal-error-stdio-h-file-not-found-on-macos
set LLVM_PATH "/usr/local/opt/llvm"
set LLVM_VERSION "21.6.0"
set -x PATH "$LLVM_PATH:$PATH"
set -x SDKROOT (xcrun --sdk macosx --show-sdk-path)
set -x LD_LIBRARY_PATH "$LLVM_PATH/lib/"
set -x DYLD_LIBRARY_PATH "$LLVM_PATH/lib/"
set -x CPATH "$LLVM_PATH/lib/clang/$LLVM_VERSION/include/"
set -x LDFLAGS "-L$LLVM_PATH/lib -F/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/"
set -x CPPFLAGS "-I$LLVM_PATH/include"
set -x CC "$LLVM_PATH/bin/clang -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
set -x CXX "$LLVM_PATH/bin/clang++ -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
set
PKG_CONFIG_PATH=(brew --prefix tcl-tk)/lib/pkgconfig SYSTEM_VERSION_COMPAT=1 \
./configure --with-pydebug --with-openssl=(brew --prefix openssl@1.1)
and make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment