Skip to content

Commit 6b2cf3d

Browse files
committed
more robust pinning to correct version of python/pip binaries using find
1 parent 657d12d commit 6b2cf3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/mac/buildDmg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ ls -lah /usr/local/Cellar/[email protected]/3.7.8_1
2626
ls -lah /usr/local/Cellar/[email protected]
2727
find /usr/local/Cellar/[email protected]
2828

29-
PYTHON_PATH='/usr/local/Cellar/[email protected]/3.7.8_1/bin/python3'
30-
PIP_PATH='/usr/local/Cellar/[email protected]/3.7.8_1/bin/pip3'
29+
PYTHON_PATH="`find /usr/local/Cellar/[email protected] -type f -name python3.7 | head -n1`"
30+
PIP_PATH="`find /usr/local/Cellar/[email protected] -type f -name pip3.7 | head -n1`"
3131
APP_NAME='helloWorld'
3232

3333
PYTHON_VERSION="`${PYTHON_PATH} --version | cut -d' ' -f2`"

0 commit comments

Comments
 (0)