New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android: test_distutils fails #71118
Comments
test_distutils fails on an android emulator running an x86 system image at API level 21. See the attached test_output.txt file. Some of these failed tests could be skipped, supposing that native compilation of extension modules on android itself (as opposed to using cross-compilation) is not supported. |
The last two failed tests: are caused by LDFLAGS being set in the environment both when configure is run and when make is run. Removing LDFLAGS from the environment when running make fixes these tests. |
The attached patch skips some tests when the interpreter was cross-compiled. When the interpreter has been cross-compiled, there is probably no compiler on the host system. |
On android, the shell path is /system/bin/sh. The attached patch fixes this, assuming that there is a platform.android_ver() as per issue bpo-26855: add platform.android_ver() for android. This could be changed for a test on sys.platform if there was a specific sys.platform value for android. With both patches and the LDFLAGS change on the cross-build system, test_distutils runs fine. |
This new patch adds a dependency to issue bpo-27027. |
The problem raised in msg264946 has been fixed at changeset 15835311b5e6. This new cross-compiled-skip_2.patch is not specific to Android and fixes test_distutils when the executables used to build the interpreter do not exist on the platform
With this patch, test_distutils runs fine on the Android emulator. |
New changeset cea3b621973f by Xavier de Gaye in branch '3.6': New changeset 99d69fd1b24e by Xavier de Gaye in branch 'default': |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: