Skip to content

Commit 1e6201a

Browse files
committed
🔧 use separate build directories per Python version
Signed-off-by: burgholzer <burgholzer@me.com>
1 parent f541897 commit 1e6201a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _run_tests(
5454
posargs = list(session.posargs)
5555
env = {}
5656
if os.environ.get("CI", None) and sys.platform == "win32":
57-
env["SKBUILD_CMAKE_ARGS"] = "-T ClangCL;--fresh"
57+
env["SKBUILD_CMAKE_ARGS"] = "-T ClangCL"
5858

5959
if shutil.which("cmake") is None and shutil.which("cmake3") is None:
6060
session.install("cmake")

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ minimum-version = "build-system.requires"
8585
# Set the wheel install directory
8686
wheel.install-dir = "mqt/ddsim"
8787

88+
# Explicitly set the package directory
89+
wheel.packages = ["src/mqt"]
90+
8891
# Set required Ninja version
8992
ninja.version = ">=1.10"
9093

9194
# Setuptools-style build caching in a local directory
92-
build-dir = "build/{build_type}"
93-
94-
# Explicitly set the package directory
95-
wheel.packages = ["src/mqt"]
95+
build-dir = "build/{wheel_tag}/{build_type}"
9696

9797
# Only build the Python bindings target
9898
build.targets = ["pyddsim"]
@@ -301,7 +301,7 @@ environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" }
301301
[tool.cibuildwheel.windows]
302302
before-build = "pip install delvewheel>=1.7.3"
303303
repair-wheel-command = "delvewheel repair -v -w {dest_dir} {wheel} --namespace-pkg mqt"
304-
environment = { CMAKE_ARGS = "-T ClangCL", SKBUILD_CMAKE_ARGS="--fresh" }
304+
environment = { CMAKE_ARGS = "-T ClangCL" }
305305

306306
[[tool.cibuildwheel.overrides]]
307307
select = "*-macosx_arm64"

0 commit comments

Comments
 (0)