Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you click macOS from the front page:

See also more detailed instructions, how to install and build dependencies, and the platform-specific pages for Unix, macOS, and Windows.

That takes you to this tab:

https://cpython-devguide--1794.org.readthedocs.build/getting-started/setup-building/#macos

Which includes this (and a 3.10 version):

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

Let's include --config-cache in those:

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

Copy link
Copy Markdown
Member Author

@johnslavik johnslavik Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I just reverted that in 69463e6. If you want me to add these back, I'll add.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add it back, it's good to have useful snippets because people will copy and paste them (at least I do :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added back to all 4 (brew, macports).

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