summaryrefslogtreecommitdiff
path: root/src/pip/_internal/wheel_builder.py
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2022-07-31 17:16:26 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2022-08-06 19:33:30 +0200
commitae802e3e66e8a921141872fcd7b0cba9522cf5aa (patch)
tree5da806cb166b6ef11044588dcad7dddbf9ee1fef /src/pip/_internal/wheel_builder.py
parentafe136c42b3c374567acdfbe097da0376557421a (diff)
downloadpip-ae802e3e66e8a921141872fcd7b0cba9522cf5aa.tar.gz
Deprecate setup.py install fallback when wheel package is absent
Diffstat (limited to 'src/pip/_internal/wheel_builder.py')
-rw-r--r--src/pip/_internal/wheel_builder.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/pip/_internal/wheel_builder.py b/src/pip/_internal/wheel_builder.py
index 77a17ff0f..d2a7146ed 100644
--- a/src/pip/_internal/wheel_builder.py
+++ b/src/pip/_internal/wheel_builder.py
@@ -19,6 +19,7 @@ from pip._internal.operations.build.wheel import build_wheel_pep517
from pip._internal.operations.build.wheel_editable import build_wheel_editable
from pip._internal.operations.build.wheel_legacy import build_wheel_legacy
from pip._internal.req.req_install import InstallRequirement
+from pip._internal.utils.deprecation import LegacyInstallReasonMissingWheelPackage
from pip._internal.utils.logging import indent_log
from pip._internal.utils.misc import ensure_dir, hash_file, is_wheel_installed
from pip._internal.utils.setuptools_build import make_setuptools_clean_args
@@ -86,11 +87,7 @@ def _should_build(
if not is_wheel_installed():
# we don't build legacy requirements if wheel is not installed
- logger.info(
- "Using legacy 'setup.py install' for %s, "
- "since package 'wheel' is not installed.",
- req.name,
- )
+ req.legacy_install_reason = LegacyInstallReasonMissingWheelPackage
return False
return True