diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-12-20 14:03:23 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-12-20 14:18:25 +0000 |
commit | 855777ad22e056557d8e8a8c71aebb156f21a711 (patch) | |
tree | f356fb465a7623d09326362c76f7cf68e1f6cf12 /pkgs/development/interpreters/python/wrap.sh | |
parent | cc30e486246c5e399d812e87e7f6c2fc38760d74 (diff) | |
download | nixpkgs-855777ad22e056557d8e8a8c71aebb156f21a711.tar nixpkgs-855777ad22e056557d8e8a8c71aebb156f21a711.tar.gz nixpkgs-855777ad22e056557d8e8a8c71aebb156f21a711.tar.bz2 nixpkgs-855777ad22e056557d8e8a8c71aebb156f21a711.tar.lz nixpkgs-855777ad22e056557d8e8a8c71aebb156f21a711.tar.xz nixpkgs-855777ad22e056557d8e8a8c71aebb156f21a711.tar.zst nixpkgs-855777ad22e056557d8e8a8c71aebb156f21a711.zip |
wrap-python: fix pypy site-packages path
Diffstat (limited to 'pkgs/development/interpreters/python/wrap.sh')
-rw-r--r-- | pkgs/development/interpreters/python/wrap.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/interpreters/python/wrap.sh b/pkgs/development/interpreters/python/wrap.sh index 01b573e6ad5..6fa8c316a17 100644 --- a/pkgs/development/interpreters/python/wrap.sh +++ b/pkgs/development/interpreters/python/wrap.sh @@ -92,7 +92,7 @@ _addToPythonPath() { pythonPathsSeen[$dir]=1 # addToSearchPath is defined in stdenv/generic/setup.sh. It will have # the effect of calling `export program_X=$dir/...:$program_X`. - addToSearchPath program_PYTHONPATH $dir/lib/@libPrefix@/site-packages + addToSearchPath program_PYTHONPATH $dir/@sitePackages@ addToSearchPath program_PATH $dir/bin # Inspect the propagated inputs (if they exist) and recur on them. @@ -113,9 +113,9 @@ createBuildInputsPth() { if $(echo -n $x |grep -q python-recursive-pth-loader); then continue fi - if test -d "$x"/lib/@libPrefix@/site-packages; then - echo $x/lib/@libPrefix@/site-packages \ - >> "$out"/lib/@libPrefix@/site-packages/${name}-nix-python-$category.pth + if test -d "$x"/@sitePackages@; then + echo $x/@sitePackages@ \ + >> "$out"/@sitePackages@/${name}-nix-python-$category.pth fi done fi |