@@ -11,21 +11,40 @@ The goal of the manylinux project is to provide a convenient way to
11
11
distribute binary Python extensions as wheels on Linux. This effort
12
12
has produced `PEP 513 <https://www.python.org/dev/peps/pep-0513/ >`_ which
13
13
is further enhanced by `PEP 571 <https://www.python.org/dev/peps/pep-0571/ >`_
14
- defining ``manylinux2010_x86_64 `` and ``manylinux2010_i686 `` platform tags.
14
+ and now `PEP 599 <https://www.python.org/dev/peps/pep-0599/ >`_ defining
15
+ ``manylinux2014_* `` platform tags.
15
16
16
17
PEP 513 defined ``manylinux1_x86_64 `` and ``manylinux1_i686 `` platform tags
17
- and the wheels were built on Centos5. Centos5 reached End of Life (EOL) on
18
+ and the wheels were built on Centos5. Centos5 reached End of Life (EOL) on
18
19
March 31st, 2017 and thus PEP 571 was proposed.
19
20
20
- Code and details regarding ``manylinux1 `` can be found here:
21
+ PEP 571 defined ``manylinux2010_x86_64 `` and ``manylinux2010_i686 `` platform
22
+ tags and the wheels were built on Centos6. Centos6 will reach End of Life (EOL)
23
+ on November 30th, 2020.
24
+
25
+ PEP 599 defines the following platform tags:
26
+ - ``manylinux2014_x86_64 ``
27
+ - ``manylinux2014_i686 ``
28
+ - ``manylinux2014_aarch64 ``
29
+ - ``manylinux2014_armv7l ``
30
+ - ``manylinux2014_ppc64 ``
31
+ - ``manylinux2014_ppc64le ``
32
+ - ``manylinux2014_s390x ``
33
+ Wheels are built on CentOS 7 which will reach End of Life (EOL)
34
+ on June 30th, 2024.
35
+
36
+ Code and details regarding ``manylinux1 `` can be found here:
21
37
`manylinux1 <https://github.com/pypa/manylinux/tree/manylinux1 >`_.
22
38
39
+ Code and details regarding ``manylinux2010 `` can be found here:
40
+ `manylinux2010 <https://github.com/pypa/manylinux/tree/manylinux2010 >`_.
41
+
23
42
Wheel packages compliant with those tags can be uploaded to
24
43
`PyPI <https://pypi.python.org >`_ (for instance with `twine
25
44
<https://pypi.python.org/pypi/twine> `_) and can be installed with
26
- **pip 19.0 and later **.
45
+ **pip 19.3 and later **.
27
46
28
- The manylinux2010 tags allow projects to distribute wheels that are
47
+ The manylinux2014 tags allow projects to distribute wheels that are
29
48
automatically installed (and work!) on the vast majority of desktop
30
49
and server Linux distributions.
31
50
@@ -41,18 +60,28 @@ Docker images
41
60
Building manylinux-compatible wheels is not trivial; as a general
42
61
rule, binaries built on one Linux distro will only work on other Linux
43
62
distros that are the same age or newer. Therefore, if we want to make
44
- binaries that run on most Linux distros, we have to use a very old
45
- distro -- CentOS 6 .
63
+ binaries that run on most Linux distros, we have to use an old enough
64
+ distro -- CentOS 7 .
46
65
47
66
48
- Rather than forcing you to install CentOS 6 yourself, install Python,
49
- etc., we provide a `Docker <https://docker.com/ >`_ image where we've
67
+ Rather than forcing you to install CentOS 7 yourself, install Python,
68
+ etc., we provide `Docker <https://docker.com/ >`_ images where we've
50
69
done the work for you:
51
70
52
- 64-bit image (x86-64): ``quay.io/pypa/manylinux2010_x86_64 ``
71
+ x86_64 image: ``quay.io/pypa/manylinux2014_x86_64 ``
72
+
73
+ .. image :: https://quay.io/repository/pypa/manylinux2014_x86_64/status
74
+ :target: https://quay.io/repository/pypa/manylinux2014_x86_64
75
+
76
+ i686 image: ``quay.io/pypa/manylinux2014_i686 ``
53
77
54
- .. image :: https://quay.io/repository/pypa/manylinux2010_x86_64/status
55
- :target: https://quay.io/repository/pypa/manylinux2010_x86_64
78
+ .. image :: https://quay.io/repository/pypa/manylinux2014_i686/status
79
+ :target: https://quay.io/repository/pypa/manylinux2014_i686
80
+
81
+ aarch64 image: ``quay.io/pypa/manylinux2014_aarch64 ``
82
+
83
+ .. image :: https://quay.io/repository/pypa/manylinux2014_aarch64/status
84
+ :target: https://quay.io/repository/pypa/manylinux2014_aarch64
56
85
57
86
58
87
These images are rebuilt using Travis-CI on every commit to this
@@ -62,52 +91,40 @@ directory for source code.
62
91
63
92
The images currently contain:
64
93
65
- - CPython 2.7, 3.4 , 3.5 , 3.6 and 3.7 , installed in
94
+ - CPython 3.5 , 3.6 , 3.7 and 3.8 , installed in
66
95
``/opt/python/<python tag>-<abi tag> ``. The directories are named
67
96
after the PEP 425 tags for each environment --
68
- e.g. ``/opt/python/cp27-cp27mu `` contains a wide-unicode CPython 2.7
69
- build, and can be used to produce wheels named like
70
- ``<pkg>-<version>-cp27-cp27mu -<arch>.whl ``.
97
+ e.g. ``/opt/python/cp35-cp35m `` contains a CPython 3.5 build, and
98
+ can be used to produce wheels named like
99
+ ``<pkg>-<version>-cp35-cp35m -<arch>.whl ``.
71
100
72
- - Devel packages for all the libraries that PEP 571 allows you to
101
+ - Devel packages for all the libraries that PEP 599 allows you to
73
102
assume are present on the host system
74
103
75
104
- The `auditwheel <https://pypi.python.org/pypi/auditwheel >`_ tool
76
105
77
- Note that prior to CPython 3.3, there were two ABI-incompatible ways
78
- of building CPython: ``--enable-unicode=ucs2 `` and
79
- ``--enable-unicode=ucs4 ``. We provide both versions
80
- (e.g. ``/opt/python/cp27-cp27m `` for narrow-unicode,
81
- ``/opt/python/cp27-cp27mu `` for wide-unicode). NB: essentially all
82
- Linux distributions configure CPython in ``mu ``
83
- (``--enable-unicode=ucs4 ``) mode, but ``--enable-unicode=ucs2 `` builds
84
- are also encountered in the wild. Other less common or virtually
85
- unheard of flag combinations (such as ``--with-pydebug `` (``d ``) and
86
- ``--without-pymalloc `` (absence of ``m ``)) are not provided.
87
106
88
107
Building Docker images
89
108
----------------------
90
109
91
- To build the Docker images, you will need to fetch the tarballs to
92
- ``docker/sources/ `` prior to building. This can be done with the
93
- provided prefetch script, after which you can proceed with building.
94
- Please run the following command from the current (root) directory::
110
+ To build the Docker images, please run the following command from the
111
+ current (root) directory:
95
112
96
113
$ PLATFORM=$(uname -m) TRAVIS_COMMIT=latest ./build.sh
97
114
98
115
Example
99
116
-------
100
117
101
- An example project which builds 64-bit wheels for each Python interpreter
118
+ An example project which builds x86_64 wheels for each Python interpreter
102
119
version can be found here: https://github.com/pypa/python-manylinux-demo. The
103
- repository also contains demo to build 32-bit and 64-bit wheels with ``manylinux1 ``
120
+ repository also contains demo to build i686 and x86_64 wheels with ``manylinux1 ``
104
121
tags.
105
122
106
123
This demonstrates how to use these docker images in conjunction with auditwheel
107
124
to build manylinux-compatible wheels using the free `travis ci <https://travis-ci.org/ >`_
108
125
continuous integration service.
109
126
110
- (NB: for the 32-bit images running on a 64-bit host machine, it's necessary to run
127
+ (NB: for the i686 images running on a x86_64 host machine, it's necessary to run
111
128
everything under the command line program `linux32 `, which changes reported architecture
112
129
in new program environment. See `this example invocation
113
130
<https://github.com/pypa/python-manylinux-demo/blob/master/.travis.yml#L14> `_)
@@ -124,9 +141,12 @@ where the PEP was originally written, so if for some reason you really
124
141
want to see the full history of edits it went through, then this is
125
142
the place to look.
126
143
127
- The proposal to upgrade ``manylinux1 `` to ``manylinux2010 `` after Centos5
144
+ The proposal to upgrade ``manylinux1 `` to ``manylinux2010 `` after Centos5
128
145
reached EOL was discussed in `PEP 571 <https://www.python.org/dev/peps/pep-0571/ >`_.
129
146
147
+ The proposal to upgrade ``manylinux2010 `` to ``manylinux2014 `` was
148
+ discussed in `PEP 599 <https://www.python.org/dev/peps/pep-0599/ >`_.
149
+
130
150
This repo also has some analysis code that was used when putting
131
151
together the original proposal in the ``policy-info/ `` directory.
132
152
0 commit comments