Skip to content

Commit 47614d5

Browse files
authored
Try to import bdist_wheel from setuptools first
1 parent 4915fc8 commit 47614d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jupyter_packaging/setupbase.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@
4444
from setuptools.command.develop import develop
4545
from setuptools.command.sdist import sdist
4646

47+
4748
try:
48-
from wheel.bdist_wheel import bdist_wheel
49+
from setuptools.command.bdist_wheel import bdist_wheel
4950
except ImportError: # pragma: no cover
50-
bdist_wheel = None
51+
try:
52+
from wheel.bdist_wheel import bdist_wheel
53+
except ImportError:
54+
bdist_wheel = None
5155

5256
if sys.platform == "win32": # pragma: no cover
5357
from subprocess import list2cmdline

0 commit comments

Comments
 (0)