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

16 lines
319 B
Bash
Raw Normal View History

2013-08-23 14:41:48 +04:00
addPythonPath() {
2015-02-04 15:21:13 +03:00
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/pypy2.5/site-packages
2013-08-23 14:41:48 +04:00
}
toPythonPath() {
local paths="$1"
local result=
for i in $paths; do
2015-02-04 15:21:13 +03:00
p="$i/lib/pypy2.5/site-packages"
2013-08-23 14:41:48 +04:00
result="${result}${result:+:}$p"
done
echo $result
}
2014-07-08 16:20:05 +04:00
envHooks+=(addPythonPath)