[Zodb-checkins] SVN: ZODB/trunk/ re-arrange the build support structures to ease migration to the revised

Fred L. Drake, Jr. fdrake at gmail.com
Wed Aug 31 11:56:54 EDT 2005


Log message for revision 38193:
  re-arrange the build support structures to ease migration to the revised
  ZConfig-using zpkg; this will help keep the build-support stuff out of the
  top-level directory of the checkout (such is the plan, at least)
  

Changed:
  _U  ZODB/trunk/
  A   ZODB/trunk/buildsupport/
  A   ZODB/trunk/buildsupport/README.txt
  U   ZODB/trunk/setup.py

-=-

Property changes on: ZODB/trunk
___________________________________________________________________
Name: svn:externals
   - zpkgsetup svn://svn.zope.org/repos/main/zpkgtools/trunk/zpkgsetup



Property changes on: ZODB/trunk/buildsupport
___________________________________________________________________
Name: svn:externals
   + zpkgsetup  svn://svn.zope.org/repos/main/zpkgtools/trunk/zpkgsetup


Added: ZODB/trunk/buildsupport/README.txt
===================================================================
--- ZODB/trunk/buildsupport/README.txt	2005-08-31 15:31:19 UTC (rev 38192)
+++ ZODB/trunk/buildsupport/README.txt	2005-08-31 15:56:53 UTC (rev 38193)
@@ -0,0 +1,9 @@
+zpkg support files
+==================
+
+Files and packages included here are intended to support the use of
+zpkg as a build tool.  They are not part of Zope, are not included in
+the distribution, and are not importable in the application server.
+
+The setup.py script will process any .pth files placed here, though
+those would not normally be handled by most applications.


Property changes on: ZODB/trunk/buildsupport/README.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: ZODB/trunk/setup.py
===================================================================
--- ZODB/trunk/setup.py	2005-08-31 15:31:19 UTC (rev 38192)
+++ ZODB/trunk/setup.py	2005-08-31 15:56:53 UTC (rev 38193)
@@ -13,7 +13,16 @@
 ##############################################################################
 
 import os
+import site
+import sys
 
+here = os.path.dirname(os.path.abspath(__file__))
+buildsupport = os.path.join(here, "buildsupport")
+
+sys.path.insert(0, buildsupport)
+# Process *.pth files from buildsupport/:
+site.addsitedir(buildsupport)
+
 import zpkgsetup.package
 import zpkgsetup.publication
 import zpkgsetup.setup
@@ -21,9 +30,6 @@
 # Note that release.py must be able to recognize the VERSION line.
 VERSION = "3.5.0a8"
 
-
-here = os.path.dirname(os.path.abspath(__file__))
-
 context = zpkgsetup.setup.SetupContext(
     "ZODB", VERSION, __file__)
 



More information about the Zodb-checkins mailing list