pypy: add setuphook for PYTHONPATH
This commit is contained in:
parent
7ef49ddee5
commit
a327b68164
@ -47,6 +47,7 @@ let
|
||||
--replace "libraries = ['curses']" "libraries = ['ncurses']"
|
||||
'';
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
|
15
pkgs/development/interpreters/pypy/2.0/setup-hook.sh
Normal file
15
pkgs/development/interpreters/pypy/2.0/setup-hook.sh
Normal file
@ -0,0 +1,15 @@
|
||||
addPythonPath() {
|
||||
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/pypy2.0/site-packages
|
||||
}
|
||||
|
||||
toPythonPath() {
|
||||
local paths="$1"
|
||||
local result=
|
||||
for i in $paths; do
|
||||
p="$i/lib/pypy2.0/site-packages"
|
||||
result="${result}${result:+:}$p"
|
||||
done
|
||||
echo $result
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPythonPath)
|
Loading…
Reference in New Issue
Block a user