[issue32210] Add the versions of the Android SDK and NDK to test.pythoninfo

2017-12-05 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

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 issue 26855) must be added to 
collect_sys() in test.pythoninfo.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32210] Add the versions of the Android SDK and NDK to test.pythoninfo

2017-12-04 Thread STINNER Victor

STINNER Victor  added the comment:

Oh, I forgot that pythoninfo already has:

call_func(info_add, 'sys.androidapilevel', sys, 'getandroidapilevel')

Well, that's the *build time* API level, not the most useful one, but still 
useful.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32210] Add the versions of the Android SDK and NDK to test.pythoninfo

2017-12-04 Thread STINNER Victor

STINNER Victor  added the comment:

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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32210] Add the versions of the Android SDK and NDK to test.pythoninfo

2017-12-04 Thread Xavier de Gaye

New submission from Xavier de Gaye :

* 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".

--
components: Cross-Build
messages: 307544
nosy: Alex.Willmer, vstinner, xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: Add the versions of the Android SDK and NDK to test.pythoninfo
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com