[Zope-CVS] SVN: zpkgtools/trunk/ when looking for the zpkgsetup support package, use the version from the

Fred L. Drake, Jr. fdrake at gmail.com
Fri May 20 01:53:27 EDT 2005

Log message for revision 30454:
  when looking for the zpkgsetup support package, use the version from the
  running zpkg as the fallback, instead of using the Subversion server

  U   zpkgtools/trunk/doc/zpkg.txt
  U   zpkgtools/trunk/zpkgtools/app.py

Modified: zpkgtools/trunk/doc/zpkg.txt
--- zpkgtools/trunk/doc/zpkg.txt	2005-05-20 05:14:59 UTC (rev 30453)
+++ zpkgtools/trunk/doc/zpkg.txt	2005-05-20 05:53:26 UTC (rev 30454)
@@ -114,9 +114,10 @@
 bundles the support code along with the resulting distribution.  The
 value is a boolean, where the strings ``true`` and ``false`` can be
 used in the configuration file.  If true (the default), copies of the
-``zpkgsetup`` package will be included in the distribution (less the
-test code).  If false, the package will be assumed to be available for
-import on target systems.
+``zpkgsetup`` package and any additionally configured support packages
+will be included in the distribution (less the test code).  If false,
+these packages will be assumed to be available for import on target
 The value for ``resource-map`` is a path or URL (including
 ``cvs:`` URLs) for a file that defines the map.  Relative paths are
@@ -228,13 +229,7 @@
 resource map does not define the appropriate resources, a built-in
 fallback location will be used.
-Retrieving the support packages from the fallback CVS repositories can
-be quite slow.  The easiest way to improve the load time is to have a
-copy available on the local system and add a resource entry for it
-using a ``file:`` URL::
-  zpkgsetup   file:///home/myuser/stuff/zpkgtools/zpkgsetup
-(The path should identify the directory that contains the
-``zpkgsetup`` package itself, not the directory that
-would be on ``sys.path`` to allow it to be importable.)
+The fallback location for the ``zpkgsetup`` package is the copy
+provided as part of the running **zpkg**; a location only needs to be
+specified if a different version should be used.  (This seems highly

Modified: zpkgtools/trunk/zpkgtools/app.py
--- zpkgtools/trunk/zpkgtools/app.py	2005-05-20 05:14:59 UTC (rev 30453)
+++ zpkgtools/trunk/zpkgtools/app.py	2005-05-20 05:53:26 UTC (rev 30454)
@@ -37,8 +37,12 @@
 from zpkgtools import runlog
+zpkgsetup_dir = os.path.join(
+    os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
+    "zpkgsetup")
-    ("zpkgsetup", ("svn://svn.zope.org/repos/main/zpkgtools/trunk/zpkgsetup")),
+    ("zpkgsetup", urlutils.file_url(zpkgsetup_dir)),

More information about the Zope-CVS mailing list