Follow-up 354c737: Fix macOS build

This commit is contained in:
Johann Bauer 2018-05-13 22:14:48 +02:00
parent 354c737ce0
commit 64438573b1
No known key found for this signature in database
GPG Key ID: 84F1BF925B1F484D

View File

@ -16,14 +16,14 @@ VERSION=`git describe --tags --dirty`
info "Installing Python $PYTHON_VERSION"
export PATH="~/.pyenv/bin:~/.pyenv/shims:~/Library/Python/3.6/bin:$PATH"
#if [ -d "~/.pyenv" ]; then
# pyenv update
#else
# curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash > /dev/null 2>&1
#fi
#PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install -s $PYTHON_VERSION && \
#pyenv global $PYTHON_VERSION || \
#fail "Unable to use Python $PYTHON_VERSION"
if [ -d "~/.pyenv" ]; then
pyenv update
else
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash > /dev/null 2>&1
fi
PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install -s $PYTHON_VERSION && \
pyenv global $PYTHON_VERSION || \
fail "Unable to use Python $PYTHON_VERSION"
info "Installing pyinstaller"