python: remove colliding site.py* files

This commit is contained in:
Florian Friesdorf 2012-07-21 00:11:17 +02:00
parent e7c1aa52cc
commit 2c3ffeb79c

View File

@ -29,6 +29,11 @@
# move colliding easy_install.pth to specifically named one
mv "$eapth" $(dirname "$eapth")/${name}.pth
fi
# Remove any site.py files generated by easy_install as these
# cause collisions. If pth files are to be processed a
# corresponding site.py needs to be included in the PYTHONPATH.
rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py*
''
, buildPhase ? "true"