[issue5404] Cross-compiling Python

2016-08-03 Thread awilfox

awilfox added the comment:

Bootstrapping a Linux environment based on musl libc from glibc host requires 
cross-compilation to the same architecture (for example, configure is 
--build=i686-pc-linux-gnu --host=i686-pc-linux-musl).

The Python core will build and link fine in this configuration; unfortunately, 
every module in sharedmods fails to link if the ABI is different, as 
Lib/distutils/command/build_ext.py:732 uses sys.abiflags and the native Python 
is used.  For example, my distribution ships with no ABI flags 
(libpython3.4.so), but if I use the default enabled PyMalloc 
(libpython3.4m.so), I will see:

/usr/libexec/gcc/i686-foxkit-linux-musl/ld: cannot find -lpython3.4
collect2: error: ld returned 1 exit status

during linking of all sharedmods.

As I am relatively unfamiliar with distutils' internals I am quite unsure how 
to proceed to fix this, but am willing test any patches.  For now, I just 
disable/enable PyMalloc and wide Unicode to match the ABI of the host computer.

--
components: +Cross-Build -Build
nosy: +Alex.Willmer, awilfox
versions: +Python 3.4 -Python 3.2

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5404>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26582] asyncio documentation links to wrong CancelledError

2016-03-19 Thread awilfox

New submission from awilfox:

In the 3.5 and 3.6a0 documentation for asyncio, "CancelledError" is linked to 
the concurrent.futures.CancelledError.  This led me to try catching that 
exception and finding that it did not work correctly at all.  Only after 
searching for asyncio example code and seeing how other people caught 
asyncio.CancelledError did I realise the issue.

The fact asyncio.CancelledError even exists isn't actually documented, and I 
believe that is why the :exc: reference is linking to the wrong module.

--
assignee: docs@python
components: Documentation
messages: 261911
nosy: awilfox, docs@python
priority: normal
severity: normal
status: open
title: asyncio documentation links to wrong CancelledError
versions: Python 3.5, Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26582>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com