Skip to content

Add platform.android_ver() to test.pythoninfo for Android platforms #76391

Description

@xdegaye
mannequin
BPO 32210
Nosy @vstinner, @xdegaye, @moreati
Dependencies
  • bpo-26855: android: add platform.android_ver()
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2017-12-04.09:39:35.000>
    labels = ['type-feature', '3.7', 'build']
    title = 'Add platform.android_ver()  to test.pythoninfo for Android platforms'
    updated_at = <Date 2017-12-05.16:34:30.711>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2017-12-05.16:34:30.711>
    actor = 'xdegaye'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Cross-Build']
    creation = <Date 2017-12-04.09:39:35.000>
    creator = 'xdegaye'
    dependencies = ['26855']
    files = []
    hgrepos = []
    issue_num = 32210
    keywords = []
    message_count = 4.0
    messages = ['307544', '307581', '307602', '307657']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'xdegaye', 'Alex.Willmer']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32210'
    versions = ['Python 3.7']

    Activity

    1. xdegaye commented on Dec 4, 2017

      xdegayemannequin
      MannequinAuthor
      • 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".
    2. added
      buildThe build process and cross-build
      type-featureA feature request or enhancement
      on Dec 4, 2017
    3. vstinner commented on Dec 4, 2017

      @vstinner
      Member

      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.

    4. vstinner commented on Dec 4, 2017

      @vstinner
      Member

      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.

    5. xdegaye commented on Dec 5, 2017

      xdegayemannequin
      MannequinAuthor

      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.

    6. 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
    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeOS-androidbuildThe build process and cross-buildtype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions