Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Adjustments to netcdf-fortran build script to to get working in cibui…
Browse files Browse the repository at this point in the history
…ldwheel
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Sep 21, 2023
1 parent 58b7997 commit e16b9c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions buildscripts/build_netcdf-fortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ printf "*********************************************************\n"

cd ${DEPENDENCY_DIR}/netcdf-fortran-*

NCLIBDIR=$(${PREFIX}/bin/nc-config --libdir)
if [ $OS = "MacOSX" ]; then
netCDF_LIBRARIES="${PREFIX}/lib/libnetcdf.dylib"
netCDF_LIBRARIES="${NCLIBDIR}/ibnetcdf.dylib"
else
netCDF_LIBRARIES="${PREFIX}/lib/libnetcdf.so"
netCDF_LIBRARIES="${NCLIBDIR}/libnetcdf.so"
fi
cmake -B build -S . -G Ninja -DnetCDF_INCLUDE_DIR="${PREFIX}/include" -DnetCDF_LIBRARIES="${netCDF_LIBRARIES}" -DCMAKE_INSTALL_PREFIX=${PREFIX}
cmake --build build -j${NPROC}
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ before-all = [
[tool.cibuildwheel.linux]
before-all = [
"yum install doxygen libxml2-devel libcurl-devel -y",
"wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip",
"unzip ninja-linux.zip -d /usr/local/bin",
"buildscripts/build_dependencies.sh -p /usr/local"
]
[tool.cibuildwheel.linux.environment]
Expand Down

0 comments on commit e16b9c8

Please sign in to comment.