diff options
author | PJ Eby <distutils-sig@python.org> | 2007-02-23 20:29:58 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2007-02-23 20:29:58 +0000 |
commit | fb98a95e9badb23765ea520fd5bd9e30d0f1fe4a (patch) | |
tree | 605688714635990d2fb8fc117ca69a91eedf79ea /setuptools/package_index.py | |
parent | aba13220b952cd60df2a8f7cf44394d28a5f1814 (diff) | |
download | external_python_setuptools-fb98a95e9badb23765ea520fd5bd9e30d0f1fe4a.tar.gz external_python_setuptools-fb98a95e9badb23765ea520fd5bd9e30d0f1fe4a.tar.bz2 external_python_setuptools-fb98a95e9badb23765ea520fd5bd9e30d0f1fe4a.zip |
Added ``--local-snapshots-ok`` flag, to allow building eggs from
projects installed using ``setup.py develop``. (backport from trunk)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053877
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index d3f3f561..e4d7e6b9 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -228,20 +228,20 @@ class PackageIndex(Environment): else: self.warn(msg, url) - - - - - - - - - - - - - - + def scan_egg_links(self, search_path): + for item in search_path: + if os.path.isdir(item): + for entry in os.listdir(item): + if entry.endswith('.egg-link'): + self.scan_egg_link(item, entry) + + def scan_egg_link(self, path, entry): + lines = filter(None, map(str.strip, file(os.path.join(path, entry)))) + if len(lines)==2: + for dist in find_distributions(os.path.join(path, lines[0])): + dist.location = os.path.join(path, *lines) + dist.precedence = SOURCE_DIST + self.add(dist) def process_index(self,url,page): |