Skip to content

Commit

Permalink
Fallback to importing bdist_wheel from wheel for type-checking
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 28, 2024
1 parent 47aedec commit 2e1d65b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
try:
from setuptools.command.bdist_wheel import bdist_wheel as CommandBdistWheel
except ImportError: # old version of setuptools
from setuptools import Command as CommandBdistWheel # type: ignore[assignment]
try:
from wheel.bdist_wheel import bdist_wheel as CommandBdistWheel # type: ignore[no-redef]
except ImportError:
from setuptools import Command as CommandBdistWheel # type: ignore[assignment]



def _check_cargo_supports_crate_type_option() -> bool:
Expand Down

0 comments on commit 2e1d65b

Please sign in to comment.