Aluode/PerceptionLabPortable
0
1from typing import TYPE_CHECKING2from warnings import warn3 4warn(5 "The 'wheel' package is no longer the canonical location of the 'bdist_wheel' "6 "command, and will be removed in a future release. Please update to setuptools "7 "v70.1 or later which contains an integrated version of this command.",8 DeprecationWarning,9 stacklevel=1,10)11 12if TYPE_CHECKING:13 from ._bdist_wheel import bdist_wheel as bdist_wheel14else:15 try:16 # Better integration/compatibility with setuptools:17 # in the case new fixes or PEPs are implemented in setuptools18 # there is no need to backport them to the deprecated code base.19 # This is useful in the case of old packages in the ecosystem20 # that are still used but have low maintenance.21 from setuptools.command.bdist_wheel import bdist_wheel22 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_wheel27 