[Zodb-checkins] SVN: ZODB/trunk/setup.py Make sure we use ZConfig
shipped with the distribution
Dmitry Vasiliev
dima at hlabs.spb.ru
Sat Sep 3 05:11:13 EDT 2005
Log message for revision 38288:
Make sure we use ZConfig shipped with the distribution
Changed:
U ZODB/trunk/setup.py
-=-
Modified: ZODB/trunk/setup.py
===================================================================
--- ZODB/trunk/setup.py 2005-09-03 08:26:55 UTC (rev 38287)
+++ ZODB/trunk/setup.py 2005-09-03 09:11:12 UTC (rev 38288)
@@ -19,9 +19,15 @@
here = os.path.dirname(os.path.abspath(__file__))
buildsupport = os.path.join(here, "buildsupport")
-sys.path.insert(0, buildsupport)
-# Process *.pth files from buildsupport/:
+# Add 'buildsupport' to sys.path and process *.pth files from 'buildsupport':
+last = len(sys.path)
site.addsitedir(buildsupport)
+if len(sys.path) > last:
+ # Move all appended directories to the start.
+ # Make sure we use ZConfig shipped with the distribution
+ new = sys.path[last:]
+ del sys.path[last:]
+ sys.path[:0] = new
import zpkgsetup.package
import zpkgsetup.publication
More information about the Zodb-checkins
mailing list