Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating brew install command to build _tkinter #893

Merged
merged 7 commits into from
Jun 13, 2022
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