You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add platform.android_ver() to test.pythoninfo for Android platforms #76391
The NDK version can be obtained by parsing the file $ANDROID_NDK_ROOT/source.properties.
The versions of the SDK build-tools, emulator and platform-tools packages as well as those of the system images can be obtained by parsing the output of "$ANDROID_SDK_ROOT/tools/bin/sdkmanager --list".
Maybe add a collect_android() function which would exit early if sys.getandroidapilevel() doesn't exist?
The NDK version can be obtained by parsing the file $ANDROID_NDK_ROOT/source.properties.
The versions of the SDK build-tools, emulator and platform-tools packages as well as those of the system images can be obtained by parsing the output of "$ANDROID_SDK_ROOT/tools/bin/sdkmanager --list".
You are free to add whatever you want/need, but just try to handle properly errors to collect other info even if these data cannot be read.
changed the title [-]Add the versions of the Android SDK and NDK to test.pythoninfo[/-][+]Add platform.android_ver() to test.pythoninfo for Android platforms[/+]on Dec 5, 2017
Activity
xdegaye commentedon Dec 4, 2017
vstinner commentedon Dec 4, 2017
Maybe add a collect_android() function which would exit early if sys.getandroidapilevel() doesn't exist?
You are free to add whatever you want/need, but just try to handle properly errors to collect other info even if these data cannot be read.
vstinner commentedon Dec 4, 2017
Oh, I forgot that pythoninfo already has:
Well, that's the *build time* API level, not the most useful one, but still useful.
xdegaye commentedon Dec 5, 2017
The NDK version may be printed by the pythoninfo make target before test.pythoninfo is run on Android.
platform.android_ver() (not yet implemented, see bpo-26855) must be added to collect_sys() in test.pythoninfo.
[-]Add the versions of the Android SDK and NDK to test.pythoninfo[/-][+]Add platform.android_ver() to test.pythoninfo for Android platforms[/+]