8000 Fix incorrect paths for delocate · GArik/opencv-python@3359907 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3359907

Browse files
committed
Fix incorrect paths for delocate
1 parent 6b9eb0f commit 3359907

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

travis_osx_build.sh

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function pre_build_osx {
4444
local num_cpus=$(sysctl -n hw.ncpu)
4545
num_cpus=${num_cpus:-4}
4646
local travis_start_time=$(($TRAVIS_TIMER_START_TIME/10**9))
47-
local time_limit=$((45*60))
47+
local time_limit=$((46*60))
4848

4949
cd "$repo_dir"
5050
git submodule sync
@@ -88,9 +88,6 @@ function pre_build_osx {
8888
)
8989
fi
9090

91-
# Clear ccache stats
92-
ccache -z
93-
9491
# Configure build
9592
cd "$build_dir"
9693
cmake "${CMAKE_OPTS[@]}" ..
@@ -151,13 +148,13 @@ function pre_build_osx {
151148
opencv_alphamat
152149
opencv_stitching
153150
opencv_gapi
151+
all
154152
)
155153
for m in "${CV_MODULES[@]}"; do
156154
if make help | grep -w "$m"; then
157-
# Check time limit (3min should be enough for a module to built)
155+
# Check time limit (3 min should be enough for a module build)
158156
local projected_time=$(($(date +%s) - travis_start_time + 3 * 60))
159157
if [ $projected_time -ge $time_limit ]; then
160-
if [ -n "$USE_CCACHE" ]; then ccache -s; fi
161158
goto_exit
162159
return 1
163160
fi
@@ -166,10 +163,6 @@ function pre_build_osx {
166163
echo "Elapsed time: "$((elapsed_time/60))"m (${elapsed_time}s)"
167164
fi
168165
done
169-
make -j${num_cpus}
170-
171-
# Print ccache stats
172-
if [ -n "$USE_CCACHE" ]; then ccache -s; fi
173166
}
174167

175168
function build_osx {
@@ -207,12 +200,22 @@ function build_bdist_osx_wheel {
207200
local repo_dir=$(abspath ${1:-$REPO_DIR})
208201
[ -z "$repo_dir" ] && echo "repo_dir not defined" && exit 1
209202
local wheelhouse=$(abspath ${WHEEL_SDIR:-wheelhouse})
203+
210204
start_spinner
211205
if [ -n "$(is_function "pre_build")" ]; then pre_build; fi
212206
stop_spinner
207+
213208
pip install scikit-build
214209
pip install numpy
210+
211+
if [ -n "$USE_CCACHE" ]; then ccache -z; fi
212+
215213
pre_build_osx "$repo_dir" || return $?
214+
215+
if [ -n "$USE_CCACHE" ]; then ccache -s; fi
216+
216217
build_osx "$repo_dir"
218+
219+
cp "$repo_dir"/dist/*.whl "$wheelhouse"
217220
repair_wheelhouse "$wheelhouse"
218221
}

0 commit comments

Comments
 (0)
0