From 3da635c88a163f418564b9066b8087eb6da23e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cillian=20de=20R=C3=B3iste?= Date: Thu, 28 Mar 2013 01:03:30 +0100 Subject: [PATCH] Python 3.3 add setup-hook --- .../interpreters/python/3.3/setup-hook.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pkgs/development/interpreters/python/3.3/setup-hook.sh diff --git a/pkgs/development/interpreters/python/3.3/setup-hook.sh b/pkgs/development/interpreters/python/3.3/setup-hook.sh new file mode 100644 index 000000000000..e6fa34bf54ba --- /dev/null +++ b/pkgs/development/interpreters/python/3.3/setup-hook.sh @@ -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)