Skip to content

Commit 2489b4a

Browse files
committed
Replace install path
1 parent f1206be commit 2489b4a

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflows/build_wheels.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ on:
55
branches:
66
- "main"
77

8-
# Set options available for all jobs that use cibuildwheel
98
env:
10-
# Increase pip debugging output, equivalent to `pip -vv`
119
CIBW_BUILD_VERBOSITY: 2
12-
# Disable build isolation to allow pre-installing build-time dependencies.
13-
# Note: CIBW_BEFORE_BUILD must be present in all jobs using cibuildwheel.
1410
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
1511
# Skip PyPy and MUSL builds in any and all jobs
1612
CIBW_SKIP: "pp* *musllinux*"
@@ -107,23 +103,24 @@ jobs:
107103
export PATH=$(pwd)/gfortran_installed/gfortran-darwin-arm64-native/bin:$PATH
108104
fi
109105
110-
# link libgfortran dylibs and place them in $HOME/.local/lib
111-
# and then change rpath to $HOME/.local/lib for each of them
106+
# link libgfortran dylibs and place them in $SOLVER_LIB_PATH
107+
# and then change rpath for each of them
112108
# Note: libgcc_s.1.dylib not available on macOS arm64; skip for now
113-
mkdir -p $HOME/.local/lib
109+
SOLVER_LIB_PATH=.idaklu/lib
110+
mkdir -p $SOLVER_LIB_PATH
114111
if [[ $(uname -m) == "x86_64" ]]; then
115112
lib_dir=$(pwd)/gfortran_installed/gfortran-darwin-x86_64-native/lib
116113
for lib in libgfortran.5.dylib libgfortran.dylib libquadmath.0.dylib libquadmath.dylib libgcc_s.1.dylib libgcc_s.1.1.dylib; do
117-
cp $lib_dir/$lib $HOME/.local/lib/
118-
install_name_tool -id $HOME/.local/lib/$lib $HOME/.local/lib/$lib
119-
codesign --force --sign - $HOME/.local/lib/$lib
114+
cp $lib_dir/$lib $SOLVER_LIB_PATH/
115+
install_name_tool -id $SOLVER_LIB_PATH/$lib $SOLVER_LIB_PATH/$lib
116+
codesign --force --sign - $SOLVER_LIB_PATH/$lib
120117
done
121118
elif [[ $(uname -m) == "arm64" ]]; then
122119
lib_dir=$(pwd)/gfortran_installed/gfortran-darwin-arm64-native/lib
123120
for lib in libgfortran.5.dylib libgfortran.dylib libquadmath.0.dylib libquadmath.dylib libgcc_s.1.1.dylib; do
124-
cp $lib_dir/$lib $HOME/.local/lib/
125-
install_name_tool -id $HOME/.local/lib/$lib $HOME/.local/lib/$lib
126-
codesign --force --sign - $HOME/.local/lib/$lib
121+
cp $lib_dir/$lib $SOLVER_LIB_PATH/.
122+
install_name_tool -id $SOLVER_LIB_PATH/$lib $SOLVER_LIB_PATH/$lib
123+
codesign --force --sign - $SOLVER_LIB_PATH/$lib
127124
done
128125
fi
129126
@@ -138,10 +135,10 @@ jobs:
138135
PREFIX="/opt/homebrew/Caskroom/miniforge/base/envs/pybammsolvers-dev"
139136
fi
140137
141-
# Copy libomp.dylib from PREFIX to $HOME/.local/lib, needed for wheel repair
142-
cp $PREFIX/lib/libomp.dylib $HOME/.local/lib/
143-
install_name_tool -id $HOME/.local/lib/libomp.dylib $HOME/.local/lib/libomp.dylib
144-
codesign --force --sign - $HOME/.local/lib/libomp.dylib
138+
# Copy libomp.dylib from PREFIX to $SOLVER_LIB_PATH, needed for wheel repair
139+
cp $PREFIX/lib/libomp.dylib $SOLVER_LIB_PATH/.
140+
install_name_tool -id $SOLVER_LIB_PATH/libomp.dylib $SOLVER_LIB_PATH/libomp.dylib
141+
codesign --force --sign - $SOLVER_LIB_PATH/libomp.dylib
145142
146143
export CC=/usr/bin/clang
147144
export CXX=/usr/bin/clang++

0 commit comments

Comments
 (0)