Skip to content

Commit 0f45f15

Browse files
authored
Python bindings: (#2112)
- Switch from versioningit to setuptools-scm - Disable building of tests via DUNICORN_BUILD_TESTS var
1 parent 1cb8952 commit 0f45f15

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bindings/python/pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "build", "wheel", "versioningit"]
2+
requires = ["setuptools>=64", "build", "wheel", "setuptools-scm>=8"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -40,4 +40,5 @@ test = [
4040
[tool.setuptools.packages.find]
4141
include = ["unicorn*"]
4242

43-
[tool.versioningit]
43+
[tool.setuptools_scm]
44+
root = '../../'

bindings/python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def build_libraries():
102102

103103
has_msbuild = shutil.which('msbuild') is not None
104104
conf = 'Debug' if int(os.getenv('DEBUG', 0)) else 'Release'
105-
cmake_args = ['cmake', '-B', BUILD_DIR, "-DCMAKE_BUILD_TYPE=" + conf]
105+
cmake_args = ['cmake', '-B', BUILD_DIR, "-DCMAKE_BUILD_TYPE=" + conf, "-DUNICORN_BUILD_TESTS=off"]
106106
if os.getenv("UNICORN_TRACER"):
107107
cmake_args += ["-DUNICORN_TRACER=on"]
108108
if conf == 'Debug':

0 commit comments

Comments
 (0)