pypy: add setuphook for PYTHONPATH

This commit is contained in:
Domen Kožar 2013-08-23 12:41:48 +02:00
parent 7ef49ddee5
commit a327b68164
2 changed files with 16 additions and 0 deletions

View File

@ -47,6 +47,7 @@ let
--replace "libraries = ['curses']" "libraries = ['ncurses']"
'';
setupHook = ./setup-hook.sh;
doCheck = true;
checkPhase = ''

View 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)