Changes by Xavier de Gaye :
--
versions: +Python 3.6, Python 3.7
___
Python tracker
<http://bugs.python.org/issue28444>
___
___
Python-bugs-list mailing list
Unsub
Xavier de Gaye added the comment:
The cross-build uses a native python to run setup.py to build the extension
modules, and to run 'python -S -m sysconfig --generate-posix-vars' and to byte
compile the modules from the standard library. So you do need a native python.
That is why
Xavier de Gaye added the comment:
The attached patch fixes the problem and allows cross-building the extension
modules independently of the configuration of the native interpreter that may
have set some modules to be statically built. The patch also prints now the
list of modules that are
Xavier de Gaye added the comment:
Thanks for the reports. The next step is having the patch reviewed by one of
the Python build machinery experts.
Nosying Martin, Zachary and Matthias.
--
nosy: +doko, martin.panter, zach.ware
___
Python tracker
Xavier de Gaye added the comment:
At least for non-Darwin POSIX builds:
* Building _ctypes with the bundled copy of libffi is deprecated in 3.6 and the
default is to use a system copy of libffi, issue 27976.
* The bundled libffi is removed in 3.7, issue 27979.
As this crash happens with the
Xavier de Gaye added the comment:
Thanks Chi Hsuan Yen for your contributions with this issue.
--
___
Python tracker
<http://bugs.python.org/issue26942>
___
___
Changes by Xavier de Gaye :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue26942>
___
___
Python-bugs-list mailing list
Unsubscrib
Xavier de Gaye added the comment:
As this problem occurs with the bundled libffi, closing this issue as won't fix
for the same reasons as those listed in msg278759.
--
resolution: -> wont fix
stage: needs patch -> resolved
status: ope
Xavier de Gaye added the comment:
Android does not have crypt, but the crypt module is cross-built nevertheless
after this warning has been issued:
warning: implicit declaration of function 'crypt' is invalid in C99
[-Wimplicit-function-declaration]
And at runtime, importing
Changes by Xavier de Gaye :
--
dependencies: -add the 'is_android' attribute to test.support
___
Python tracker
<http://bugs.python.org/issue26944>
___
___
Changes by Xavier de Gaye :
--
title: android: test_posix fails -> test_posix: Android 'id -G' is entirely
wrong or missing the effective gid
___
Python tracker
<http://bugs.pytho
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Xavier de Gaye added the comment:
Thanks for reviewing the patch Martin.
> Why do you remove the code that loops over Modules/Setup? Maybe is it
> redundant with the other code for removing the already-built-in modules?
Yes because this is redundant, maybe not the case when this was w
Changes by Xavier de Gaye :
--
nosy: +akuchling
___
Python tracker
<http://bugs.python.org/issue28444>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xavier de Gaye :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<http://bugs.python.org/issue27659>
___
___
Python-bugs-list mailing list
Unsub
New submission from Xavier de Gaye:
On the latest Android API level (android-24), the if_nameindex function is now
found by configure in Android libc. But the if_nameindex function and
structure are still not defined in the Android net/if.h header.
The compilation fails with:
clang
Xavier de Gaye added the comment:
issue #28538: _socket module cross-compilation error on android-24
--
dependencies: +_socket module cross-compilation error on android-24
___
Python tracker
<http://bugs.python.org/issue26
Xavier de Gaye added the comment:
'make install' fails to remove the sysconfigdata module from lib-dynload and
prints now instead:
rm: cannot remove
'/path/to/install/lib/python3.7/lib-dynload/_sysconfigdata_m.py': No such file
or directory
The patch fixes thi
New submission from Xavier de Gaye:
Patch adding a section to the README.
--
assignee: xdegaye
files: readme.patch
keywords: patch
messages: 279532
nosy: xdegaye
priority: normal
severity: normal
stage: patch review
status: open
title: document cross compilation
type: enhancement
Xavier de Gaye added the comment:
New patch taking into account Martin last review and some updated comments.
>> Why do you remove the code that loops over Modules/Setup? Maybe is it
>> redundant with the other code for removing the already-built-in modules?
> Yes because th
Changes by Xavier de Gaye :
--
components: +Cross-Build, Documentation
nosy: +Alex.Willmer
___
Python tracker
<http://bugs.python.org/issue28542>
___
___
Pytho
Changes by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue28528>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
Patch attached.
--
assignee: -> xdegaye
components: +Tests -Library (Lib)
dependencies: -android: add platform.android_ver()
stage: -> patch review
versions: +Python 3.7
Added file: http://bugs.python.org/file45249/setswitchinterval
Xavier de Gaye added the comment:
Adding a dependency to issue 26939.
Patch attached.
--
assignee: -> xdegaye
components: +Tests -Library (Lib)
dependencies: +android: test_functools hangs on armv7
keywords: +patch
stage: -> patch review
versions: +Python 3.7
Added file
Xavier de Gaye added the comment:
Adding a dependency to issue 26939.
Patch attached.
--
assignee: -> xdegaye
components: +Tests -Library (Lib)
dependencies: +android: test_functools hangs on armv7
keywords: +patch
stage: -> patch review
versions: +Python 3.7
Added file
Changes by Xavier de Gaye :
--
assignee: -> xdegaye
components: +Tests
stage: -> patch review
versions: +Python 3.7
___
Python tracker
<http://bugs.python.org/i
Xavier de Gaye added the comment:
Sorry, AFAIK there is no plan to retrofit the Android changes to 3.5.
Note that Python 3.6 is expected to be released in few weeks, by next
mid-december.
--
___
Python tracker
<http://bugs.python.org/issue26
Changes by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue28503>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<http://bugs.python.org/issue28546>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
> $(cd /path/to/source && pwd)/configure
> Why do you use $(pwd) here?
'configure' fails with the following error message when used with
'--prefix=../install':
configure: error: expected an absolute directory nam
Xavier de Gaye added the comment:
New patch.
--
Added file: http://bugs.python.org/file45263/readme_2.patch
___
Python tracker
<http://bugs.python.org/issue28
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Xavier de Gaye added the comment:
I have changed my Android build system to use DESTDIR, it is simpler than using
'mount --bind'. Thanks for the suggestion Martin.
Here is a new patch adding some text for the Android cross compilation.
--
Added file: http://bugs.python.org
Xavier de Gaye added the comment:
This patch simply skips the statements that fail on Android.
--
assignee: -> xdegaye
components: +Tests -Cross-Build, Library (Lib)
stage: -> patch review
versions: +Python 3.7
Added file: http://bugs.python.org/file45278/test_socket
New submission from Xavier de Gaye:
The error:
==
ERROR: test_create_connection_service_name
(test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests
Xavier de Gaye added the comment:
issue #28562: test_asyncio fails on Android upon calling getaddrinfo()
--
dependencies: +test_asyncio fails on Android upon calling getaddrinfo()
___
Python tracker
<http://bugs.python.org/issue26
Xavier de Gaye added the comment:
The chown() method of the tarfile.TarFile class does not attempt to do a chown
when pwd is None, even when numeric_owner is True, and although an attempt is
made to fall back to tarinfo.gid when getgrnam() fails, or to tarinfo.uid when
getgrnam() fails
Xavier de Gaye added the comment:
One must also add '--(en|dis)able-ipv6' to configure, otherwise configure exits
with:
Fatal: You must get working getaddrinfo() function.
or you can specify "--disable-ipv6".
The ACTION-IF-CROSS-COMPILING parameter of the AC_RU
Xavier de Gaye added the comment:
> The ACTION-IF-CROSS-COMPILING parameter of the AC_RUN_IFELSE that checks for
> getaddrinfo is $ac_cv_buggy_getaddrinfo="no -- configured with
> --(en|dis)able-ipv6".
Hum, I should have written:
The ACTION-IF-CROSS-COMPILING parameter o
Xavier de Gaye added the comment:
Entered https://code.google.com/p/android/issues/detail?id=226677 on the AOSP
issue tracker.
--
___
Python tracker
<http://bugs.python.org/issue26
Xavier de Gaye added the comment:
New patch, less verbose and taking into account the previous posts.
--
Added file: http://bugs.python.org/file45294/readme_4.patch
___
Python tracker
<http://bugs.python.org/issue28
Xavier de Gaye added the comment:
An interactive session confirms that the problem is indeed with the command
line arguments of python invoked by subprocess (and the problem is fixed by the
patch):
>>> from test.support import FS_NONASCII
>>> cmd = "assert(ord(%r) == %
Changes by Xavier de Gaye :
--
assignee: -> xdegaye
components: +Interpreter Core -Cross-Build, Library (Lib)
stage: -> commit review
versions: +Python 3.7
___
Python tracker
<http://bugs.python.org/i
Changes by Xavier de Gaye :
--
title: android: test_cmd_line fails -> on Android python fails to decode/encode
command line arguments
___
Python tracker
<http://bugs.python.org/issu
Xavier de Gaye added the comment:
For the record, on the Android emulator we have now (not sure where this change
has been made):
>>> sys.getfilesystemencoding()
'utf-8'
>>> locale.getpreferredencoding(False)
'ascii'
So test_ioencoding_nonascii succeeds
Changes by Xavier de Gaye :
--
assignee: -> xdegaye
components: +Interpreter Core -Cross-Build, Extension Modules
stage: -> commit review
versions: +Python 3.7
___
Python tracker
<http://bugs.python.org/i
Xavier de Gaye added the comment:
msg269617 details how this problem can also be reproduced on 3.6 by
cross-building for Android before the issue 27917 that added platform triplets
for Android had been fixed.
Since the changes in issue 23968 have not be retrofited to 3.5, the same
problem
Xavier de Gaye added the comment:
About 2.7, this is a list of the issues I am aware of, that may have to be
fixed also in 2.7 (and 3.5 for some of them): issues #26884 #27434 #28444 and
#22724. Issue #28589 was entered today and is a duplicate of the previous one.
> FWIW, DESTDIR, --pre
New submission from Xavier de Gaye:
Android does not have langinfo.h and this results in _bootlocale importing
locale on startup (see issue 26928).
IMHO it is not acceptable to fallback to locale.py if CODESET is not available
(in answer to Victor question in msg199367), because there are now
Xavier de Gaye added the comment:
This patch fixes test_startup_imports when the platform does not have
langinfo.h.
Entered new issue 28596: "on Android _bootlocale on startup relies on too many
library modules".
--
assignee: -> xdegaye
components: +Tests -Cross-Build,
Xavier de Gaye added the comment:
issue #28596: on Android _bootlocale on startup relies on too many library
modules
--
dependencies: +on Android _bootlocale on startup relies on too many library
modules
___
Python tracker
<http://bugs.python.
Xavier de Gaye added the comment:
This new patch takes into account Martin comment in msg265099 and fixes a call
to getpwall() as Android does not have getpwall().
--
assignee: -> xdegaye
stage: patch review -> commit review
versions: +Python 3.7
Added file: http://bugs.pyth
Xavier de Gaye added the comment:
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
where the test
Xavier de Gaye added the comment:
The tests are run on an ext4 file system.
test_large_file_ops does not fail on the x86_64 and arm64 (aka aarch64) Android
64 bits platforms.
test_large_file_ops still fails on x86 with the latest Android API level 24
(i.e. the latest released libc).
FWIW, the
Xavier de Gaye added the comment:
The lazycache() function of the linecache module meets your request, I think.
See the following debugging session using the attached script:
$ python -m pdb debug_script.py
> /path/to/cwd/debug_script.py(1)()
-> def debug_script(script):
(Pdb) n
> /pa
Xavier de Gaye added the comment:
This patch is an attempt at allowing the source debugging of scripts executed
by the Python exec() function. It misses tests and documentation.
You may use it using the idiom given in the following example to avoid stepping
into the pdb code on the first
Xavier de Gaye added the comment:
Yes, I was not aware of DESTDIR. The 2.7 README contains also useful
information on the build process, for example about some use cases of the
'*shared*' entries in the Setup files (for when setup.py cannot detect/build an
extension module) or
Xavier de Gaye added the comment:
New patch. Thanks for the review Martin!
--
Added file: http://bugs.python.org/file45368/test_urandom_fd_reopened_3.patch
___
Python tracker
<http://bugs.python.org/issue26
Xavier de Gaye added the comment:
The problem: raise() does not cause the program to exit in a Python interactive
session and a spawned Python process exits with 0. Android fixed this problem
at API level 24 (Android 6.0 aka Marshmallow).
The attached patch fixes this (tested at API levels 21
Xavier de Gaye added the comment:
ANDROID_API_LEVEL can only be used in the Python test suite and
platform.android_ver() must be used in the standard library. The reason why
ANDROID_API_LEVEL can be used in the tests instead of using the runtime API
level is that the Python test suite purpose
Xavier de Gaye added the comment:
Thanks for the suggestion Victor. The decorator may be used in other tests as
well, and referring to the concern raised by Chi Hsuan in msg280147 and my
answer, it makes it more clear that the build time _android_api_level should
not be used in the standard
Xavier de Gaye added the comment:
New patch following Victor code review.
--
Added file: http://bugs.python.org/file45380/buggy_raise_3.patch
___
Python tracker
<http://bugs.python.org/issue26
Xavier de Gaye added the comment:
Patch attached.
--
components: +Cross-Build
keywords: +patch
nosy: +Alex.Willmer, doko
stage: needs patch -> patch review
Added file: http://bugs.python.org/file45394/if_nameindex.patch
___
Python tracker
&l
Xavier de Gaye added the comment:
This is a simple code object compiled from a source (the string), a module is
quite different and more complex. The patch uses a fake module Loader to use
linecache, there is no gain in going any further and pulling from the importlib
machinery, I think
Xavier de Gaye added the comment:
New patch.
--
Added file: http://bugs.python.org/file45404/buggy_raise_4.patch
___
Python tracker
<http://bugs.python.org/issue26
Xavier de Gaye added the comment:
> Thanks for your patience :-)
No problem, your suggestions and code reviews are always very much welcome :)
I will push this patch with the other Android patches after 3.6 is released.
The patch at issue 26936 will also use @requires_android_le
Xavier de Gaye added the comment:
Patch attached.
--
assignee: -> xdegaye
components: -Cross-Build
keywords: +patch
stage: -> patch review
versions: +Python 3.7
Added file: http://bugs.python.org/file45406/exclude_ymd.patch
___
Python t
Xavier de Gaye added the comment:
Entered new issue https://code.google.com/p/android/issues/detail?id=227388 on
the AOSP issue tracker.
--
___
Python tracker
<http://bugs.python.org/issue26
New submission from Xavier de Gaye:
This is yet another idiosyncrasy of Android, the /sbin directory is in the
$PATH of the adb shell used for running the tests on the emulator or on a
device connected with usb to the build platform, and /sbin is readable and
searchable only by root. For a
New submission from Xavier de Gaye:
bunzip2 is missing on Android and the following tests of test_bz2 fail
randomly: test_implicit_binary_modes, test_binary_modes and testAppend, with
the following backtrace:
ERROR: testAppend (test.test_bz2.BZ2FileTest
Xavier de Gaye added the comment:
Much better indeed :)
With this patch, the test runs fine on Android.
I left some minor comments on rietveld.
--
___
Python tracker
<http://bugs.python.org/issue28
New submission from Xavier de Gaye:
Occurs on Android that has a broken shared semaphore implementation (issue
26924).
Patch attached.
One of the backtraces:
==
ERROR: test_handle_called_with_mp_queue
Xavier de Gaye added the comment:
New patch following Serhiy comments.
--
Added file: http://bugs.python.org/file45449/exclude_ymd_2.patch
___
Python tracker
<http://bugs.python.org/issue26
Changes by Xavier de Gaye :
Added file: http://bugs.python.org/file45456/exclude_ymd_3.patch
___
Python tracker
<http://bugs.python.org/issue26929>
___
___
Python-bug
Xavier de Gaye added the comment:
Thanks Serhiy for your help with this issue.
I will push this patch with the other Android patches after 3.6 is released.
--
___
Python tracker
<http://bugs.python.org/issue26
Xavier de Gaye added the comment:
When the test is to be skipped:
* The decorator in the previous patch (a decorator with arguments that takes
no argument) returns a decorator which is unittest.skip (to be applied to the
test method).
* On the other side, the skip_unless_symlink decorator
Xavier de Gaye added the comment:
New patch using a plain 'requires_raise' decorator without argument.
--
Added file: http://bugs.python.org/file45459/buggy_raise_5.patch
___
Python tracker
<http://bugs.python.o
Xavier de Gaye added the comment:
issue #28662: catch also PermissionError in tests when spawning a non existent
program
issue #28664: test_bz2 fails with BrokenPipeError when bunzip2 is missing
issue #28668: instanciation of multiprocessing.Queue raises ImportError in
test_logging
Xavier de Gaye added the comment:
IMHO other tests in the future may instantiate multiprocessing.Queue() and come
up with another new decorator when the test fails on the (yet to come) Android
buildbot, ignoring that one already exists if we move the decorator to the
test_logging module
New submission from Xavier de Gaye:
Tests in test_socket and test_asyncore fail on Android when bind() on a unix
socket raises PermissionError for a non-root user. This occurs also in
test_asyncio and this is logged in a separate issue as asyncio has its own
project.
Patch attached
Xavier de Gaye added the comment:
New changeset f37ac1a003f3 in branch 3.6.
New changeset 892f13827219 in branch default.
--
___
Python tracker
<http://bugs.python.org/issue26
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
New submission from Xavier de Gaye:
Tests in test_asyncio fail on Android when bind() on a unix socket raises
PermissionError for a non-root user. See the attached test_asyncio.log. See
also issue 28683 and its patch(es).
--
components: Tests, asyncio
files: test_asyncio.log
messages
Changes by Xavier de Gaye :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue26934>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Xavier de Gaye :
--
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue26926>
___
___
Python-bugs-list mai
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Xavier de Gaye :
--
assignee: -> xdegaye
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue26931>
___
___
Pyth
Changes by Xavier de Gaye :
--
dependencies: -android: add platform.android_ver()
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Xavier de Gaye added the comment:
It seems that the last patch in issue 21161 fixes all the problems described
here, msg 149096 explains why. Can you confirm that this is a duplicate of
issue 21161.
--
___
Python tracker
<http://bugs.python.
Xavier de Gaye added the comment:
This patch fixes the problems raised in this issue and allows accessing the
globals at the Pdb prompt with the globals() dictionary:
(Pdb) list
1 y = 2
2
3 def f():
4 y = 9
5 z = 10
6 -> import pdb; pdb.set_trace();
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Xavier de Gaye :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Xavier de Gaye added the comment:
With this patch, test_asyncio runs successfully with no ResourceWarning when
run on the android-24 emulator.
--
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file45518/test_asyncio_bind.pa
Changes by Xavier de Gaye :
--
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue26939>
___
___
Python-bugs-list mai
Changes by Xavier de Gaye :
--
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue26940>
___
___
Python-bugs-list mai
Changes by Xavier de Gaye :
--
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue26941>
___
___
Python-bugs-list mai
Xavier de Gaye added the comment:
Patch that follows closely the conditionals in the __bootlocale module.
--
stage: patch review -> commit review
Added file: http://bugs.python.org/file45530/skip_test_2.patch
___
Python tracker
&l
1501 - 1600 of 1614 matches
Mail list logo