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 Florian Klink
parent c997a2ac27
commit 1a65c5df5f
4 changed files with 172 additions and 1 deletions

View File

@@ -41,7 +41,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