3. Configure Python¶
3.1. Configure Options¶
List all ./configure script options using:
./configure --help
See also the Misc/SpecialBuilds.txt in the Python source distribution.
3.1.1. General Options¶
-
--enable-loadable-sqlite-extensions¶ Support loadable extensions in the
_sqliteextension module (default is no).See the
sqlite3.Connection.enable_load_extension()method of thesqlite3module.New in version 3.6.
-
--enable-big-digits=[15|30]¶ Define the size in bits of Python
intdigits: 15 or 30 bits.By default, the number of bits is selected depending on
sizeof(void*): 30 bits ifvoid*size is 64-bit or larger, 15 bits otherwise.Define the
PYLONG_BITS_IN_DIGITto15or30.
-
--with-cxx-main¶
-
--with-cxx-main=COMPILER¶ Compile the Python
main()function and link Python executable with C++ compiler:$CXX, or COMPILER if specified.
-
--with-suffix=SUFFIX¶ Set the Python executable suffix to SUFFIX.
The default suffix is
.exeon Windows and macOS (python.exeexecutable), and an empty string on other platforms (pythonexecutable).
-
--with-tzpath=<list of absolute paths separated by pathsep>¶ Select the default time zone search path for
zoneinfo.TZPATH. See the Compile-time configuration of thezoneinfomodule.Default:
/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo.See
os.pathseppath separator.New in version 3.9.
-
--without-decimal-contextvar¶ Build the
_decimalextension module using a thread-local context rather than a coroutine-local context (default), see thedecimalmodule.See
decimal.HAVE_CONTEXTVARand thecontextvarsmodule.New in version 3.9.
-
--with-dbmliborder=db1:db2:...¶ Override order to check db backends for the
dbmmoduleA valid value is a colon (
:) separated string with the backend names:ndbm;gdbm;bdb.
-
--without-c-locale-coercion¶ Disable C locale coercion to a UTF-8 based locale (enabled by default).
Don’t define the
PY_COERCE_C_LOCALEmacro.See
PYTHONCOERCECLOCALEand the PEP 538.
-
--with-platlibdir=DIRNAME¶ Python library directory name (default is
lib).Fedora and SuSE use
lib64on 64-bit platforms.See
sys.platlibdir.New in version 3.9.