We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd499c commit 9dbe8dfCopy full SHA for 9dbe8df
news/6642.bugfix
@@ -0,0 +1,2 @@
1
+Do not attempt to run ``setup.py clean`` after a ``pep517`` build error,
2
+since a ``setup.py`` may not exist in that case.
src/pip/_internal/wheel_builder.py
@@ -231,11 +231,12 @@ def _build_one_inside_env(
231
req.name, e,
232
)
233
# Ignore return, we can't do anything else useful.
234
- _clean_one(req, global_options)
+ if not req.use_pep517:
235
+ _clean_one_legacy(req, global_options)
236
return None
237
238
-def _clean_one(req, global_options):
239
+def _clean_one_legacy(req, global_options):
240
# type: (InstallRequirement, List[str]) -> bool
241
clean_args = make_setuptools_clean_args(
242
req.setup_py_path,
0 commit comments