Skip to content

Commit 88823fc

Browse files
committed
Avoid confusing PIP_NO_BUILD_ISOLATION
The latest version of `cibuildwheel` allows passing arguments directly to the build frontend CLI.
1 parent 67946fa commit 88823fc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,15 @@ jobs:
312312
- uses: dtolnay/rust-toolchain@stable
313313
with:
314314
targets: aarch64-apple-darwin
315-
- uses: pypa/cibuildwheel@v2.3.1
315+
- uses: pypa/cibuildwheel@v2.16.2
316316
env:
317317
CIBW_BUILD: cp39-*
318318
CIBW_BEFORE_BUILD: pip install -U 'pip>=23.2.1' 'setuptools>=68.0.0' 'wheel<=0.37.1' && pip install -e . && pip list
319319
# ^-- cap on `wheel` is a workaround for pypa/auditwheel#436
320320
# setuptools needs to be upgraded before installing setuptools-rust
321321
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
322322
CIBW_BUILD_VERBOSITY: 3
323-
CIBW_BUILD_FRONTEND: pip # pip allows disabling isolation via env var
324-
CIBW_ENVIRONMENT: PIP_NO_BUILD_ISOLATION=false
325-
# ^-- necessary to use working copy of setuptools-rust,
326-
# (however PIP_NO_BUILD_ISOLATION is counter-intuitive: see pypa/pip#5735)
323+
CIBW_BUILD_FRONTEND: "build; args: --no-isolation"
327324
with:
328325
package-dir: examples/namespace_package
329326

0 commit comments

Comments
 (0)