diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 0d666870..f9562d00 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "build", "wheel", "versioningit"] +requires = ["setuptools>=64", "build", "wheel", "setuptools-scm>=8"] build-backend = "setuptools.build_meta" [project] @@ -40,4 +40,5 @@ test = [ [tool.setuptools.packages.find] include = ["unicorn*"] -[tool.versioningit] +[tool.setuptools_scm] +root = '../../' diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 6961f9b5..12d152ff 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -102,7 +102,7 @@ def build_libraries(): has_msbuild = shutil.which('msbuild') is not None conf = 'Debug' if int(os.getenv('DEBUG', 0)) else 'Release' - cmake_args = ['cmake', '-B', BUILD_DIR, "-DCMAKE_BUILD_TYPE=" + conf] + cmake_args = ['cmake', '-B', BUILD_DIR, "-DCMAKE_BUILD_TYPE=" + conf, "-DUNICORN_BUILD_TESTS=off"] if os.getenv("UNICORN_TRACER"): cmake_args += ["-DUNICORN_TRACER=on"] if conf == 'Debug':