Skip to content

Commit 1e8b26e

Browse files
committed
setup - fix bdist_wheel for 3.7
1 parent 1a2b503 commit 1e8b26e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools"]
2+
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
import subprocess
44

55
from setuptools import Extension, find_packages, setup
6-
from setuptools.command.bdist_wheel import bdist_wheel
76
from setuptools.command.build_ext import build_ext
87
from setuptools.command.sdist import sdist
98

9+
try:
10+
from setuptools.command.bdist_wheel import bdist_wheel
11+
except ImportError:
12+
from wheel.bdist_wheel import bdist_wheel
13+
14+
1015
INSTALL_DIR = os.path.dirname(os.path.realpath(__file__))
1116
UNITYPYBOOST_DIR = os.path.join(INSTALL_DIR, "UnityPyBoost")
1217

0 commit comments

Comments
 (0)