File tree 2 files changed +5
-14
lines changed
src/pip/_internal/resolution/resolvelib
2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change
1
+ New resolver: A source distribution is no longer re-installed automatically if
2
+ the currently installed has the same version number. This behaviour has been
3
+ deprecated since pip 20.3.
Original file line number Diff line number Diff line change 19
19
PipDebuggingReporter ,
20
20
PipReporter ,
21
21
)
22
- from pip ._internal .utils .deprecation import deprecated
23
22
from pip ._internal .utils .filetypes import is_archive_file
24
23
25
24
from .base import Candidate , Requirement
@@ -141,19 +140,8 @@ def resolve(
141
140
and candidate .source_link .ext != ".zip"
142
141
)
143
142
if looks_like_sdist :
144
- # is a local sdist -- show a deprecation warning!
145
- reason = (
146
- "Source distribution is being reinstalled despite an "
147
- "installed package having the same name and version as "
148
- "the installed package."
149
- )
150
- replacement = "use --force-reinstall"
151
- deprecated (
152
- reason = reason ,
153
- replacement = replacement ,
154
- gone_in = "21.2" ,
155
- issue = 8711 ,
156
- )
143
+ # is a local sdist -- skip
144
+ continue
157
145
158
146
# is a local sdist or path -- reinstall
159
147
ireq .should_reinstall = True
You can’t perform that action at this time.
0 commit comments