1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

python: rename eventually created easy_install.pth to pkg-specific file

This commit is contained in:
Florian Friesdorf 2012-07-21 00:11:02 +02:00
parent 62f698dfd3
commit e7c1aa52cc

View file

@ -20,6 +20,15 @@
, installCommand ?
''
easy_install --prefix="$out" .
# A pth file might have been generated to load the package from
# within its own site-packages, rename this package not to
# collide with others.
eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth
if [ -e "$eapth" ]; then
# move colliding easy_install.pth to specifically named one
mv "$eapth" $(dirname "$eapth")/${name}.pth
fi
''
, buildPhase ? "true"