From 7b49ed873ca7217f5feea0974736c1db7d830b46 Mon Sep 17 00:00:00 2001 From: Adrien Beraud Date: Tue, 2 Sep 2025 11:55:18 -0400 Subject: [PATCH] build/python: install build for ci job --- .github/workflows/python-wheels.yml | 2 +- python/pyproject.toml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index 7039ef23..6d77da94 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -69,7 +69,7 @@ jobs: - name: Build wheels run: | - pip install cython delvewheel + pip install cython delvewheel build cmake -S . -B build ` -DCMAKE_BUILD_TYPE=Release ` -DVCPKG_TARGET_TRIPLET=${{ env.VCPKG_DEFAULT_TRIPLET }} ` diff --git a/python/pyproject.toml b/python/pyproject.toml index b0ed8393..f3238be3 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "wheel", "Cython"] +requires = ["setuptools", "wheel", "Cython", "build"] build-backend = "setuptools.build_meta" [tool.cibuildwheel] @@ -43,6 +43,7 @@ repair-wheel-command = 'DYLD_LIBRARY_PATH=$PWD delocate-wheel -w {dest_dir} {whe [tool.cibuildwheel.windows] # Configure first, then from 'build' directory run: with pipx run cibuildwheel python before-build = [ - 'cmake --build . --config Release --target python', + 'pip install cython delvewheel build', + 'cmake --build . --config Release', ] repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel} --add-path ./Release --add-path ./vcpkg_installed/x64-windows-release/bin"