mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Add a deprecation warning for dependency links
This commit is contained in:
parent
0e84c9d544
commit
14d83f5333
1 changed files with 8 additions and 0 deletions
|
@ -73,6 +73,7 @@ class PackageFinder(object):
|
||||||
|
|
||||||
# Do we process dependency links?
|
# Do we process dependency links?
|
||||||
self.process_dependency_links = process_dependency_links
|
self.process_dependency_links = process_dependency_links
|
||||||
|
self._have_warned_dependency_links = False
|
||||||
|
|
||||||
# The Session we'll use to make requests
|
# The Session we'll use to make requests
|
||||||
self.session = session or PipSession()
|
self.session = session or PipSession()
|
||||||
|
@ -93,6 +94,13 @@ class PackageFinder(object):
|
||||||
## dependency_links value
|
## dependency_links value
|
||||||
## FIXME: also, we should track comes_from (i.e., use Link)
|
## FIXME: also, we should track comes_from (i.e., use Link)
|
||||||
if self.process_dependency_links:
|
if self.process_dependency_links:
|
||||||
|
if not self._have_warned_dependency_links:
|
||||||
|
logger.deprecated(
|
||||||
|
"1.6",
|
||||||
|
"Dependency Links processing has been deprecated with an "
|
||||||
|
"accelerated time schedule and will be removed in pip 1.6",
|
||||||
|
)
|
||||||
|
self._have_warned_dependency_links = True
|
||||||
self.dependency_links.extend(links)
|
self.dependency_links.extend(links)
|
||||||
|
|
||||||
def _sort_locations(self, locations):
|
def _sort_locations(self, locations):
|
||||||
|
|
Loading…
Reference in a new issue