python: create pth files for python build inputs (propagate/native or not)

This commit is contained in:
Florian Friesdorf
2012-07-21 01:55:50 +02:00
parent 2c3ffeb79c
commit a40da09b44
2 changed files with 22 additions and 1 deletions

View File

@@ -45,3 +45,15 @@ _addToPythonPath() {
done
fi
}
createBuildInputsPth() {
local category="$1"
local inputs="$2"
if [ foo"$inputs" != foo ]; then
for x in $inputs; do
if test -d "$x"/lib/@libPrefix@/site-packages; then
echo $x >> "$out"/lib/@libPrefix@/site-packages/${name}-nix-python-$category.pth
fi
done
fi
}