FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Recommend `--config-cache` for `./configure` by johnslavik · Pull Request #1794 · python/devguide · GitHub

Repository navigation

Prev Previous commit
Next Next commit
gh-1547: Remove --config-cache from platform-specific configure commands
  • Loading branch information
johnslavik committed Apr 22, 2026
commit 69463e6ab9ee046c707f4f35ef02180bcdc06efc
14 changes: 5 additions & 9 deletions getting-started/setup-building.rst
Comment thread
johnslavik marked this conversation as resolved.
Resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ to learn more about these options.

.. code:: console

$ ./configure --config-cache --enable-optimizations --with-lto
$ ./configure --enable-optimizations --with-lto

.. _windows-compiling:

Expand Down Expand Up @@ -869,8 +869,7 @@ some of CPython's modules (for example, ``zlib``).

$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
./configure --config-cache \
--with-pydebug \
./configure --with-pydebug \
--with-openssl="$(brew --prefix openssl@3)"

.. tab:: Python 3.10
Expand All @@ -879,8 +878,7 @@ some of CPython's modules (for example, ``zlib``).

$ CPPFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \
./configure --config-cache \
--with-pydebug \
./configure --with-pydebug \
--with-openssl="$(brew --prefix openssl@3)" \
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \
--with-tcltk-includes="$(pkg-config --cflags tcl tk)" \
Expand All @@ -902,8 +900,7 @@ some of CPython's modules (for example, ``zlib``).

$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
./configure --config-cache \
--with-pydebug \
./configure --with-pydebug \
--with-system-libmpdec

.. tab:: Python 3.11-3.12
Expand All @@ -912,8 +909,7 @@ some of CPython's modules (for example, ``zlib``).

$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
./configure --config-cache \
--with-pydebug
./configure --with-pydebug

And finally, run ``make``::

Expand Down
Loading

Back | FazBrowse Home | New Git URL