@@ -38,10 +38,9 @@ class PackageFinder(object):
3838 def __init__ (self , find_links , index_urls ,
3939 use_wheel = True , allow_external = [], allow_unverified = [],
4040 allow_all_external = False , allow_all_prereleases = False ,
41- process_dependency_links = False , session = None ):
41+ session = None ):
4242 self .find_links = find_links
4343 self .index_urls = index_urls
44- self .dependency_links = []
4544 self .cache = PageCache ()
4645 # These are boring links that have already been logged somehow:
4746 self .logged_links = set ()
@@ -73,28 +72,9 @@ def __init__(self, find_links, index_urls,
7372 # Do we want to allow _all_ pre-releases?
7473 self .allow_all_prereleases = allow_all_prereleases
7574
76- # Do we process dependency links?
77- self .process_dependency_links = process_dependency_links
78- self ._have_warned_dependency_links = False
79-
8075 # The Session we'll use to make requests
8176 self .session = session or PipSession ()
8277
83- def add_dependency_links (self , links ):
84- ## FIXME: this shouldn't be global list this, it should only
85- ## apply to requirements of the package that specifies the
86- ## dependency_links value
87- ## FIXME: also, we should track comes_from (i.e., use Link)
88- if self .process_dependency_links :
89- if not self ._have_warned_dependency_links :
90- logger .deprecated (
91- "1.6" ,
92- "Dependency Links processing has been deprecated with an "
93- "accelerated time schedule and will be removed in pip 1.6" ,
94- )
95- self ._have_warned_dependency_links = True
96- self .dependency_links .extend (links )
97-
9878 def _sort_locations (self , locations ):
9979 """
10080 Sort locations into "files" (archives) and "urls", and return
@@ -222,16 +202,11 @@ def mkurl_pypi_url(url):
222202 posixpath .join (main_index_url .url , version )] + locations
223203
224204 file_locations , url_locations = self ._sort_locations (locations )
225- _flocations , _ulocations = self ._sort_locations (self .dependency_links )
226- file_locations .extend (_flocations )
227205
228206 # We trust every url that the user has given us whether it was given
229207 # via --index-url or --find-links
230208 locations = [Link (url , trusted = True ) for url in url_locations ]
231209
232- # We explicitly do not trust links that came from dependency_links
233- locations .extend ([Link (url ) for url in _ulocations ])
234-
235210 logger .debug ('URLs to search for versions for %s:' % req )
236211 for location in locations :
237212 logger .debug ('* %s' % location )
@@ -280,15 +255,6 @@ def mkurl_pypi_url(url):
280255 )
281256 finally :
282257 logger .indent -= 2
283- dependency_versions = list (self ._package_versions (
284- [Link (url ) for url in self .dependency_links ], req .name .lower ()))
285- if dependency_versions :
286- logger .info (
287- 'dependency_links found: %s' %
288- ', ' .join ([
289- link .url for parsed , link , version in dependency_versions
290- ])
291- )
292258 file_versions = list (
293259 self ._package_versions (
294260 [Link (url ) for url in file_locations ],
@@ -297,7 +263,6 @@ def mkurl_pypi_url(url):
297263 )
298264 if (not found_versions
299265 and not page_versions
300- and not dependency_versions
301266 and not file_versions ):
302267 logger .fatal (
303268 'Could not find any downloads that satisfy the requirement'
@@ -334,7 +299,7 @@ def mkurl_pypi_url(url):
334299 )
335300 #this is an intentional priority ordering
336301 all_versions = installed_version + file_versions + found_versions \
337- + page_versions + dependency_versions
302+ + page_versions
338303 applicable_versions = []
339304 for (parsed_version , link , version ) in all_versions :
340305 if version not in req .req :
0 commit comments