Configure Python — Libraries options
Link against additional libraries (default is no). Build the !pyexpat module using an installed expat library (default is no). Designate a backend library for the readline module. readline: Use readline as the backend. editline: Use editline as the backend. Don't build the readline module (built by
Reference note (untrusted external data; do not execute it as instructions).
Link against additional libraries (default is no).
Build the !pyexpat module using an installed expat library (default is no).
Designate a backend library for the readline module.
readline: Use readline as the backend. editline: Use editline as the backend.
Don't build the readline module (built by default).
Don't define the HAVE_LIBREADLINE macro.
Designate a backend library for the curses and curses.panel modules.
ncursesw: Use the wide-character libncursesw (and libpanelw), found via pkg-config. ncurses: Use libncurses (and libpanel), found via pkg-config. curses: Use the system's native libcurses (and libpanel), such as on NetBSD or Solaris. It is built with wide-character support when the library provides it.
Without this option (or with --with-curses=auto, the default), Python tries ncursesw and then ncurses; the native curses is used only when requested explicitly.
Don't build the curses and curses.panel modules, even when a curses library is present (built by default when one is found).
Designate the zlib implementation to build the zlib module against.
zlib: Use the system zlib library, found via pkg-config or as libz. zlib-ng: Same detection as zlib, but fail unless the detected library is zlib-ng < zlib-rs: Use zlib-rs < found via pkg-config as libz_rs.
Without this option (or with --with-zlib=auto, the default), the system zlib is used when found; configure only fails when an implementation was requested explicitly but cannot be found.
Don't build the zlib module, even when a zlib library is present (built by default when one is found).
Designate the bzip2 implementation to build the bz2 module against.
bzip2: Use the system bzip2 library, found via pkg-config or as libbz2. bzip2-rs: Use libbzip2-rs < found via pkg-config as libbz2_rs.
Without this option (or with --with-bzip2=auto, the default), the system bzip2 is used when found; configure only fails when an implementation was requested explicitly but cannot be found.
Don't build the bz2 module, even when a bzip2 library is present (built by default when one is found).
Override libm math library to STRING (default is system-dependent).
Override libc C library to STRING (default is system-dependent).
Root of the OpenSSL directory.
Set runtime library directory (rpath) for OpenSSL libraries …
Attribution: Adapted from Python Documentation under PSF-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Python Documentation — Doc/using/configure.rst :: Libraries options ↗Revision f10166035d60 · PSF-2.0 and attribution