File tree 2 files changed +26
-2
lines changed
2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
1
Release Notes
2
2
=============
3
3
4
+ **UNRELEASED **
5
+
6
+ - Added a redirection from ``wheel.bdist_wheel.bdist_wheel `` to
7
+ ``setuptools.command.bdist_wheel.bdist_wheel `` to improve compatibility with
8
+ ``setuptools ``' latest fixes.
9
+
10
+ Projects are still advised to migrate away from the deprecated module and import
11
+ the ``setuptools ``' implementation explicitly. (PR by @abravalheri)
12
+
4
13
**0.44.0 (2024-08-04) **
5
14
6
15
- Canonicalized requirements in METADATA file (PR by Wim Jeantine-Glenn)
Original file line number Diff line number Diff line change
1
+ from typing import TYPE_CHECKING
1
2
from warnings import warn
2
3
3
- from ._bdist_wheel import bdist_wheel as bdist_wheel
4
-
5
4
warn (
6
5
"The 'wheel' package is no longer the canonical location of the 'bdist_wheel' "
7
6
"command, and will be removed in a future release. Please update to setuptools "
8
7
"v70.1 or later which contains an integrated version of this command." ,
9
8
DeprecationWarning ,
10
9
stacklevel = 1 ,
11
10
)
11
+
12
+ if TYPE_CHECKING :
13
+ from ._bdist_wheel import bdist_wheel as bdist_wheel
14
+ else :
15
+ try :
16
+ # Better integration/compatibility with setuptools:
17
+ # in the case new fixes or PEPs are implemented in setuptools
18
+ # there is no need to backport them to the deprecated code base.
19
+ # This is useful in the case of old packages in the ecosystem
20
+ # that are still used but have low maintenance.
21
+ from setuptools .command .bdist_wheel import bdist_wheel
22
+ except ImportError :
23
+ # Only used in the case of old setuptools versions.
24
+ # If the user wants to get the latest fixes/PEPs,
25
+ # they are encouraged to address the deprecation warning.
26
+ from ._bdist_wheel import bdist_wheel as bdist_wheel
You can’t perform that action at this time.
0 commit comments