There was an error while loading. Please reload this page.
1 parent ca24061 commit 0bbc405Copy full SHA for 0bbc405
1 file changed
setup.rst
@@ -385,17 +385,20 @@ for the header and library files to your ``configure`` command. For example,
385
386
with **Homebrew**::
387
388
- $ brew install pkg-config openssl xz gdbm
+ $ brew install pkg-config openssl xz gdbm tcl-tk
389
390
-and ``configure`` Python versions >= 3.7::
+For Python 3.10 and newer::
391
392
- ./configure --with-pydebug --with-openssl=$(brew --prefix openssl)
+ $ PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
393
+ ./configure --with-pydebug --with-openssl=$(brew --prefix openssl)
394
-or ``configure`` Python versions < 3.7::
395
+For Python versions 3.9 through 3.7::
396
- $ CPPFLAGS="-I$(brew --prefix openssl)/include" \
397
- LDFLAGS="-L$(brew --prefix openssl)/lib" \
398
- ./configure --with-pydebug
+ $ export PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig"
+ $ ./configure --with-pydebug \
399
+ --with-openssl=$(brew --prefix openssl) \
400
+ --with-tcltk-libs="$(pkg-config --libs tcl tk)" \
401
+ --with-tcltk-includes="$(pkg-config --cflags tcl tk)"
402
403
and ``make``::
404
0 commit comments