Skip to content

Commit df3d724

Browse files
Bump cibuildwheel version and add pip option
cibuildwheel 2.3 upgraded the version of pip it uses, but that version altered how symlinks were handled on Windows. Specifying this environment variable should restore the behaviour for now. It'll be deprecated eventually though so we will need to do something else long term.
1 parent 6d56f3a commit df3d724

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
- name: Install Python Dependencies
7474
# Pin cibuildwheel due to https://github.com/pypa/cibuildwheel/issues/962
75-
run: pip install build cibuildwheel==2.2.2
75+
run: pip install build cibuildwheel>=2.3.1
7676

7777
- name: Build Sdist
7878
if: matrix.sdist
@@ -111,7 +111,7 @@ jobs:
111111
path: dist/pytest-results.xml
112112

113113
publish-test-results:
114-
name: "Publish Unit Tests Results"
114+
name: Publish Unit Tests Results
115115
needs: build
116116
runs-on: ubuntu-latest
117117
if: always()

setup.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@ addopts =
6464
[coverage:run]
6565
# This is covered in the versiongit test suite so exclude it here
6666
omit = */_version_git.py
67+
68+
# cibuildwheel 2.3.0 upgraded to pip v21.3, which no longer completely copies the
69+
# source directory before building, so the symlink'd "iocStatsDb" folder isn't included
70+
# in built wheels. This is a temporary fix for that, until pip drops support for this option.
71+
# The long term fix is to revamp how we include the iocStatsDb folder.
72+
# https://github.com/pypa/cibuildwheel/issues/962
73+
# https://github.com/pypa/pip/issues/7555
74+
[tool.cibuildwheel.environment]
75+
PIP_USE_DEPRECATED = "out-of-tree-build"

0 commit comments

Comments
 (0)