[Distutils] PEP 513: A Platform Tag for Portable Linux Built Distributions Version
Olivier Grisel
olivier.grisel at ensta.org
Tue Jan 26 07:22:47 EST 2016
2016-01-26 11:41 GMT+01:00 Olivier Grisel <olivier.grisel at ensta.org>:
> Maybe we could devise some syntax for /etc/python/compatibility.conf
> to state that the manylinux1 entry is only valid for Python
> interpreters such as distutils.util.get_platform() == 'linux-x86_64'?
Actually this won't work. I just try to debootstrap ubuntu trusty i386
on top of ubuntu trusty amd64 and I get the following behavior in
python3 inside the i386 chroot:
>>> from distutils.util import get_platform
>>> get_platform()
'linux-x86_64'
>>> import platform
>>> platform.machine()
'x86_64'
>>> import sys
>>> sys.maxsize > 2**32
False
So this is actually a 32 bit Python declared as running on a
linux-x86_64 platform (even though everything is i386 inside the
chroot)...
I get the exact same behavior when installing the 32 bit miniconda on
ubuntu trusty amd64.
--
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel
More information about the Distutils-SIG
mailing list