---> Start the emulator if not already running.
/home/xavier/src/python/foo/build/python-native/python -B /home/xavier/src/python/foo/Android/tools/start_emulator.py -avd android-24-x86_64 \
    -port 5556  -use-system-libs -no-window &
---> Waiting for device to be ready.
stopped
---> Device ready.
---> Run pythoninfo.
Python debug information
========================
NDK version: 14.1.3816874

/home/xavier/src/python/foo/build/python-native/python -B /home/xavier/src/python/foo/Android/tools/python_shell.py -m test.pythoninfo
An emulator is currently listening on port 5556.
/home/xavier/android/android-sdk/platform-tools/adb -s emulator-5556 shell mkdir -p /data/local/tmp/python/bin
Please wait: pushing /home/xavier/src/python/foo/dist/python__m_test_pythoninfo.sh to /data/local/tmp/python/bin...
/home/xavier/android/android-sdk/platform-tools/adb -s emulator-5556 push /home/xavier/src/python/foo/dist/python__m_test_pythoninfo.sh /data/local/tmp/python/bin

Running /data/local/tmp/python/bin/python__m_test_pythoninfo.sh
Python debug information
========================

Py_DEBUG: Yes (sys.gettotalrefcount() present)
_decimal.__libmpdec_version__: 2.4.2
expat.EXPAT_VERSION: expat_2.2.4
locale.encoding: UTF-8
os.cpu_count: 2
os.cwd: /data/local/tmp/python
os.environ[HOME]: /data/local/tmp/python
os.environ[LC_CTYPE]: C.UTF-8
os.environ[LD_LIBRARY_PATH]: /data/local/tmp/python/lib
os.environ[PATH]: /data/local/tmp/python/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
os.environ[SHELL]: /system/bin/sh
os.environ[TERM]: linux
os.environ[TMPDIR]: /data/local/tmp/python/tmp
os.gid: 2000
os.groups: 1004, 1007, 1011, 1015, 1028, 3001, 3002, 3003, 3006, 3009
os.login: shell
os.name: posix
os.supports_bytes_environ: True
os.supports_effective_ids: []
os.supports_fd: ['chdir', 'chmod', 'chown', 'listdir', 'pathconf', 'scandir', 'stat', 'statvfs', 'truncate', 'utime']
os.supports_follow_symlinks: ['chown', 'link', 'stat', 'utime']
os.uid: 2000
os.umask: 000
os.uname: posix.uname_result(sysname='Linux', nodename='localhost', release='3.10.0+', version='#260 SMP PREEMPT Fri May 19 12:48:14 PDT 2017', machine='x86_64')
platform.architecture: 64bit
platform.platform: Linux-3.10.0+-x86_64-with-libc
platform.python_implementation: CPython
pymem.allocator: pymalloc_debug
pymem.with_pymalloc: True
readline._READLINE_LIBRARY_VERSION: 6.3
readline._READLINE_RUNTIME_VERSION: 0x603
readline._READLINE_VERSION: 0x603
socket.hostname: localhost
sqlite3.sqlite_version: 3.8.8.3
sqlite3.version: 2.6.0
sys.abiflags: dm
sys.androidapilevel: 24
sys.api_version: 1013
sys.builtin_module_names: ('_ast', '_codecs', '_collections', '_functools', '_imp', '_io', '_locale', '_operator', '_signal', '_sre', '_stat', '_string', '_symtable', '_thread', '_tracemalloc', '_warnings', '_weakref', 'atexit', 'builtins', 'errno', 'faulthandler', 'gc', 'itertools', 'marshal', 'posix', 'pwd', 'sys', 'time', 'xxsubtype', 'zipimport')
sys.byteorder: little
sys.dont_write_bytecode: False
sys.executable: /data/local/tmp/python/bin/python
sys.filesystem_encoding: utf-8/surrogateescape
sys.flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False)
sys.float_info: sys.float_info(max=1.7976931348623157e+308, max_exp=1024, max_10_exp=308, min=2.2250738585072014e-308, min_exp=-1021, min_10_exp=-307, dig=15, mant_dig=53, epsilon=2.220446049250313e-16, radix=2, rounds=1)
sys.float_repr_style: short
sys.hash_info: sys.hash_info(width=64, modulus=2305843009213693951, inf=314159, nan=0, imag=1000003, algorithm='fnv', hash_bits=64, seed_bits=128, cutoff=0)
sys.hexversion: 50790563
sys.implementation: namespace(cache_tag='cpython-37', hexversion=50790563, name='cpython', version=sys.version_info(major=3, minor=7, micro=0, releaselevel='alpha', serial=3))
sys.int_info: sys.int_info(bits_per_digit=30, sizeof_digit=4)
sys.maxsize: 9223372036854775807
sys.maxunicode: 1114111
sys.path: ['', '/sdcard/org.python/lib/python37.zip', '/sdcard/org.python/lib/python3.7', '/data/local/tmp/python/lib/python3.7/lib-dynload', '/sdcard/org.python/lib/python3.7/site-packages']
sys.platform: linux
sys.prefix: /sdcard/org.python
sys.stderr.encoding: UTF-8/backslashreplace
sys.stdin.encoding: UTF-8/surrogateescape
sys.stdout.encoding: UTF-8/surrogateescape
sys.thread_info: sys.thread_info(name='pthread', lock='semaphore', version=None)
sys.version: 3.7.0a3+ (heads/bpo-30386:6ee021a15f, Dec  8 2017, 17:33:57)  [Clang 3.8.275480 ]
sys.version_info: sys.version_info(major=3, minor=7, micro=0, releaselevel='alpha', serial=3)
sysconfig[ABIFLAGS]: dm
sysconfig[ANDROID_API_LEVEL]: 24
sysconfig[CC]: ccache /home/xavier/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target x86_64-none-linux-androideabi -gcc-toolchain /home/xavier/android/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64
sysconfig[CFLAGS]: -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes --sysroot=/home/xavier/android/android-ndk/sysroot -D__ANDROID_API__=24 -isystem /home/xavier/android/android-ndk/sysroot/usr/include/x86_64-linux-android -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-nullability-completeness -Wno-parentheses-equality
sysconfig[CONFIG_ARGS]: 'CC=ccache /home/xavier/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target x86_64-none-linux-androideabi -gcc-toolchain /home/xavier/android/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64' 'AR=/home/xavier/android/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-ar' 'LD=/home/xavier/android/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-ld' 'RANLIB=/home/xavier/android/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-ranlib' 'READELF=/home/xavier/android/android-ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-readelf' 'CPPFLAGS=-I/home/xavier/src/python/foo/build/python3.7-extlibs-android-24-x86_64//data/local/tmp/python/include --sysroot=/home/xavier/android/android-ndk/sysroot -D__ANDROID_API__=24 -isystem /home/xavier/android/android-ndk/sysroot/usr/include/x86_64-linux-android' 'LDFLAGS=-L/home/xavier/src/python/foo/build/python3.7-extlibs-android-24-x86_64//data/local/tmp/python/lib --sysroot=/home/xavier/android/android-ndk/platforms/android-24/arch-x86_64' 'CFLAGS= --sysroot=/home/xavier/android/android-ndk/sysroot -D__ANDROID_API__=24 -isystem /home/xavier/android/android-ndk/sysroot/usr/include/x86_64-linux-android -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-nullability-completeness -Wno-parentheses-equality' '--host=x86_64-linux-android' '--build=x86_64-pc-linux-gnu' '--enable-shared' '--enable-ipv6' 'ac_cv_file__dev_ptmx=yes' 'ac_cv_file__dev_ptc=no' 'ac_cv_little_endian_double=yes' '--prefix=/sdcard/org.python' '--exec-prefix=/data/local/tmp/python' '--with-pydebug' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-linux-android' 'PKG_CONFIG_PATH=/home/xavier/src/python/foo/build/python3.7-extlibs-android-24-x86_64//data/local/tmp/python/lib/pkgconfig'
sysconfig[HOST_GNU_TYPE]: x86_64-pc-linux-android
sysconfig[MACHDEP]: linux
sysconfig[OPT]: -g -O0 -Wall -Wstrict-prototypes
sysconfig[PY_CFLAGS]: -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes --sysroot=/home/xavier/android/android-ndk/sysroot -D__ANDROID_API__=24 -isystem /home/xavier/android/android-ndk/sysroot/usr/include/x86_64-linux-android -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-nullability-completeness -Wno-parentheses-equality
sysconfig[PY_CFLAGS_NODIST]: -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration
sysconfig[PY_LDFLAGS]: -L/home/xavier/src/python/foo/build/python3.7-extlibs-android-24-x86_64//data/local/tmp/python/lib --sysroot=/home/xavier/android/android-ndk/platforms/android-24/arch-x86_64
sysconfig[Py_DEBUG]: 1
sysconfig[Py_ENABLE_SHARED]: 1
sysconfig[SHELL]: /bin/sh
sysconfig[SOABI]: cpython-37dm
sysconfig[prefix]: /sdcard/org.python
time.altzone: -7200
time.daylight: 1
time.perf_counter: namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC)', monotonic=True, resolution=1e-09)
time.time: namespace(adjustable=True, implementation='clock_gettime(CLOCK_REALTIME)', monotonic=False, resolution=1e-09)
time.timezone: -3600
time.tzname: ('CET', 'CEST')
zlib.ZLIB_RUNTIME_VERSION: 1.2.8
zlib.ZLIB_VERSION: 1.2.3

/home/xavier/android/android-sdk/platform-tools/adb -s emulator-5556 pull /data/local/tmp/python/tmp/tmpmtikfd0h /tmp/tmpmtikfd0h
