From 0e0c08501b59288b08868ace5034d14f1c49456d Mon Sep 17 00:00:00 2001 From: Radomir Stevanovic Date: Thu, 7 Jul 2022 04:48:35 -0700 Subject: [PATCH 1/2] Repair windows wheels using delvewheel (in cibw build job) `delvewheel` is not yet used by default for windows builds in CIBW (unlike delocate for macos, or auditwheel for linux), but official delvewheel shoutout was added to CIBW docs in https://github.com/pypa/cibuildwheel/pull/650. --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b12c53ada..2a1888e6c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -124,6 +124,9 @@ jobs: <<: *global-environment CIBW_PROJECT_REQUIRES_PYTHON: ~=<< parameters.python-version>> CIBW_ARCHS_WINDOWS: AMD64 + # use delvewheel on windows + CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" + CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}" steps: - checkout From 78c61296cba683f1d2b80acdf6838c20e656d3aa Mon Sep 17 00:00:00 2001 From: Radomir Stevanovic Date: Thu, 7 Jul 2022 06:14:38 -0700 Subject: [PATCH 2/2] Upgrade cibuildwheel to latest minor (2.8.0) --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2a1888e6c..1be87e87e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,7 +44,7 @@ jobs: python3 -m venv env . env/bin/activate pip install pip --upgrade - pip install cibuildwheel==2.6.0 + pip install cibuildwheel==2.8.0 cibuildwheel --output-dir dist - save_cache: &build-linux-save-cache paths: @@ -134,7 +134,7 @@ jobs: name: build wheels command: | python -m pip install pip --upgrade - python -m pip install cibuildwheel==2.6.0 + python -m pip install cibuildwheel==2.8.0 python -m cibuildwheel --output-dir dist - store_artifacts: *store-artifacts - persist_to_workspace: *persist-to-workspace