mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
parent
c93acfb20b
commit
8d1d20de8c
2
news/6642.bugfix
Normal file
2
news/6642.bugfix
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Do not attempt to run ``setup.py clean`` after a ``pep517`` build error,
|
||||||
|
since a ``setup.py`` may not exist in that case.
|
|
@ -231,11 +231,12 @@ def _build_one_inside_env(
|
||||||
req.name, e,
|
req.name, e,
|
||||||
)
|
)
|
||||||
# Ignore return, we can't do anything else useful.
|
# Ignore return, we can't do anything else useful.
|
||||||
_clean_one(req, global_options)
|
if not req.use_pep517:
|
||||||
|
_clean_one_legacy(req, global_options)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def _clean_one(req, global_options):
|
def _clean_one_legacy(req, global_options):
|
||||||
# type: (InstallRequirement, List[str]) -> bool
|
# type: (InstallRequirement, List[str]) -> bool
|
||||||
clean_args = make_setuptools_clean_args(
|
clean_args = make_setuptools_clean_args(
|
||||||
req.setup_py_path,
|
req.setup_py_path,
|
||||||
|
|
Loading…
Reference in a new issue