python: rename eventually created easy_install.pth to pkg-specific file
This commit is contained in:
parent
62f698dfd3
commit
e7c1aa52cc
1 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue