Commit cff70b8d authored by Ignas's avatar Ignas

Expand shell patterns when processing the list of paths in `develop`, e.g:

  [buildout]
  develop = ./local-checkouts/*
parent 85547fe5
...@@ -7,6 +7,11 @@ Change History ...@@ -7,6 +7,11 @@ Change History
1.1.2 (Unreleased) 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 - Conditionally import and use hashlib.md5 when it's available instead
of md5 module, which is deprecated in Python 2.6. of md5 module, which is deprecated in Python 2.6.
......
...@@ -28,6 +28,7 @@ import tempfile ...@@ -28,6 +28,7 @@ import tempfile
import urllib2 import urllib2
import ConfigParser import ConfigParser
import UserDict import UserDict
import glob
import pkg_resources import pkg_resources
import zc.buildout import zc.buildout
...@@ -561,6 +562,10 @@ class Buildout(UserDict.DictMixin): ...@@ -561,6 +562,10 @@ class Buildout(UserDict.DictMixin):
try: try:
for setup in develop.split(): for setup in develop.split():
setup = self._buildout_path(setup) setup = self._buildout_path(setup)
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) self._logger.info("Develop: %r", setup)
__doing__ = 'Processing develop directory %r.', setup __doing__ = 'Processing develop directory %r.', setup
zc.buildout.easy_install.develop(setup, dest) zc.buildout.easy_install.develop(setup, dest)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment