File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
src/pip/_internal/resolution/resolvelib Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change
1
+ More consistent resolution backtracking by removing legacy hack related to setuptools resolution
Original file line number Diff line number Diff line change @@ -179,24 +179,13 @@ def get_preference(
179
179
# free, so we always do it first to avoid needless work if it fails.
180
180
requires_python = identifier == REQUIRES_PYTHON_IDENTIFIER
181
181
182
- # HACK: Setuptools have a very long and solid backward compatibility
183
- # track record, and extremely few projects would request a narrow,
184
- # non-recent version range of it since that would break a lot things.
185
- # (Most projects specify it only to request for an installer feature,
186
- # which does not work, but that's another topic.) Intentionally
187
- # delaying Setuptools helps reduce branches the resolver has to check.
188
- # This serves as a temporary fix for issues like "apache-airflow[all]"
189
- # while we work on "proper" branch pruning techniques.
190
- delay_this = identifier == "setuptools"
191
-
192
182
# Prefer the causes of backtracking on the assumption that the problem
193
183
# resolving the dependency tree is related to the failures that caused
194
184
# the backtracking
195
185
backtrack_cause = self .is_backtrack_cause (identifier , backtrack_causes )
196
186
197
187
return (
198
188
not requires_python ,
199
- delay_this ,
200
189
not direct ,
201
190
not pinned ,
202
191
not backtrack_cause ,
You can’t perform that action at this time.
0 commit comments