python: create pth files for python build inputs (propagate/native or not)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user