Skip to content

Commit ae33edb

Browse files
committed
Offer direct guidance for replacing bdist_wheel.universal
This is a follow-up to #4617 which deprecated the `universal` flag of `bdist_wheel`. It originally offered people to complain in issues. I, however, think that it's useful to mention the non-deprecated alternative that will keep working past deprecation date. This is what this patch implements.
1 parent 7fc3471 commit ae33edb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setuptools/command/bdist_wheel.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,12 @@ class bdist_wheel(Command):
171171
"g",
172172
"Group name used when creating a tar file [default: current group]",
173173
),
174-
("universal", None, "*DEPRECATED* make a universal wheel [default: false]"),
174+
(
175+
"universal",
176+
None,
177+
"*DEPRECATED* make a universal wheel [default: false]\n\n'
178+
'Set `python_tag = py2.py3` in `setup.cfg` instead.",
179+
),
175180
(
176181
"compression=",
177182
None,
@@ -267,6 +272,9 @@ def finalize_options(self) -> None:
267272
is being obviated.
268273
Please discontinue using this option, or if you still need it,
269274
file an issue with pypa/setuptools describing your use case.
275+
276+
The use of this setting can be replaced with `python_tag = py2.py3`
277+
entry in `setup.cfg`.",
270278
""",
271279
due_date=(2025, 8, 30), # Introduced in 2024-08-30
272280
)

0 commit comments

Comments
 (0)