Skip to content

Commit

Permalink
Merge pull request #105 from bkmgit/buildfix
Browse files Browse the repository at this point in the history
bdist_wheel has moved into setuptools
  • Loading branch information
rogerwwww authored Oct 21, 2024
2 parents d89c8ec + 0a6a3c6 commit 80399b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
import os
import re
import shutil
from importlib.metadata import version
from setuptools import find_packages, setup
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel, get_platform, get_abi_tag, tags
# Condition below may fail for setuptools < 70.1.0 and wheel >= 0.44
if version('setuptools') >= "70.1.0":
from setuptools.command.bdist_wheel import bdist_wheel as _bdist_wheel, get_platform, get_abi_tag, tags
else:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel, get_platform, get_abi_tag, tags

from setuptools.command.install import install as _install

def get_property(prop, project):
Expand Down

0 comments on commit 80399b1

Please sign in to comment.