From 93a3115bf3477796b39070fe520a4d3ca71114f7 Mon Sep 17 00:00:00 2001 From: Erik Gomez Date: Mon, 9 Jan 2023 17:34:02 -0600 Subject: [PATCH] go back to dynamic header --- build_python_framework_pkgs.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build_python_framework_pkgs.zsh b/build_python_framework_pkgs.zsh index 97058a7..6008c91 100755 --- a/build_python_framework_pkgs.zsh +++ b/build_python_framework_pkgs.zsh @@ -131,8 +131,10 @@ else /usr/bin/sudo /usr/sbin/chown -R ${CONSOLEUSER}:wheel "$TOOLSDIR/$TYPE" fi -# Force the C path to allow tools like cffi/xattr to build without wheels -export C_INCLUDE_PATH="/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/Current/Headers/" +# Force the C path depending on the version of Python to allow tools like cffi/xattr to build without wheels otherwise it errors +# Can't use Apple's headers for 3.10 and higher as they are (currently) 3.9 +export C_INCLUDE_PATH="/Library/Frameworks/Python.framework/Versions/${PYTHON_BIN_VERSION}/include/python${PYTHON_BIN_VERSION}/" +# export C_INCLUDE_PATH="/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/Current/Headers/" # build the framework RP_EXTRACT_BINDIR="${RP_BINDIR}/relocatable-python-${RP_SHA}"