* wrapPythonPrograms: don't hard-code the Python library prefix.

svn path=/nixpkgs/branches/modular-python/; revision=26594
This commit is contained in:
Eelco Dolstra
2011-03-29 15:19:59 +00:00
parent 11b67ccee5
commit 353d450867
7 changed files with 29 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ _addToPythonPath() {
local dir="$1"
if [ -n "${pythonPathsSeen[$dir]}" ]; then return; fi
pythonPathsSeen[$dir]=1
addToSearchPath program_PYTHONPATH $dir/lib/python2.7/site-packages
addToSearchPath program_PYTHONPATH $dir/lib/@libPrefix@/site-packages
addToSearchPath program_PATH $dir/bin
local prop="$dir/nix-support/propagated-build-native-inputs"
if [ -e $prop ]; then