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

16 lines
295 B
Bash
Raw Normal View History

2013-08-23 10:41:48 +00:00
addPythonPath() {
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/site-packages
2013-08-23 10:41:48 +00:00
}
toPythonPath() {
local paths="$1"
local result=
for i in $paths; do
p="$i/site-packages"
2013-08-23 10:41:48 +00:00
result="${result}${result:+:}$p"
done
echo $result
}
2014-07-08 12:20:05 +00:00
envHooks+=(addPythonPath)