pypy: use the official sitePackages install path
This commit is contained in:
parent
d748ac851c
commit
fc2874d02e
@ -119,7 +119,7 @@ let
|
|||||||
isPypy = true;
|
isPypy = true;
|
||||||
buildEnv = callPackage ../python/wrapper.nix { python = self; };
|
buildEnv = callPackage ../python/wrapper.nix { python = self; };
|
||||||
interpreter = "${self}/bin/${executable}";
|
interpreter = "${self}/bin/${executable}";
|
||||||
sitePackages = "lib/${libPrefix}/site-packages";
|
sitePackages = "site-packages";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true; # almost no parallelization without STM
|
enableParallelBuilding = true; # almost no parallelization without STM
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
addPythonPath() {
|
addPythonPath() {
|
||||||
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/pypy2.6/site-packages
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/site-packages
|
||||||
}
|
}
|
||||||
|
|
||||||
toPythonPath() {
|
toPythonPath() {
|
||||||
local paths="$1"
|
local paths="$1"
|
||||||
local result=
|
local result=
|
||||||
for i in $paths; do
|
for i in $paths; do
|
||||||
p="$i/lib/pypy2.6/site-packages"
|
p="$i/site-packages"
|
||||||
result="${result}${result:+:}$p"
|
result="${result}${result:+:}$p"
|
||||||
done
|
done
|
||||||
echo $result
|
echo $result
|
||||||
|
Loading…
Reference in New Issue
Block a user