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 b9bdad2 commit e0785e3Copy full SHA for e0785e3
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
@@ -349,10 +349,11 @@ def _build_one_inside_env(
349
except Exception:
350
pass
351
# Ignore return, we can't do anything else useful.
352
- self._clean_one(req)
+ if not req.use_pep517:
353
+ self._clean_one_legacy(req)
354
return None
355
- def _clean_one(self, req):
356
+ def _clean_one_legacy(self, req):
357
# type: (InstallRequirement) -> bool
358
clean_args = make_setuptools_clean_args(
359
req.setup_py_path,
0 commit comments