Skip to content

Commit 6af897d

Browse files
native-apiskvark
authored andcommitted
Install macpython late to avoid conflict with Homebrew python upgrade
1 parent 5916c66 commit 6af897d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,15 +594,13 @@ before_install: |
594594
brew_cache_cleanup
595595
fi
596596
597-
before_install
598597
# Not interested in travis internal scripts' output
599598
set +x
600599
601600
install: |
602601
# Build and package
603602
set -x
604603
build_wheel $REPO_DIR $PLAT
605-
if [ -n "$USE_CCACHE" ]; then ccache --show-stats; fi
606604
set +x
607605
608606
script: |

config.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function bdist_wheel_cmd {
1616
local abs_wheelhouse=$1
1717
python setup.py bdist_wheel $BDIST_PARAMS
1818
cp dist/*.whl $abs_wheelhouse
19+
if [ -n "$USE_CCACHE" -a -z "$BREW_BOOTSTRAP_MODE" ]; then ccache --show-stats; fi
1920
}
2021

2122
if [ -n "$IS_OSX" ]; then
@@ -99,7 +100,7 @@ function pre_build {
99100
# this takes several seconds and we don't need it
100101
# see https://docs.brew.sh/Manpage , "info formula" section
101102
export HOMEBREW_NO_GITHUB_API=1
102-
103+
103104
echo 'Installing QT4'
104105
brew tap | grep -qxF cartr/qt4 || brew tap cartr/qt4
105106
brew tap --list-pinned | grep -qxF cartr/qt4 || brew tap-pin cartr/qt4
@@ -108,8 +109,13 @@ function pre_build {
108109
echo 'Installing FFmpeg'
109110

110111
generate_ffmpeg_formula
111-
brew_install_and_cache_within_time_limit ffmpeg_opencv || { [ $? -gt 1 ] && return 2 || return 0; }
112-
112+
local IS_BOTTLE_AVAILABLE; _brew_is_bottle_available ffmpeg_opencv && IS_BOTTLE_AVAILABLE=1 || IS_BOTTLE_AVAILABLE=0
113+
_brew_install_and_cache ffmpeg_opencv "$IS_BOTTLE_AVAILABLE"
114+
#brew_install_and_cache_within_time_limit ffmpeg_opencv || { [ $? -gt 1 ] && return 2 || return 0; }
115+
116+
# Have to install macpython late to avoid conflict with Homebrew Python update
117+
before_install
118+
113119
else
114120
echo "Running for linux"
115121
fi

travis_osx_brew_cache.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ function brew_go_bootstrap_mode {
215215
# Terminate the build but ensure saving the cache
216216

217217
echo "Going into cache bootstrap mode"
218+
219+
BREW_BOOTSTRAP_MODE=1
218220

219221
#Can't just `exit` because that would terminate the build without saving the cache
220222
#Have to replace further actions with no-ops

0 commit comments

Comments
 (0)