Skip to content

Commit 5fcc5d2

Browse files
committed
Deprecate using setup.py bdist_wheel
1 parent 06c8024 commit 5fcc5d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/pip/_internal/operations/build/wheel_legacy.py

+12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import List, Optional
44

55
from pip._internal.cli.spinners import open_spinner
6+
from pip._internal.utils.deprecation import deprecated
67
from pip._internal.utils.setuptools_build import make_setuptools_bdist_wheel_args
78
from pip._internal.utils.subprocess import call_subprocess, format_command_args
89

@@ -68,6 +69,17 @@ def build_wheel_legacy(
6869
6970
Returns path to wheel if successfully built. Otherwise, returns None.
7071
"""
72+
deprecated(
73+
reason=f"Building {name!r} using the legacy setup.py bdist_wheel process.",
74+
replacement=(
75+
"to use the standardized build interface by "
76+
"setting the `--use-pep517` option, "
77+
"or adding a `pyproject.toml` file to the source tree"
78+
),
79+
gone_in="25.2",
80+
issue=6334,
81+
)
82+
7183
wheel_args = make_setuptools_bdist_wheel_args(
7284
setup_py_path,
7385
global_options=global_options,

0 commit comments

Comments
 (0)