cpython: fix finding headers when cross-compiling extension modules

This commit is contained in:
Ben Wolsieffer
2020-09-25 21:40:10 -04:00
committed by Frederik Rietdijk
parent 5354cd0a16
commit 11806b6ede
4 changed files with 170 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
mv wheel* wheel
# Set up PYTHONPATH. The above folders need to be on PYTHONPATH
# $out is where we are installing to and takes precedence
export PYTHONPATH="$out/${python.sitePackages}:$(pwd)/pip/src:$(pwd)/setuptools:$(pwd)/setuptools/pkg_resources:$(pwd)/wheel"
export PYTHONPATH="$out/${python.sitePackages}:$(pwd)/pip/src:$(pwd)/setuptools:$(pwd)/setuptools/pkg_resources:$(pwd)/wheel:$PYTHONPATH"
echo "Building setuptools wheel..."
pushd setuptools