Skip to content

Commit ed9777e

Browse files
committed
Try better diagnostics
1 parent 5329994 commit ed9777e

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/build-wheels.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
CIBW_SKIP: "cp39-win_arm64 cp310-win_arm64"
1818
# TODO: consider turning this on
1919
# CIBW_ENABLE: cpython-freethreading
20+
CIBW_CONFIG_SETTINGS: "-Cbuild-dir=build"
2021
CIBW_BEFORE_BUILD_WINDOWS: >-
2122
pip install delvewheel
2223
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
@@ -86,18 +87,6 @@ jobs:
8687
echo "CC=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8788
echo "CXX=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8889
echo "FC=flang-new" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
89-
# From numpy: https://github.com/numpy/numpy/blob/37c9cb68ba7db9c48bc0e3354953c57a78d2b0e8/.github/workflows/wheels.yml#L133
90-
- name: pkg-config-for-win-arm
91-
if: ${{ matrix.os == 'windows-11-arm' }}
92-
run: |
93-
choco install -y --no-progress --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
94-
$CIBW = "${{ github.workspace }}/.openblas"
95-
# pkgconfig needs a complete path, and not just "./openblas since the
96-
# build is run in a tmp dir (?)
97-
# It seems somewhere in the env passing, `\` is not
98-
# passed through, so convert it to '/'
99-
$CIBW = $CIBW.replace("\","/")
100-
echo "CIBW_ENVIRONMENT_WINDOWS=PKG_CONFIG_PATH=$CIBW" >> $env:GITHUB_ENV
10190
# - name: Specify MSVC toolchain - windows-arm
10291
# if: ${{ matrix.os == 'windows-11-arm' }}
10392
# # When building on windows ARM, we need to use the MSVC toolchain
@@ -125,6 +114,14 @@ jobs:
125114
# # (https://numpy.org/devdocs/f2py/windows/intel.html#f2py-and-windows-intel-fortran)
126115
# compiler: "intel-classic"
127116
# version: "2021.10"
117+
# TODO: remove, diagnostic only
118+
- name: Upload build dir
119+
uses: actions/upload-artifact@v4
120+
if: always()
121+
with:
122+
name: cibw-wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}
123+
path: ./build
124+
if-no-files-found: error
128125
- name: Build wheels
129126
uses: pypa/cibuildwheel@v3.1.4 # matplotlib had v3.1.3
130127
with:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ requires = [
134134
setup = [
135135
'--default-library=static',
136136
'-Dpyprojectwheelbuild=enabled',
137+
# '-Dbuild-dir=build',
137138
]
138139
install = [
139140
'--skip-subprojects',

0 commit comments

Comments
 (0)