Skip to content

Commit f2edfd1

Browse files
committed
setting absolute paths to pip & python binaries as was done recently in my downtream buskill-app repo to fix various build issues in MacOS
This is due to issues installing CPython & kivy. See relevant issue: * #5
1 parent 74b2c4c commit f2edfd1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build/mac/buildDmg.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ set -x
1111
#
1212
# Authors: Michael Altfield <[email protected]>
1313
# Created: 2020-06-22
14-
# Updated: 2020-06-22
15-
# Version: 0.1
14+
# Updated: 2020-09-17
15+
# Version: 0.2
1616
################################################################################
1717

1818

1919
############
2020
# SETTINGS #
2121
############
2222

23-
PYTHON_PATH='/usr/local/bin/python3'
23+
PYTHON_PATH='/usr/local/Cellar/[email protected]/3.7.8_1/bin/python3'
24+
PIP_PATH='/usr/local/Cellar/[email protected]/3.7.8_1/bin/pip3'
2425
APP_NAME='helloWorld'
2526

2627
PYTHON_VERSION="`${PYTHON_PATH} --version | cut -d' ' -f2`"
@@ -56,15 +57,15 @@ brew reinstall sdl2 sdl2_image sdl2_ttf sdl2_mixer
5657

5758
# setup a virtualenv to isolate our app's python depends
5859
sudo ${PYTHON_PATH} -m ensurepip
59-
${PYTHON_PATH} -m pip install --upgrade --force-reinstall --user pip setuptools
60+
${PIP_PATH} install --upgrade --force-reinstall --user pip setuptools
6061
#${PYTHON_PATH} -m pip install --upgrade --user virtualenv
6162
#${PYTHON_PATH} -m virtualenv /tmp/kivy_venv
6263

6364
# install kivy and all other python dependencies with pip into our virtual env
6465
#source /tmp/kivy_venv/bin/activate
65-
${PYTHON_PATH} -m pip install --upgrade --force-reinstall --user Cython==0.29.10
66-
${PYTHON_PATH} -m pip install --upgrade --force-reinstall --user -r requirements.txt
67-
${PYTHON_PATH} -m pip install --upgrade --force-reinstall --user PyInstaller
66+
${PIP_PATH} install --upgrade --force-reinstall --user Cython==0.29.10 || exit 1
67+
${PIP_PATH} install --upgrade --force-reinstall --user -r requirements.txt || exit 1
68+
${PIP_PATH} install --upgrade --force-reinstall --user PyInstaller || exit 1
6869

6970
#####################
7071
# PYINSTALLER BUILD #

0 commit comments

Comments
 (0)