Python 3.3 add setup-hook
This commit is contained in:
parent
49b23b29dd
commit
3da635c88a
15
pkgs/development/interpreters/python/3.3/setup-hook.sh
Normal file
15
pkgs/development/interpreters/python/3.3/setup-hook.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
addPythonPath() {
|
||||||
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.2/site-packages
|
||||||
|
}
|
||||||
|
|
||||||
|
toPythonPath() {
|
||||||
|
local paths="$1"
|
||||||
|
local result=
|
||||||
|
for i in $paths; do
|
||||||
|
p="$i/lib/python3.2/site-packages"
|
||||||
|
result="${result}${result:+:}$p"
|
||||||
|
done
|
||||||
|
echo $result
|
||||||
|
}
|
||||||
|
|
||||||
|
envHooks=(${envHooks[@]} addPythonPath)
|
Loading…
x
Reference in New Issue
Block a user