Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bdist_wheel import try from setuptools #37

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/setuptools_dso/dsocmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@
import multiprocessing as MP
import logging as log

try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
except ImportError:
_bdist_wheel = None
def _import_bdist_wheel():
try:
from setuptools.command.bdist_wheel import bdist_wheel
return bdist_wheel
except ImportError:
pass
try:
from wheel.bdist_wheel import bdist_wheel
return bdist_wheel
except ImportError:
return None

_bdist_wheel = _import_bdist_wheel()
del _import_bdist_wheel

from setuptools import Command, Distribution, Extension as _Extension
from setuptools.command.build_ext import build_ext as _build_ext
Expand Down
Loading