2002-07-12 18:31:47 -04:00
|
|
|
|
PEP: 11
|
2022-04-18 17:57:20 -04:00
|
|
|
|
Title: CPython platform support
|
2002-07-12 18:31:47 -04:00
|
|
|
|
Version: $Revision$
|
|
|
|
|
Last-Modified: $Date$
|
2015-02-27 09:35:12 -05:00
|
|
|
|
Author: Martin von Löwis <martin@v.loewis.de>,
|
|
|
|
|
Brett Cannon <brett@python.org>
|
2002-07-12 18:31:47 -04:00
|
|
|
|
Status: Active
|
2007-06-19 00:52:34 -04:00
|
|
|
|
Type: Process
|
2012-06-01 09:09:13 -04:00
|
|
|
|
Content-Type: text/x-rst
|
2002-07-12 18:31:47 -04:00
|
|
|
|
Created: 07-Jul-2002
|
2022-03-09 11:04:44 -05:00
|
|
|
|
Post-History: 18-Aug-2007,
|
|
|
|
|
16-May-2014,
|
2015-02-27 09:35:12 -05:00
|
|
|
|
20-Feb-2015
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Abstract
|
2022-04-18 17:57:20 -04:00
|
|
|
|
========
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2015-02-27 09:35:12 -05:00
|
|
|
|
This PEP documents how an operating system (platform) becomes
|
2022-04-18 17:57:20 -04:00
|
|
|
|
supported in CPython, what platforms are currently supported, and
|
|
|
|
|
documents past support.
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rationale
|
2022-04-18 17:57:20 -04:00
|
|
|
|
=========
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2015-02-27 09:35:12 -05:00
|
|
|
|
Over time, the CPython source code has collected various pieces of
|
2012-06-01 09:09:13 -04:00
|
|
|
|
platform-specific code, which, at some point in time, was
|
2022-04-18 17:57:20 -04:00
|
|
|
|
considered necessary to use CPython on a specific platform.
|
2012-06-01 09:09:13 -04:00
|
|
|
|
Without access to this platform, it is not possible to determine
|
|
|
|
|
whether this code is still needed. As a result, this code may
|
2022-04-18 17:57:20 -04:00
|
|
|
|
either break during CPython's evolution, or it may become
|
2012-06-01 09:09:13 -04:00
|
|
|
|
unnecessary as the platforms evolve as well.
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2022-04-18 17:57:20 -04:00
|
|
|
|
Allowing these fragments to grow poses the risk of
|
2012-06-01 09:09:13 -04:00
|
|
|
|
unmaintainability: without having experts for a large number of
|
|
|
|
|
platforms, it is not possible to determine whether a certain
|
2015-02-27 09:35:12 -05:00
|
|
|
|
change to the CPython source code will work on all supported
|
2012-06-01 09:09:13 -04:00
|
|
|
|
platforms.
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2015-02-27 09:35:12 -05:00
|
|
|
|
To reduce this risk, this PEP specifies what is required for a
|
2022-04-18 17:57:20 -04:00
|
|
|
|
platform to be considered supported by CPython as well as providing a
|
|
|
|
|
procedure to remove code for platforms with few or no CPython
|
2015-02-27 09:35:12 -05:00
|
|
|
|
users.
|
|
|
|
|
|
2022-04-18 17:57:20 -04:00
|
|
|
|
This PEP also lists what plaforms *are* supported by the CPython
|
|
|
|
|
interpreter. This lets people know what platforms are directly
|
|
|
|
|
supported by the CPython development team.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Support tiers
|
|
|
|
|
=============
|
|
|
|
|
|
|
|
|
|
Platform support is broken down into *tiers*. Each tier comes with
|
|
|
|
|
different requirements which lead to different promises being made
|
|
|
|
|
about support.
|
|
|
|
|
|
|
|
|
|
To be promoted to a tier, steering council support is required and is
|
|
|
|
|
expected to be driven by team consensus. Demotion to a lower tier
|
|
|
|
|
occurs when the requirements of the current tier are no longer met for
|
|
|
|
|
a platform for an extended period of time based on the judgment of
|
|
|
|
|
the release manager or steering council. For platforms which no longer
|
|
|
|
|
meet the requirements of any tier by b1 of a new feature release, an
|
|
|
|
|
announcement will be made to warn the community of the pending removal
|
|
|
|
|
of support for the platform (e.g. in the b1 announcement). If the
|
|
|
|
|
platform is not brought into line for at least one of the tiers by the
|
|
|
|
|
first release candidate, it will be listed as unsupported in this PEP.
|
|
|
|
|
|
|
|
|
|
Tier 1
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
- `CI failures <https://github.com/python/cpython/actions/workflows/build.yml?query=branch%3Amain+is%3Acompleted>`__ block releases.
|
|
|
|
|
- Changes which would break the ``main`` branch are not allowed to be merged;
|
|
|
|
|
any breakage should be fixed or reverted immediately.
|
|
|
|
|
- All core developers are responsible to keep ``main``, and thus these
|
|
|
|
|
platforms, working.
|
|
|
|
|
- Failures on these platforms **block a release**.
|
|
|
|
|
|
|
|
|
|
======================== =====
|
|
|
|
|
Target Triple Notes
|
|
|
|
|
======================== =====
|
|
|
|
|
i686-pc-windows-msvc
|
|
|
|
|
x86_64-pc-windows-msvc
|
|
|
|
|
x86_64-apple-darwin BSD libc, clang
|
|
|
|
|
x86_64-unknown-linux-gnu glibc, gcc
|
|
|
|
|
======================== =====
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tier 2
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
- Must have a reliable buildbot.
|
|
|
|
|
- At least **two** core developers are signed up to support the platform.
|
|
|
|
|
- Changes which break any of these platforms are to be **fixed or
|
|
|
|
|
reverted within 24 hours**.
|
|
|
|
|
- Failures on these platforms **block a release**.
|
|
|
|
|
|
|
|
|
|
=========================== ========================== ============================================== ========
|
|
|
|
|
Target Triple Notes Buildbot Contacts
|
|
|
|
|
=========================== ========================== ============================================== ========
|
2022-04-19 19:24:06 -04:00
|
|
|
|
aarch64-apple-darwin clang https://buildbot.python.org/all/#/builders/725 Ned Deily, Ronald Oussoren, Dong-hee Na
|
2022-04-18 17:57:20 -04:00
|
|
|
|
aarch64-unknown-linux-gnu glibc, gcc https://buildbot.python.org/all/#/builders/125 Petr Viktorin, Victor Stinner
|
|
|
|
|
|
|
|
|
|
glibc, clang https://buildbot.python.org/all/#/builders/234 Victor Stinner, Gregory P. Smith
|
|
|
|
|
powerpcle-unknown-linux-gnu glibc, gcc https://buildbot.python.org/all/#/builders/90 Petr Viktorin, Victor Stinner
|
|
|
|
|
x86_64-unknownlinux-gnu glibc, clang https://buildbot.python.org/all/#/builders/441 Victor Stinner, Gregory P. Smith
|
|
|
|
|
=========================== ========================== ============================================== ========
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tier 3
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
- Must have a reliable buildbot.
|
|
|
|
|
- At least **one** core developer is signed up to support the platform.
|
|
|
|
|
- No response SLA to failures.
|
|
|
|
|
- Failures on these platforms do **not** block a release.
|
|
|
|
|
|
|
|
|
|
============================== =========================== ============================================== ========
|
|
|
|
|
Target Triple Notes Buildbot Contacts
|
|
|
|
|
============================== =========================== ============================================== ========
|
|
|
|
|
aarch64-pc-windows-msvc https://buildbot.python.org/all/#/builders/729 Steve Dower
|
|
|
|
|
powerpcle-unknown-linux-gnu glibc, clang https://buildbot.python.org/all/#/builders/435 Victor Stinner
|
|
|
|
|
x86_64-unknown-freebsd BSD libc, clang https://buildbot.python.org/all/#/builders/172 Victor Stinner
|
|
|
|
|
armv7l-unknown-linux-gnueabihf Raspberry Pi OS, glibc, gcc https://buildbot.python.org/all/#/builders/424 Gregory P. Smith
|
|
|
|
|
============================== =========================== ============================================== ========
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
All other platforms
|
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
|
|
Support for a platform may be partial within the code base, such as
|
|
|
|
|
from active development around platform support or accidentally.
|
|
|
|
|
Code changes to platforms not listed in the above tiers may be rejected
|
|
|
|
|
or removed from the code base without a deprecation process if they
|
|
|
|
|
cause a maintenance burden or obstruct general improvements.
|
|
|
|
|
|
|
|
|
|
Platforms not listed here may be supported by the wider Python
|
|
|
|
|
community in some way. If your desired platform is not listed above,
|
|
|
|
|
please perform a search online to see if someone is already providing
|
|
|
|
|
support in some form.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Notes
|
|
|
|
|
-----
|
2012-06-01 09:09:13 -04:00
|
|
|
|
|
|
|
|
|
Microsoft Windows
|
2022-04-18 17:57:20 -04:00
|
|
|
|
'''''''''''''''''
|
2012-06-01 09:09:13 -04:00
|
|
|
|
|
|
|
|
|
Microsoft has established a policy called product support lifecycle
|
|
|
|
|
[1]_. Each product's lifecycle has a mainstream support phase, where
|
|
|
|
|
the product is generally commercially available, and an extended
|
|
|
|
|
support phase, where paid support is still available, and certain bug
|
|
|
|
|
fixes are released (in particular security fixes).
|
|
|
|
|
|
2015-02-27 09:35:12 -05:00
|
|
|
|
CPython's Windows support now follows this lifecycle. A new feature
|
2012-06-01 09:09:13 -04:00
|
|
|
|
release X.Y.0 will support all Windows releases whose extended support
|
|
|
|
|
phase is not yet expired. Subsequent bug fix releases will support
|
|
|
|
|
the same Windows releases as the original feature release (even if
|
|
|
|
|
the extended support phase has ended).
|
|
|
|
|
|
|
|
|
|
Each feature release is built by a specific version of Microsoft
|
|
|
|
|
Visual Studio. That version should have mainstream support when the
|
|
|
|
|
release is made. Developers of extension modules will generally need
|
|
|
|
|
to use the same Visual Studio release; they are concerned both with
|
|
|
|
|
the availability of the versions they need to use, and with keeping
|
2015-02-27 09:35:12 -05:00
|
|
|
|
the zoo of versions small. The CPython source tree will keep
|
2012-06-01 09:09:13 -04:00
|
|
|
|
unmaintained build files for older Visual Studio releases, for which
|
|
|
|
|
patches will be accepted. Such build files will be removed from the
|
|
|
|
|
source tree 3 years after the extended support for the compiler has
|
|
|
|
|
ended (but continue to remain available in revision control).
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2022-04-18 17:57:20 -04:00
|
|
|
|
|
2017-05-28 21:17:12 -04:00
|
|
|
|
Legacy C Locale
|
2022-04-18 17:57:20 -04:00
|
|
|
|
'''''''''''''''
|
2017-05-28 21:17:12 -04:00
|
|
|
|
|
|
|
|
|
Starting with CPython 3.7.0, \*nix platforms are expected to provide
|
|
|
|
|
at least one of ``C.UTF-8`` (full locale), ``C.utf8`` (full locale) or
|
|
|
|
|
``UTF-8`` (``LC_CTYPE``-only locale) as an alternative to the legacy ``C``
|
|
|
|
|
locale.
|
|
|
|
|
|
|
|
|
|
Any Unicode-related integration problems that occur only in the legacy ``C``
|
|
|
|
|
locale and cannot be reproduced in an appropriately configured non-ASCII
|
|
|
|
|
locale will be closed as "won't fix".
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2022-04-18 17:57:20 -04:00
|
|
|
|
|
|
|
|
|
Unsupporting platforms
|
|
|
|
|
======================
|
|
|
|
|
|
|
|
|
|
If a platform drops out of tiered support, a note must be posted
|
|
|
|
|
in this PEP that the platform is no longer actively supported. This
|
|
|
|
|
note must include:
|
|
|
|
|
|
|
|
|
|
- the name of the system
|
|
|
|
|
- the first release number that does not support this platform
|
|
|
|
|
anymore, and
|
|
|
|
|
- the first release where the historical support code is actively
|
|
|
|
|
removed
|
|
|
|
|
|
|
|
|
|
In some cases, it is not possible to identify the specific list of
|
|
|
|
|
systems for which some code is used (e.g. when autoconf tests for
|
|
|
|
|
absence of some feature which is considered present on all
|
|
|
|
|
supported systems). In this case, the name will give the precise
|
|
|
|
|
condition (usually a preprocessor symbol) that will become
|
|
|
|
|
unsupported.
|
|
|
|
|
|
|
|
|
|
At the same time, the CPython source code must be changed to
|
|
|
|
|
produce a build-time error if somebody tries to install CPython on
|
|
|
|
|
this platform. On platforms using autoconf, configure must fail.
|
|
|
|
|
This gives potential users of the platform a chance to step
|
|
|
|
|
forward and offer maintenance.
|
|
|
|
|
|
|
|
|
|
|
2002-07-15 14:26:52 -04:00
|
|
|
|
No-longer-supported platforms
|
2022-04-18 17:57:20 -04:00
|
|
|
|
=============================
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: MS-DOS, MS-Windows 3.x
|
|
|
|
|
| Unsupported in: Python 2.0
|
|
|
|
|
| Code removed in: Python 2.1
|
2002-07-14 04:21:16 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: SunOS 4
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: DYNIX
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: dgux
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-11-12 14:58:38 -05:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Minix
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Irix 4 and --with-sgi-dl
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-11-23 09:36:03 -05:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Linux 1
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-11-23 09:36:03 -05:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems defining __d6_pthread_create (configure.in)
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems defining PY_PTHREAD_D4, PY_PTHREAD_D6,
|
2002-07-12 18:31:47 -04:00
|
|
|
|
or PY_PTHREAD_D7 in thread_pthread.h
|
2012-06-01 09:09:13 -04:00
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems using --with-dl-dld
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-11-12 10:25:17 -05:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems using --without-universal-newlines,
|
|
|
|
|
| Unsupported in: Python 2.3
|
|
|
|
|
| Code removed in: Python 2.4
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: MacOS 9
|
|
|
|
|
| Unsupported in: Python 2.4
|
|
|
|
|
| Code removed in: Python 2.4
|
2003-11-19 12:04:35 -05:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems using --with-wctype-functions
|
|
|
|
|
| Unsupported in: Python 2.6
|
|
|
|
|
| Code removed in: Python 2.6
|
2003-11-19 12:04:35 -05:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Win9x, WinME, NT4
|
|
|
|
|
| Unsupported in: Python 2.6 (warning in 2.5 installer)
|
|
|
|
|
| Code removed in: Python 2.6
|
2006-02-24 12:47:22 -05:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: AtheOS
|
|
|
|
|
| Unsupported in: Python 2.6 (with "AtheOS" changed to "Syllable")
|
2022-01-04 00:01:23 -05:00
|
|
|
|
| Build broken in: Python 2.7 (edit configure to re-enable)
|
2012-06-01 09:09:13 -04:00
|
|
|
|
| Code removed in: Python 3.0
|
|
|
|
|
| Details: http://www.syllable.org/discussion.php?id=2320
|
2007-08-18 18:08:09 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: BeOS
|
|
|
|
|
| Unsupported in: Python 2.6 (warning in configure)
|
2022-01-04 00:01:23 -05:00
|
|
|
|
| Build broken in: Python 2.7 (edit configure to re-enable)
|
2012-06-01 09:09:13 -04:00
|
|
|
|
| Code removed in: Python 3.0
|
2007-08-18 18:08:09 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems using Mach C Threads
|
|
|
|
|
| Unsupported in: Python 3.2
|
|
|
|
|
| Code removed in: Python 3.3
|
2009-10-24 16:22:33 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: SunOS lightweight processes (LWP)
|
|
|
|
|
| Unsupported in: Python 3.2
|
|
|
|
|
| Code removed in: Python 3.3
|
2009-10-24 16:30:13 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems using --with-pth (GNU pth threads)
|
|
|
|
|
| Unsupported in: Python 3.2
|
|
|
|
|
| Code removed in: Python 3.3
|
2009-10-24 16:35:25 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Systems using Irix threads
|
|
|
|
|
| Unsupported in: Python 3.2
|
|
|
|
|
| Code removed in: Python 3.3
|
2009-10-24 16:43:29 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: OSF* systems (issue 8606)
|
|
|
|
|
| Unsupported in: Python 3.2
|
|
|
|
|
| Code removed in: Python 3.3
|
2010-05-03 16:21:47 -04:00
|
|
|
|
|
2012-10-04 18:26:16 -04:00
|
|
|
|
* | Name: OS/2 (issue 16135)
|
2012-06-01 09:09:13 -04:00
|
|
|
|
| Unsupported in: Python 3.3
|
|
|
|
|
| Code removed in: Python 3.4
|
2011-04-25 10:24:15 -04:00
|
|
|
|
|
2012-10-04 18:26:16 -04:00
|
|
|
|
* | Name: VMS (issue 16136)
|
2012-06-01 09:09:13 -04:00
|
|
|
|
| Unsupported in: Python 3.3
|
|
|
|
|
| Code removed in: Python 3.4
|
2011-04-25 10:24:15 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Windows 2000
|
|
|
|
|
| Unsupported in: Python 3.3
|
|
|
|
|
| Code removed in: Python 3.4
|
2011-05-02 20:35:58 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
* | Name: Windows systems where COMSPEC points to command.com
|
|
|
|
|
| Unsupported in: Python 3.3
|
|
|
|
|
| Code removed in: Python 3.4
|
2011-05-02 20:35:58 -04:00
|
|
|
|
|
2012-12-15 14:48:37 -05:00
|
|
|
|
* | Name: RISC OS
|
|
|
|
|
| Unsupported in: Python 3.0 (some code actually removed)
|
|
|
|
|
| Code removed in: Python 3.4
|
|
|
|
|
|
2017-09-04 17:00:49 -04:00
|
|
|
|
* | Name: IRIX
|
|
|
|
|
| Unsupported in: Python 3.7
|
|
|
|
|
| Code removed in: Python 3.7
|
|
|
|
|
|
2017-09-07 12:26:18 -04:00
|
|
|
|
* | Name: Systems without multithreading support
|
|
|
|
|
| Unsupported in: Python 3.7
|
|
|
|
|
| Code removed in: Python 3.7
|
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
References
|
2022-04-18 17:57:20 -04:00
|
|
|
|
==========
|
2007-08-18 18:08:09 -04:00
|
|
|
|
|
2012-06-01 09:09:13 -04:00
|
|
|
|
.. [1] http://support.microsoft.com/lifecycle/
|
2007-06-01 23:04:57 -04:00
|
|
|
|
|
2002-07-12 18:31:47 -04:00
|
|
|
|
Copyright
|
2022-04-18 17:57:20 -04:00
|
|
|
|
=========
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
2022-04-18 17:57:20 -04:00
|
|
|
|
This document is placed in the public domain or under the
|
|
|
|
|
CC0-1.0-Universal license, whichever is more permissive.
|
2002-07-12 18:31:47 -04:00
|
|
|
|
|
|
|
|
|
|
2022-01-16 17:33:05 -05:00
|
|
|
|
|
|
|
|
|
..
|
2017-05-16 12:53:43 -04:00
|
|
|
|
Local Variables:
|
|
|
|
|
mode: indented-text
|
|
|
|
|
indent-tabs-mode: nil
|
|
|
|
|
sentence-end-double-space: t
|
|
|
|
|
fill-column: 70
|
|
|
|
|
coding: utf-8
|
|
|
|
|
End:
|