Skip to content

Commit

Permalink
macOS build issue with brew fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Nov 29, 2018
1 parent eae9cd9 commit df70e74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ case $TRAVIS_OS_NAME in
rmdir $CELLAR_CACHE_DIR/$p && brew install $pkg \
|| { brew unlink $p ; brew link --force $p ; }
done
brew update && brew upgrade $REQUIRED_PACKAGES
brew update && brew upgrade $REQUIRED_PACKAGES || true
# export PYENV_ROOT="$CELLAR_CACHE_DIR/.pyenv"
export PATH="$(pyenv root)/bin:$PATH"
eval "$(pyenv init -)"
#pyenv update || true
pyenv install --list
env CFLAGS="-O2 -fPIC" pyenv install -s 3.5.6
BEST_AVAILABLE_PYTHON_VERSION=$(pyenv install --list | grep -E '^\s*3\.5\.[0-9]+$' | sort -ruVifb | head -n 1)
echo "From pyenv the best matched version is $BEST_AVAILABLE_PYTHON_VERSION"
env CFLAGS="-O2 -fPIC" pyenv install -s $BEST_AVAILABLE_PYTHON_VERSION
pyenv global $BEST_AVAILABLE_PYTHON_VERSION
;;

linux)
Expand All @@ -26,6 +27,6 @@ case $TRAVIS_OS_NAME in
then
pip install --user codecov
fi
;;
;;
*) exit 1 ;;
esac
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ ENV QTDIR "/opt/qt56"
ENV PATH "${QTDIR}/bin:/usr/lib/ccache:${PATH}"

RUN apt install -y libssl-dev
RUN CFLAGS="-O2 -fPIC" pyenv install 3.5.6
ENV PYENV_VERSION 3.5.6
RUN CFLAGS="-O2 -fPIC" pyenv install -s $PYENV_VERSION

RUN echo 'source /opt/qt56/bin/qt56-env.sh' >> /root/.bashrc
RUN echo 'eval "$(pyenv init -)"' >> /root/.bashrc
Expand Down

0 comments on commit df70e74

Please sign in to comment.