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

Commit

Permalink
Fixed the prefix path in the build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Sep 21, 2023
1 parent e7b86b4 commit 00a4985
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions buildscripts/build_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ printf "*********************************************************\n"

cd ${DEPENDENCY_DIR}/hdfsrc
ZLIB_ROOT=${PREFIX}
cmake -B build -S . -G Ninja
cmake -B build -S . -G Ninja -DCMAKE_INSTALL_PREFIX=${PREFIX}
cmake --build build -j${NPROC}
if [ -w ${PREFIX} ]; then
cmake --install build --prefix ${PREFIX}
cmake --install build
else
sudo cmake --install build --prefix ${PREFIX}
sudo cmake --install build
fi

if [ $? -ne 0 ]; then
Expand Down
6 changes: 3 additions & 3 deletions buildscripts/build_netcdf-c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ printf "HDF5_ROOT: ${HDF5_ROOT}\n"
printf "*********************************************************\n"

cd ${DEPENDENCY_DIR}/netcdf-c-*
cmake -B build -S . -G Ninja
cmake -B build -S . -G Ninja -DCMAKE_INSTALL_PREFIX=${PREFIX}
cmake --build build -j${NPROC}
if [ -w ${PREFIX} ]; then
cmake --install build --prefix ${PREFIX}
cmake --install build
else
sudo cmake --install build --prefix ${PREFIX}
sudo cmake --install build
fi

if [ $? -ne 0 ]; then
Expand Down
6 changes: 3 additions & 3 deletions buildscripts/build_netcdf-fortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ if [ $OS = "MacOSX" ]; then
else
netCDF_LIBRARIES="${PREFIX}/lib/libnetcdf.so"
fi
cmake -B build -S . -G Ninja -DnetCDF_INCLUDE_DIR="${PREFIX}/include" -DnetCDF_LIBRARIES="${netCDF_LIBRARIES}"
cmake -B build -S . -G Ninja -DnetCDF_INCLUDE_DIR="${PREFIX}/include" -DnetCDF_LIBRARIES="${netCDF_LIBRARIES}" -DCMAKE_INSTALL_PREFIX=${PREFIX}
cmake --build build -j${NPROC}
if [ -w ${PREFIX} ]; then
cmake --install build --prefix ${PREFIX}
cmake --install build
else
sudo cmake --install build --prefix ${PREFIX}
sudo cmake --install build
fi

if [ $? -ne 0 ]; then
Expand Down
6 changes: 3 additions & 3 deletions buildscripts/build_zlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ printf "LDFLAGS: ${LDFLAGS}\n"
printf "*********************************************************\n"

cd ${DEPENDENCY_DIR}/zlib-*
cmake -B build -S . -G Ninja
cmake -B build -S . -G Ninja -DCMAKE_INSTALL_PREFIX=${PREFIX}
cmake --build build -j${NPROC}
if [ -w ${PREFIX} ]; then
cmake --install build --prefix ${PREFIX}
cmake --install build
else
sudo cmake --install build --prefix ${PREFIX}
sudo cmake --install build
fi

if [ $? -ne 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ netCDF-Fortran_DIR="${PREFIX}/lib/cmake/netCDF"
[tool.cibuildwheel.macos]
before-all = [
"brew install coreutils",
"LIBS=\"\" buildscripts/build_dependencies.sh -p ${PREFIX} -d ${HOME}/Downloads -m ${MACOSX_DEPLOYMENT_TARGET}"
"LIBS=\"\" buildscripts/build_dependencies.sh -p ${PREFIX} -d ${PREFIX}/build -m ${MACOSX_DEPLOYMENT_TARGET}"
]

[tool.cibuildwheel.linux]
Expand Down

0 comments on commit 00a4985

Please sign in to comment.