Merge pull request #52568 from Mic92/pypy-fix
python-wrap: fix for pypy
This commit is contained in:
commit
8fcabc9ee6
@ -201,7 +201,6 @@ in
|
|||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type="simple";
|
Type="simple";
|
||||||
Environment="PYTHONPATH=${glusterfs}/usr/lib/python2.7/site-packages";
|
|
||||||
PIDFile="/run/glustereventsd.pid";
|
PIDFile="/run/glustereventsd.pid";
|
||||||
ExecStart="${glusterfs}/sbin/glustereventsd --pid-file /run/glustereventsd.pid";
|
ExecStart="${glusterfs}/sbin/glustereventsd --pid-file /run/glustereventsd.pid";
|
||||||
ExecReload="/bin/kill -SIGUSR2 $MAINPID";
|
ExecReload="/bin/kill -SIGUSR2 $MAINPID";
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user