Skip to content

Commit 48fc75f

Browse files
committed
the last run didn't produce much info because something in the process of uplaoding and running the mac/buildDmg.sh script is replacing the final two characters = '\;' in my find command with ';' (removing the backslash). Anyway, let's just try xargs.
Also, I noticed that `python3` (which we don't call, but may be called by one of the kivy scripts) is actually /usr/local/bin/python3 which is a symlink to /usr/local/bin/Cellar/python/3.7.7/bin/python3.7 which is installed by brew and is version 3.7.7. But /usr/bin/python3 is the system's default python, which is 3.7.3. So I'm also declaring an alias in hope that subsequant comamnds will use it. If that fails, maybe I'll try to create a virtualenv
1 parent 05cd27b commit 48fc75f

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

build/mac/buildDmg.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ APP_NAME='helloWorld'
2525
PYTHON_VERSION="`${PYTHON_PATH} --version | cut -d' ' -f2`"
2626
PYTHON_EXEC_VERSION="`echo ${PYTHON_VERSION} | cut -d. -f1-2`"
2727

28+
# attempt to overwrite brew's /usr/local/bin/python3 with /usr/bin/python3
29+
alias python3='${PYTHON_PATH}'
30+
2831
########
2932
# INFO #
3033
########
@@ -37,20 +40,21 @@ which python2
3740
python2 --version
3841
which python3
3942
python3 --version
43+
${PYTHON_PATH} --version
4044
echo $PATH
4145
pwd
4246
ls -lah
4347

4448
echo "INFO: list of python* in /usr/bin/"
4549
ls -lah /usr/bin/python*
46-
find /usr/bin -type f -name python -exec '{}' --version \;
47-
find /usr/bin -type f -name python3 -exec '{}' --version \;
50+
find /usr/bin -type f -name python | xargs --version
51+
find /usr/bin -type f -name python3 | xargs --version
4852
md5 /usr/bin/python*
4953

5054
echo "INFO: list of python* in /usr/local/bin/"
5155
ls -lah /usr/local/bin/python*
52-
find /usr/local/bin -type f -name python -exec '{}' --version \;
53-
find /usr/local/bin -type f -name python3 -exec '{}' --version \;
56+
find /usr/local/bin -type f -name python | xargs --version
57+
find /usr/local/bin -type f -name python3 | xargs --version
5458
md5 /usr/bin/python*
5559

5660
###################
@@ -258,12 +262,12 @@ popd
258262
buildozer osx debug
259263

260264
echo "INFO: list of python binaries in the new .app dir"
261-
find . -type f -name python
262-
find . -type f -name python -exec '{}' --version \;
263-
find . -type f -name python -exec md5 '{}' \;
264-
find . -type f -name python3
265-
find . -type f -name python3 -exec '{}' --version \;
266-
find . -type f -name python3 -exec md5 '{}' \;
265+
find /Users/runner/runners/2.263.0/work/cross-platform-python-gui/ -type f -name python
266+
find /Users/runner/runners/2.263.0/work/cross-platform-python-gui/ -type f -name python | xargs --version
267+
find /Users/runner/runners/2.263.0/work/cross-platform-python-gui/ -type f -name python | xargs md5
268+
find /Users/runner/runners/2.263.0/work/cross-platform-python-gui/ -type f -name python3
269+
find /Users/runner/runners/2.263.0/work/cross-platform-python-gui/ -type f -name python3 | xargs --version
270+
find /Users/runner/runners/2.263.0/work/cross-platform-python-gui/ -type f -name python3 | xargs md5
267271

268272
############
269273
# THIN APP #
@@ -320,6 +324,7 @@ which python2
320324
python2 --version
321325
which python3
322326
python3 --version
327+
${PYTHON_PATH} --version
323328
pwd
324329
echo $PATH
325330
ls -lah /Users/runner/Library/Python/3.7/bin

0 commit comments

Comments
 (0)