Skip to content
Merged
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
Promote 3.11+ tab
  • Loading branch information
hugovk committed Oct 1, 2026
commit 5418b6808de484cc6196c2867c403c540eac6970
27 changes: 11 additions & 16 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -882,31 +882,26 @@ some of CPython's modules (for example, ``zlib``).

$ brew bundle --file=Misc/Brewfile

.. tab:: Python 3.11+
Then configure::

For Python 3.11 and newer::

$ 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)"
$ 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)"

.. tab:: MacPorts

For **MacPorts**, install dependencies using ``port``::

$ sudo port install pkgconfig openssl xz gdbm tk +quartz mpdecimal zstd

.. tab:: Python 3.11+

For Python 3.11 and newer::

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

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

And finally, run ``make``::

Expand Down