diff options
author | PJ Eby <distutils-sig@python.org> | 2006-03-29 19:23:55 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2006-03-29 19:23:55 +0000 |
commit | 4da195dc370305433ac4f448c647af8d9fa3691d (patch) | |
tree | 9c9c9f115cb1fc758018537f19289d3ee7f5b412 /setuptools/command/easy_install.py | |
parent | a8ab614c9791958ee84829221fab38c81a01f816 (diff) | |
download | external_python_setuptools-4da195dc370305433ac4f448c647af8d9fa3691d.tar.gz external_python_setuptools-4da195dc370305433ac4f448c647af8d9fa3691d.tar.bz2 external_python_setuptools-4da195dc370305433ac4f448c647af8d9fa3691d.zip |
Implement dependency_links feature, courtesy of Tres Seaver's rough
draft of a patch.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043423
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 46958625..3507d4ed 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -90,7 +90,7 @@ class easy_install(Command): self.optimize = self.record = None self.upgrade = self.always_copy = self.multi_version = None self.editable = self.no_deps = self.allow_hosts = None - self.root = self.prefix = None + self.root = self.prefix = self.no_report = None # Options not specifiable via command line self.package_index = None @@ -509,7 +509,10 @@ Please make the appropriate changes for your system and try again. requirement = Requirement( distreq.project_name, distreq.specs, requirement.extras ) - + if dist.has_metadata('dependency_links.txt'): + self.package_index.add_find_links( + dist.get_metadata_lines('dependency_links.txt') + ) log.info("Processing dependencies for %s", requirement) try: distros = WorkingSet([]).resolve( @@ -524,7 +527,6 @@ Please make the appropriate changes for your system and try again. "Installed distribution %s conflicts with requirement %s" % e.args ) - if self.always_copy: # Force all the relevant distros to be copied or activated for dist in distros: @@ -862,7 +864,7 @@ you ignore the conflicts, the installed package(s) may not work. def installation_report(self, req, dist, what="Installed"): """Helpful installation message for display to package users""" msg = "\n%(what)s %(eggloc)s%(extras)s" - if self.multi_version: + if self.multi_version and not self.no_report: msg += """ Because this distribution was installed --multi-version or --install-dir, |