Skip to content

Commit b0c891f

Browse files
Still trying to get libzip found (+ name fix)
1 parent f3e5bce commit b0c891f

File tree

2 files changed

+49
-7
lines changed

2 files changed

+49
-7
lines changed

.github/workflows/build_wheels.yml

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
mingw-w64-clang-x86_64-boost \
8383
mingw-w64-clang-x86_64-hdf5 \
8484
mingw-w64-clang-x86_64-zlib \
85+
mingw-w64-clang-x86_64-libzip \
8586
mingw-w64-clang-x86_64-libaec"
8687
echo "C:\tools\msys64\mingw64\bin" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
8788
echo "C:\tools\msys64\clang64\bin" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
@@ -110,6 +111,7 @@ jobs:
110111
CIBW_BUILD: ${{ matrix.python_version }}
111112
CIBW_ENVIRONMENT: >
112113
FC=/usr/local/bin/gfortran
114+
MACOSX_DEPLOYMENT_TARGET="10.13"
113115
# with:
114116
# package-dir: .
115117
# output-dir: wheelhouse
@@ -133,7 +135,9 @@ jobs:
133135
if: matrix.os == 'ubuntu-24.04-arm'
134136
env:
135137
CIBW_BUILD: ${{ matrix.python_version }}
136-
CIBW_BEFORE_BUILD: "pip install h5py && export LIBZIP_INCLUDE_DIR=/usr/local/include && export LIBZIP_LIBRARY=/usr/local/lib/libzip.so"
138+
CIBW_MANYLINUX_*_IMAGE: "manylinux_2_34"
139+
CIBW_REPAIR_WHEEL_COMMAND: 'auditwheel repair --disable-isa-ext-check {wheel} -w {dest_dir}'
140+
CIBW_BEFORE_BUILD: "yum install -y boost-devel hdf5-devel libzip-devel bzip2-devel ninja-build openssl-devel xz-devel && pip install h5py"
137141
# with:
138142
# package-dir: .
139143
# output-dir: wheelhouse
@@ -144,15 +148,52 @@ jobs:
144148
if: matrix.os == 'ubuntu-latest'
145149
env:
146150
CIBW_BUILD: ${{ matrix.python_version }}
147-
CIBW_BEFORE_BUILD: "pip install h5py && export LIBZIP_INCLUDE_DIR=/usr/local/include && export LIBZIP_LIBRARY=/usr/local/lib/libzip.so"
151+
CIBW_MANYLINUX_*_IMAGE: 'manylinux_2_34'
152+
CIBW_REPAIR_WHEEL_COMMAND: 'auditwheel repair --disable-isa-ext-check {wheel} -w {dest_dir}'
153+
CIBW_BEFORE_BUILD: "yum install -y boost-devel hdf5-devel libzip-devel bzip2-devel ninja-build openssl-devel xz-devel && pip install h5py \
154+
"
148155
# with:
149156
# package-dir: .
150157
# output-dir: wheelhouse
151158
# config-file: "{package}/pyproject.toml"
159+
# && mkdir /libzip_source \
160+
# &&
161+
# && export LIBZIP_INCLUDE_DIR=/usr/local/include \
162+
# && export LIBZIP_LIBRARY=/usr/local/lib/libzip.so
152163

153-
- uses: actions/upload-artifact@v4
164+
- name: Upload Artifact (Python 3.9)
165+
uses: actions/upload-artifact@v4
166+
if: matrix.python_version == 'cp39-*'
154167
with:
155-
name: pyvcell-fv-${{ matrix.os }}-${{ matrix.python_version }}-cibw-wheels
168+
name: pyvcell-fv-${{ matrix.os }}-cp39-cibw-wheels
169+
path: ./wheelhouse/*.whl
170+
171+
- name: Upload Artifact (Python 3.10)
172+
uses: actions/upload-artifact@v4
173+
if: matrix.python_version == 'cp310-*'
174+
with:
175+
name: pyvcell-fv-${{ matrix.os }}-cp310-cibw-wheels
176+
path: ./wheelhouse/*.whl
177+
178+
- name: Upload Artifact (Python 3.11)
179+
uses: actions/upload-artifact@v4
180+
if: matrix.python_version == 'cp311-*'
181+
with:
182+
name: pyvcell-fv-${{ matrix.os }}-cp311-cibw-wheels
183+
path: ./wheelhouse/*.whl
184+
185+
- name: Upload Artifact (Python 3.12)
186+
uses: actions/upload-artifact@v4
187+
if: matrix.python_version == 'cp312-*'
188+
with:
189+
name: pyvcell-fv-${{ matrix.os }}-cp312-cibw-wheels
190+
path: ./wheelhouse/*.whl
191+
192+
- name: Upload Artifact (Python 3.13)
193+
uses: actions/upload-artifact@v4
194+
if: matrix.python_version == 'cp313-*'
195+
with:
196+
name: pyvcell-fv-${{ matrix.os }}-cp313-cibw-wheels
156197
path: ./wheelhouse/*.whl
157198

158199
- name: Setup tmate session on failure

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/libzippp/cmake/"
132132
include(GetGitRevisionDescription)
133133
git_describe(GIT_DESCRIBE ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR)
134134

135-
include (FindZLIB)
136-
include (FindLIBZIP)
137-
138135
# help CMake find libzip
139136
if (APPLE)
140137
execute_process(COMMAND brew --prefix libzip OUTPUT_VARIABLE LIBZIP_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
141138
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${LIBZIP_PREFIX})
142139
endif()
140+
141+
include (FindZLIB)
142+
include (FindLIBZIP)
143+
143144
find_package(LIBZIP 1.10 REQUIRED)
144145

145146

0 commit comments

Comments
 (0)