Skip to content

Commit 806bf64

Browse files
authored
Merge pull request #985 from darshan-hpc/snyder/bump-cibuildwheel-2.17.0
CI: bump cibuildwheel, drop 3.7 testing
2 parents a01ab69 + 195a3bf commit 806bf64

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
runs-on: ${{ matrix.os }}
4848
strategy:
4949
matrix:
50-
os: [ubuntu-latest, macos-latest]
50+
os: [ubuntu-latest, macos-latest, macos-13]
5151

5252
steps:
5353
- uses: actions/checkout@v2
5454

5555
- name: Build wheels
56-
uses: pypa/cibuildwheel@v2.11.2
56+
uses: pypa/cibuildwheel@v2.17.0
5757
with:
5858
package-dir: ./darshan-util/pydarshan
5959

.github/workflows/main_ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
platform: [ubuntu-latest,
2323
macos-latest]
24-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
24+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2525
runs-on: ${{ matrix.platform }}
2626
steps:
2727
- uses: actions/checkout@v3
@@ -37,6 +37,7 @@ jobs:
3737
name: Install MacOS deps
3838
run: |
3939
brew install automake
40+
brew install libtool
4041
- name: Install darshan-util
4142
run: |
4243
mkdir darshan_install

darshan-util/pydarshan/pyproject.toml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ include = ["darshan"]
6363
version = {attr = "darshan.__version__"}
6464

6565
[tool.cibuildwheel]
66-
environment = "PYDARSHAN_BUILD_EXT=1"
6766
skip = [
68-
"cp36-*",
67+
"cp37-*",
6968
"pp*",
7069
"*musllinux*",
7170
"*i686*",
@@ -90,22 +89,37 @@ before-all = [
9089
"yum install -y libjpeg libjpeg-devel",
9190
"git submodule update --init",
9291
"./prepare.sh",
93-
"./configure --disable-darshan-runtime --enable-apxc-mod --enable-apmpi-mod",
92+
"./configure --prefix=$PWD/darshan_install --disable-darshan-runtime --enable-apxc-mod --enable-apmpi-mod",
9493
"make install"
9594
]
96-
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
95+
repair-wheel-command = [
96+
"auditwheel repair -w {dest_dir} {wheel}"
97+
]
98+
99+
[tool.cibuildwheel.linux.environment]
100+
DARSHAN_LIBRARY_PATH="$PWD/darshan_install/lib"
101+
LIBRARY_PATH="$LIBRARY_PATH:$DARSHAN_LIBRARY_PATH"
102+
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DARSHAN_LIBRARY_PATH"
103+
PYDARSHAN_BUILD_EXT=1
97104

98105
[tool.cibuildwheel.macos]
99106
before-all = [
100107
"brew install automake",
108+
"brew install libtool",
101109
"brew install openblas",
102110
"brew install lapack",
103111
"git submodule update --init",
104112
"./prepare.sh",
105-
"./configure --disable-darshan-runtime --enable-apxc-mod --enable-apmpi-mod",
113+
"./configure --prefix=$PWD/darshan_install --disable-darshan-runtime --enable-apxc-mod --enable-apmpi-mod",
106114
"make install"
107115
]
108116
repair-wheel-command = [
109-
"delocate-listdeps {wheel}",
110-
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",
117+
"delocate-listdeps {wheel}",
118+
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
111119
]
120+
121+
[tool.cibuildwheel.macos.environment]
122+
DARSHAN_LIBRARY_PATH="$PWD/darshan_install/lib"
123+
LIBRARY_PATH="$LIBRARY_PATH:$DARSHAN_LIBRARY_PATH"
124+
DYLD_FALLBACK_LIBRARY_PATH="$DYLD_FALLBACK_LIBRARY_PATH:$DARSHAN_LIBRARY_PATH"
125+
PYDARSHAN_BUILD_EXT=1

0 commit comments

Comments
 (0)