Skip to content

Commit 67c0ed3

Browse files
committed
got an error that we couldn't run 'ensure pip' due to permissions, so I'm adding sudo before it
2020-06-21T19:26:45.7053990Z + /usr/bin/python2 -m ensurepip 2020-06-21T19:26:45.7057930Z -rw-r--r-- 1 runner staff 34K Jun 21 19:26 LICENSE 2020-06-21T19:26:45.7058930Z -rw-r--r-- 1 runner staff 932B Jun 21 19:26 README.md 2020-06-21T19:26:45.7059830Z drwxr-xr-x 5 runner staff 160B Jun 21 19:26 build 2020-06-21T19:26:45.7060700Z -rw-r--r-- 1 runner staff 5B Jun 21 19:26 requirements.txt 2020-06-21T19:26:45.7061590Z drwxr-xr-x 3 runner staff 96B Jun 21 19:26 src 2020-06-21T19:26:47.2853080Z Looking in links: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmp3W9K1Q 2020-06-21T19:26:47.2862110Z Requirement already satisfied: setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (41.0.1) 2020-06-21T19:26:47.3261950Z Collecting pip 2020-06-21T19:26:47.6896350Z Installing collected packages: pip 2020-06-21T19:26:48.6195890Z Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip' 2020-06-21T19:26:48.6198070Z Consider using the `--user` option or check the permissions. 2020-06-21T19:26:48.6199470Z 2020-06-21T19:26:48.7435950Z + /usr/bin/python2 -m pip install --upgrade --user docopt sh 2020-06-21T19:26:48.7854580Z /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip 2020-06-21T19:26:48.7874360Z + /usr/bin/python3 -m ensurepip 2020-06-21T19:26:51.0618110Z Looking in links: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpol6kmlzf 2020-06-21T19:26:51.0628270Z Requirement already satisfied: setuptools in /Applications/Xcode_11.5.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages (40.8.0) 2020-06-21T19:26:51.0716950Z Requirement already satisfied: pip in /Applications/Xcode_11.5.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages (19.0.3)
1 parent 42f22a6 commit 67c0ed3

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
@@ -48,11 +48,11 @@ PATH=${PATH}:/Users/runner/Library/Python/${PYTHON_EXEC_VERSION}/bin
4848

4949
# everything here is python3, except these bits. python2 is used in
5050
# package_app.py, which is used by buildozer and has a few depends
51-
/usr/bin/python2 -m ensurepip
51+
sudo /usr/bin/python2 -m ensurepip
5252
/usr/bin/python2 -m pip install --upgrade --user docopt sh
5353

5454
# setup a virtualenv to isolate our app's python depends
55-
${PYTHON_PATH} -m ensurepip
55+
sudo ${PYTHON_PATH} -m ensurepip
5656
${PYTHON_PATH} -m pip install --upgrade --user pip setuptools
5757
#${PYTHON_PATH} -m pip install --upgrade --user virtualenv
5858
#${PYTHON_PATH} -m virtualenv /tmp/kivy_venv

0 commit comments

Comments
 (0)