kivy / kivy-sdk-packager

Scripts for Kivy SDK generation on Windows, OS X and Linux
MIT License
40 stars 32 forks source link

Fixes "kivy" not found on macOS #62

Closed misl6 closed 3 years ago

misl6 commented 3 years ago

Running exec "${SCRIPT_PATH}/python" breaks our virtualenv.

Output of import sys; print(sys.path) when using exec ${SCRIPT_PATH}/python:

['', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages']

Output of import sys; print(sys.path) when using exec python:

['', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python38.zip', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8', '/Applications/Kivy.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Applications/Kivy.app/Contents/Resources/venv/lib/python3.8/site-packages']
misl6 commented 3 years ago

fixes https://github.com/kivy/kivy/issues/7310 and https://github.com/kivy/kivy/issues/7411