Skip to content

Commit

Permalink
Enable use of older wheel and setuptools versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bkmgit authored Oct 19, 2024
1 parent ac762d4 commit 0a6a3c6
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 setuptools.command.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 0a6a3c6

Please sign in to comment.