File tree Expand file tree Collapse file tree 3 files changed +1
-22
lines changed
src/pip/_internal/resolution/resolvelib Expand file tree Collapse file tree 3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change
1
+ Un-deprecate source distribution re-installation behaviour.
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
- from pip ._internal .utils .filetypes import is_archive_file
24
22
25
23
from .base import Candidate , Requirement
26
24
from .factory import Factory
@@ -136,25 +134,6 @@ def resolve(
136
134
)
137
135
continue
138
136
139
- looks_like_sdist = (
140
- is_archive_file (candidate .source_link .file_path )
141
- and candidate .source_link .ext != ".zip"
142
- )
143
- 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.3" ,
155
- issue = 8711 ,
156
- )
157
-
158
137
# is a local sdist or path -- reinstall
159
138
ireq .should_reinstall = True
160
139
else :
Original file line number Diff line number Diff line change @@ -1228,7 +1228,6 @@ def test_new_resolver_does_reinstall_local_sdists(script):
1228
1228
expect_stderr = True ,
1229
1229
)
1230
1230
assert "Installing collected packages: pkg" in result .stdout , str (result )
1231
- assert "DEPRECATION" in result .stderr , str (result )
1232
1231
script .assert_installed (pkg = "1.0" )
1233
1232
1234
1233
You can’t perform that action at this time.
0 commit comments