Skip to content

Commit 5329994

Browse files
committed
Add pkg-config
1 parent ce7fa99 commit 5329994

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-wheels.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ jobs:
8686
echo "CC=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8787
echo "CXX=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8888
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
89101
# - name: Specify MSVC toolchain - windows-arm
90102
# if: ${{ matrix.os == 'windows-11-arm' }}
91103
# # When building on windows ARM, we need to use the MSVC toolchain

0 commit comments

Comments
 (0)