Skip to content

Commit 6dcf327

Browse files
Add platform dependency quick start to README
1 parent 8b0f41b commit 6dcf327

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,35 @@ usable on all platforms. Refer to the
6969
section of the `Developer Guide`_ for current detailed information on
7070
dependencies for various Linux distributions and macOS.
7171

72+
Platform dependency quick start
73+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74+
75+
The exact packages vary by distribution, but the following commands install
76+
the most common build prerequisites:
77+
78+
* Debian/Ubuntu::
79+
80+
sudo apt update
81+
sudo apt install build-essential gdb lcov pkg-config \ \
82+
libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev \ \
83+
liblzma-dev libncursesw5-dev libreadline6-dev libsqlite3-dev \ \
84+
libssl-dev tk-dev uuid-dev xz-utils zlib1g-dev
85+
86+
* Fedora/RHEL::
87+
88+
sudo dnf install @development-tools gdb lcov make pkgconfig bzip2-devel \ \
89+
expat-devel ffi-devel gdbm-devel ncurses-devel openssl-devel \ \
90+
readline-devel sqlite-devel tk-devel xz-devel zlib-devel
91+
92+
* macOS (Homebrew)::
93+
94+
brew update
95+
brew install pkg-config gdbm openssl readline sqlite tcl-tk xz zlib
96+
97+
Some extension modules require additional platform SDKs or libraries (for
98+
example, Bluetooth, multimedia codecs, or database drivers). Consult the
99+
`Developer Guide`_ for distribution-specific notes and optional dependencies.
100+
72101
On macOS, there are additional configure and build options related
73102
to macOS framework and universal builds. Refer to `Mac/README.rst
74103
<https://github.com/python/cpython/blob/main/Mac/README.rst>`_.

0 commit comments

Comments
 (0)