Skip to content
Merged
Changes from all commits
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
17 changes: 10 additions & 7 deletions setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,20 @@ for the header and library files to your ``configure`` command. For example,

with **Homebrew**::

$ brew install pkg-config openssl xz gdbm
$ brew install pkg-config openssl xz gdbm tcl-tk

and ``configure`` Python versions >= 3.7::
For Python 3.10 and newer::

./configure --with-pydebug --with-openssl=$(brew --prefix openssl)
$ PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
./configure --with-pydebug --with-openssl=$(brew --prefix openssl)

or ``configure`` Python versions < 3.7::
For Python versions 3.9 through 3.7::

$ CPPFLAGS="-I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib" \
./configure --with-pydebug
$ export PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig"
$ ./configure --with-pydebug \
--with-openssl=$(brew --prefix openssl) \
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \
--with-tcltk-includes="$(pkg-config --cflags tcl tk)"

and ``make``::

Expand Down