wrap-python: fix pypy site-packages path
This commit is contained in:
parent
cc30e48624
commit
855777ad22
|
@ -7,7 +7,7 @@ with lib;
|
||||||
|
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
deps = makeWrapper;
|
deps = makeWrapper;
|
||||||
substitutions.libPrefix = python.libPrefix;
|
substitutions.sitePackages = python.sitePackages;
|
||||||
substitutions.executable = python.interpreter;
|
substitutions.executable = python.interpreter;
|
||||||
substitutions.python = python;
|
substitutions.python = python;
|
||||||
substitutions.magicalSedExpression = let
|
substitutions.magicalSedExpression = let
|
||||||
|
|
|
@ -92,7 +92,7 @@ _addToPythonPath() {
|
||||||
pythonPathsSeen[$dir]=1
|
pythonPathsSeen[$dir]=1
|
||||||
# addToSearchPath is defined in stdenv/generic/setup.sh. It will have
|
# addToSearchPath is defined in stdenv/generic/setup.sh. It will have
|
||||||
# the effect of calling `export program_X=$dir/...:$program_X`.
|
# 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
|
addToSearchPath program_PATH $dir/bin
|
||||||
|
|
||||||
# Inspect the propagated inputs (if they exist) and recur on them.
|
# 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
|
if $(echo -n $x |grep -q python-recursive-pth-loader); then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if test -d "$x"/lib/@libPrefix@/site-packages; then
|
if test -d "$x"/@sitePackages@; then
|
||||||
echo $x/lib/@libPrefix@/site-packages \
|
echo $x/@sitePackages@ \
|
||||||
>> "$out"/lib/@libPrefix@/site-packages/${name}-nix-python-$category.pth
|
>> "$out"/@sitePackages@/${name}-nix-python-$category.pth
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue