nixpkgs/pkgs/development/interpreters/pypy/2.2/setup-hook.sh

16 lines
333 B
Bash
Raw Normal View History

2013-08-23 12:41:48 +02:00
addPythonPath() {
2013-11-14 11:09:28 +01:00
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/pypy2.2/site-packages
2013-08-23 12:41:48 +02:00
}
toPythonPath() {
local paths="$1"
local result=
for i in $paths; do
2013-11-14 11:09:28 +01:00
p="$i/lib/pypy2.2/site-packages"
2013-08-23 12:41:48 +02:00
result="${result}${result:+:}$p"
done
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)