78,142
stars
+26
36,540
forks
1,684
watchers
80,054
prs
79,193
issues
0
releases
0
discussions
README
This is Python version 3.16.0 alpha 1+dev
=========================================
.. image:: https://github.com/python/cpython/actions/workflows/build.yml/badge.svg?branch=main&event=push
:alt: CPython build status on GitHub Actions
:target: https://github.com/python/cpython/actions
.. image:: https://dev.azure.com/python/cpython/_apis/build/status/Azure%20Pipelines%20CI?branchName=main
:alt: CPython build status on Azure DevOps
:target: https://dev.azure.com/python/cpython/_build/latest?definitionId=4&branchName=main
.. image:: https://img.shields.io/badge/discourse-join_chat-brightgreen.svg
:alt: Python Discourse chat
:target: https://discuss.python.org/
Copyright © 2001 Python Software Foundation. All rights reserved.
See the end of this file for further copyright and license information.
.. contents::
General Information
-------------------
- Website: https://www.python.org
- Source code: https://github.com/python/cpython
- Issue tracker: https://github.com/python/cpython/issues
- Documentation: https://docs.python.org
- Developer's Guide: https://devguide.python.org/
Contributing to CPython
-----------------------
For more complete instructions on contributing to CPython development,
see the Developer Guide_.
.. _Developer Guide: https://devguide.python.org/
Using Python
------------
Installable Python kits, and information about using Python, are available at
python.org_.
.. _python.org: https://www.python.org/
Build Instructions
------------------
On Unix, Linux, BSD, macOS, and Cygwin::
./configure
make
make test
sudo make install
This will install Python as python3.
You can pass many options to the configure script; run ./configure --help
to find out more. On macOS case-insensitive file systems and on Cygwin,
the executable is called python.exe; elsewhere it's just python.
Building a complete Python installation requires the use of various
additional third-party libraries, depending on your build platform and
configure options. Not all standard library modules are buildable or
usable on all platforms. Refer to the
Install dependencies _
section of the Developer Guide_ for current detailed information on
dependencies for various Linux distributions and macOS.
On macOS, there are additional configure and build options related
to macOS framework and universal builds. Refer to Mac/README.rst
_.
On Windows, see PCbuild/readme.txt
_.
To build Windows packages, see PC/layout/README.md
_.
If you wish, you can create a subdirectory and invoke configure from there.
For example::
mkdir debug
cd debug
../configure --with-pydebug
make
make test
(This will fail if you also built at the top-level directory. You should do
a make clean at the top-level first.)
To get an optimized build of Python, run configure --enable-optimizations
before you run make. This sets the default make targets up to enable
Profile Guided Optimization (PGO) and may be used to auto-enable Top issues
#126835Move const folding to the peephole optimizer123 comments · 2024-11-14#59648datetime module has no support for nanoseconds76 comments · 2012-07-24#66409Make pyvenv style virtual environments easier to configure when embedding Python70 comments · 2014-08-17#52145Support parametrized tests in unittest65 comments · 2010-02-10#51088zipfile can't extract file: file name in directory and header differ65 comments · 2009-09-04#75537Add context manager to temporarily disable GC63 comments · 2017-09-05#47382implement PEP 3118 struct changes63 comments · 2008-06-17#93516Severe performance degradation for tracing under 3.1161 comments · 2022-06-05