-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Versions
- Python: 3.9.1
- OS: MacOS 11.0.1
- Kivy: 2.0.0
- Cython:
- OpenJDK:
Description
Hi. Docs says that I can select exact python3 and hostpython3 versions by argument:
--requirements=python3==XXX,hostpython3==XXX
https://python-for-android.readthedocs.io/en/latest/buildoptions/#python-versions
I add that params in buildozer.spec:
# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = hostpython3=3.8.6,python3=3.8.6
But when I launch buildozer android debug params is passed as arguments to p4a and ignored. Look at logs:
# Compile platform
# Run '/Users/user/Code/android-usb/.venv/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=hostpython3=3.8.6,python3=3.8.6 --arch arm64-v8a --copy-libs --color=always --storage-dir="/Users/user/Code/android-usb/.buildozer/android/platform/build-arm64-v8a" --ndk-api=21'
# Cwd /Users/user/Code/android-usb/.buildozer/android/platform/python-for-android
/Users/user/Code/android-usb/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:84: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
[INFO]: Will compile for the following archs: arm64-v8a
[INFO]: Found Android API target in $ANDROIDAPI: 27
[INFO]: Available Android APIs are (27)
[INFO]: Requested API target 27 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /Users/user/.buildozer/android/platform/android-ndk-r19c
[INFO]: Found NDK version 19c
[INFO]: Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]: ccache is missing, the build will not be optimized in the future.
[INFO]: Found the following toolchain versions: ['4.9']
[INFO]: Picking the latest gcc toolchain, here 4.9
[WARNING]: Missing executable: libtoolize is not installed
[INFO]: No existing dists meet the given requirements!
[INFO]: No dist exists that meets your requirements, so one will be built.
[INFO]: Found a single valid recipe set: ['hostpython3', 'hostpython3=3.8.6', 'libffi', 'openssl', 'python3=3.8.6', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: The selected bootstrap is sdl2
[INFO]: # Creating dist with sdl2 bootstrap
[INFO]: Dist will have name myapp and requirements (hostpython3=3.8.6, python3=3.8.6)
[INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: Dist will also contain modules (hostpython3=3.8.6, python3=3.8.6) installed from pip
[INFO]: Dist will be build in mode debug
[INFO]: -> directory context /Users/user/Code/android-usb/.buildozer/android/platform/build-arm64-v8a/build/bootstrap_builds/sdl2
[INFO]: <- directory context /Users/user/Code/android-usb/.buildozer/android/platform/python-for-android
[INFO]: Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android']
[INFO]: The requirements (hostpython3=3.8.6, python3=3.8.6) were not found as recipes, they will be installed with pip.
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython3
[INFO]: -> running mkdir -p /Users/user/Code/android-usb/.buildozer/android/platform/build-arm64-v8a/packages/hostpython3
[INFO]: -> directory context /Users/user/Code/android-usb/.buildozer/android/platform/build-arm64-v8a/packages/hostpython3
[INFO]: -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]: hostpython3 download already cached, skipping
The hostpython3 and python3 passed to p4a, but script think that this is new dependencies and try to install them from PIP.
And next script execute python3 receipt with default params (ver 3.8.1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels