[Checkins] SVN: zc.buildout/branches/help-api/ Expand shell patterns when processing the list of paths in `develop`, e.g:
Godefroid Chapelle
gotcha at bubblenet.be
Sun Mar 29 17:26:11 EDT 2009
Log message for revision 98548:
Expand shell patterns when processing the list of paths in `develop`, e.g:
[buildout]
develop = ./local-checkouts/*
Changed:
U zc.buildout/branches/help-api/CHANGES.txt
U zc.buildout/branches/help-api/src/zc/buildout/buildout.py
-=-
Modified: zc.buildout/branches/help-api/CHANGES.txt
===================================================================
--- zc.buildout/branches/help-api/CHANGES.txt 2009-03-29 21:26:04 UTC (rev 98547)
+++ zc.buildout/branches/help-api/CHANGES.txt 2009-03-29 21:26:10 UTC (rev 98548)
@@ -7,6 +7,11 @@
1.1.2 (Unreleased)
==================
+- Expand shell patterns when processing the list of paths in `develop`, e.g::
+
+ [buildout]
+ develop = ./local-checkouts/*
+
- Conditionally import and use hashlib.md5 when it's available instead
of md5 module, which is deprecated in Python 2.6.
Modified: zc.buildout/branches/help-api/src/zc/buildout/buildout.py
===================================================================
--- zc.buildout/branches/help-api/src/zc/buildout/buildout.py 2009-03-29 21:26:04 UTC (rev 98547)
+++ zc.buildout/branches/help-api/src/zc/buildout/buildout.py 2009-03-29 21:26:10 UTC (rev 98548)
@@ -26,6 +26,7 @@
import urllib2
import ConfigParser
import UserDict
+import glob
import pkg_resources
import zc.buildout
@@ -560,9 +561,13 @@
try:
for setup in develop.split():
setup = self._buildout_path(setup)
- self._logger.info("Develop: %r", setup)
- __doing__ = 'Processing develop directory %r.', setup
- zc.buildout.easy_install.develop(setup, dest)
+ files = glob.glob(setup)
+ if not files:
+ self._logger.warn("Couldn't develop %r (not found)", setup)
+ for setup in files:
+ self._logger.info("Develop: %r", setup)
+ __doing__ = 'Processing develop directory %r.', setup
+ zc.buildout.easy_install.develop(setup, dest)
except:
# if we had an error, we need to roll back changes, by
# removing any files we created.
More information about the Checkins
mailing list