Skip to content

Commit f7e89fc

Browse files
Fix build errors in setup.py and pyproject.toml
Co-authored-by: NikolajBjorner <[email protected]>
1 parent 59f3801 commit f7e89fc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/api/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "z3-solver"
77
description = "an efficient SMT solver library"
88
readme = "README.txt"
99
requires-python = ">=3.8"
10-
license = "MIT"
10+
license = {text = "MIT"}
1111
authors = [
1212
{name = "The Z3 Theorem Prover Project"}
1313
]

src/api/python/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
from setuptools import setup
1010
from setuptools.command.build import build as _build
1111
from setuptools.command.sdist import sdist as _sdist
12-
from setuptools.command.bdist_wheel import bdist_wheel as _bdist_wheel
12+
try:
13+
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
14+
except ImportError:
15+
# wheel package not available, provide a dummy class
16+
from setuptools.command.build import build as _bdist_wheel
1317
from setuptools.command.develop import develop as _develop
1418

1519
class LibError(Exception):

0 commit comments

Comments
 (0)