From f58ac5b70e13d26646faa5b0082ee94614507c2e Mon Sep 17 00:00:00 2001 From: Erik Gomez Date: Mon, 9 Jan 2023 16:42:19 -0600 Subject: [PATCH] get builds working locally (finally) --- build_python_framework_pkgs.zsh | 3 +++ requirements_minimal.txt | 7 ++++++- requirements_recommended.txt | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build_python_framework_pkgs.zsh b/build_python_framework_pkgs.zsh index 4216c02..8e8a111 100755 --- a/build_python_framework_pkgs.zsh +++ b/build_python_framework_pkgs.zsh @@ -120,6 +120,9 @@ else /usr/bin/sudo /usr/sbin/chown -R ${CONSOLEUSER}:wheel "$TOOLSDIR/$TYPE" fi +# Force the C Path depending on the version of Python to allow tools like cffi/xattr to build without wheels +export C_INCLUDE_PATH="/Library/Frameworks/Python.framework/Versions/${PYTHON_BIN_VERSION}/include/python${PYTHON_BIN_VERSION}" + # build the framework RP_EXTRACT_BINDIR="${RP_BINDIR}/relocatable-python-${RP_SHA}" "${RP_EXTRACT_BINDIR}/make_relocatable_python_framework.py" \ diff --git a/requirements_minimal.txt b/requirements_minimal.txt index bde9774..b2aa643 100644 --- a/requirements_minimal.txt +++ b/requirements_minimal.txt @@ -1,2 +1,7 @@ -pycparser=2.21 cffi==1.15.1 +--no-binary cffi +pycparser==2.21 +pyobjc==9.0.1 +six==1.16.0 +xattr==0.10.1 +--no-binary xattr diff --git a/requirements_recommended.txt b/requirements_recommended.txt index 13df444..413f10a 100644 --- a/requirements_recommended.txt +++ b/requirements_recommended.txt @@ -4,6 +4,7 @@ attrs==22.2.0 black==22.12.0 certifi==2022.12.7 cffi==1.15.1 +--no-binary cffi cfgv==3.3.1 charset-normalizer==2.1.1 click==8.1.3 @@ -36,3 +37,4 @@ tomli==2.0.1 urllib3==1.26.13 virtualenv==20.17.1 xattr==0.10.1 +--no-binary xattr