Skip to content

Commit

Permalink
bing in libzip as submodule for source build on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jan 19, 2025
1 parent 9116ed6 commit 9cbbe0a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 58 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
run: |
brew install boost
brew install hdf5
brew install libzip
brew install ninja
brew install libaec
Expand All @@ -93,7 +92,6 @@ jobs:
run: |
brew install boost
brew install hdf5
brew install libzip
brew install ninja
brew install libaec
Expand Down Expand Up @@ -200,7 +198,6 @@ jobs:
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-boost
mingw-w64-clang-x86_64-hdf5
mingw-w64-clang-x86_64-libzip
mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-libaec
Expand Down Expand Up @@ -256,7 +253,7 @@ jobs:
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev libhdf5-dev libzip-dev libbz2-dev ninja-build
sudo apt-get install -y libboost-all-dev libhdf5-dev libbz2-dev ninja-build
gcc --version
gfortran --version
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
run: |
brew install boost
brew install hdf5
brew install libzip
brew install ninja
brew install libaec
Expand All @@ -59,7 +58,6 @@ jobs:
run: |
brew install boost
brew install hdf5
brew install libzip
brew install ninja
brew install libaec
Expand Down Expand Up @@ -89,7 +87,6 @@ jobs:
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-boost
mingw-w64-clang-x86_64-hdf5
mingw-w64-clang-x86_64-libzip
mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-libaec
mingw-w64-clang-x86_64-python-pip-tools
Expand Down Expand Up @@ -140,16 +137,6 @@ jobs:
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c \
"yum install -y boost-devel hdf5-devel ninja-build && \
yum update -y curl && \
cd /tmp && \
curl -LO https://libzip.org/download/libzip-1.10.1.tar.gz && \
tar -xzf libzip-1.10.1.tar.gz && \
cd libzip-1.10.1 && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
/opt/python/cp39-cp39/bin/pip wheel /io/ -w /io/dist && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
Expand All @@ -162,16 +149,6 @@ jobs:
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c \
"yum install -y boost-devel hdf5-devel ninja-build && \
yum update -y curl && \
cd /tmp && \
curl -LO https://libzip.org/download/libzip-1.10.1.tar.gz && \
tar -xzf libzip-1.10.1.tar.gz && \
cd libzip-1.10.1 && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
/opt/python/cp310-cp310/bin/pip wheel /io/ -w /io/dist && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
Expand All @@ -184,16 +161,6 @@ jobs:
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c \
"yum install -y boost-devel hdf5-devel ninja-build && \
yum update -y curl && \
cd /tmp && \
curl -LO https://libzip.org/download/libzip-1.10.1.tar.gz && \
tar -xzf libzip-1.10.1.tar.gz && \
cd libzip-1.10.1 && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
/opt/python/cp311-cp311/bin/pip wheel /io/ -w /io/dist && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
Expand All @@ -206,16 +173,6 @@ jobs:
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 \
/bin/bash -c \
"yum install -y boost-devel hdf5-devel ninja-build && \
yum update -y curl && \
cd /tmp && \
curl -LO https://libzip.org/download/libzip-1.10.1.tar.gz && \
tar -xzf libzip-1.10.1.tar.gz && \
cd libzip-1.10.1 && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install && \
/opt/python/cp312-cp312/bin/pip wheel /io/ -w /io/dist && \
auditwheel repair /io/dist/*.whl -w /io/dist/"
echo "keeping only the manylinux wheels, remove those with -linux_x86_64.whl in the name"
Expand Down
12 changes: 1 addition & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,6 @@ include(GetGitRevisionDescription)
git_describe(GIT_DESCRIBE ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR)

include (FindZLIB)
include (FindLIBZIP)

# help CMake find libzip
if (APPLE)
execute_process(COMMAND brew --prefix libzip OUTPUT_VARIABLE LIBZIP_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${LIBZIP_PREFIX})
endif()
find_package(LIBZIP 1.10 REQUIRED)


if (NOT OPTION_TARGET_PYTHON_BINDING)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
Expand Down Expand Up @@ -216,8 +207,7 @@ add_subdirectory(VCellMessaging)

add_subdirectory(VCellZipUtils)



add_subdirectory(libzip)

add_subdirectory(libzippp)
# Path to the patch file
Expand Down

0 comments on commit 9cbbe0a

Please sign in to comment.