8000 Update instructions for building on macOS by cesarcoatl · Pull Request #1052 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Update instructions for building on macOS #1052

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

Merged
merged 8 commits into from
Feb 17, 2023
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
Next Next commit
Update instructions for building on macOS
Signed-off-by: César Román <thecesrom@gmail.com>
  • Loading branch information
César Román committed Feb 10, 2023
commit 3665af13d7f03e0ffa5aa73a09271ffd14efa760
14 changes: 8 additions & 6 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -417,24 +417,26 @@ for the header and library files to your ``configure`` command. For example,

with **Homebrew**::

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

For Python 3.10 and newer::

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

$ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
./configure --with-pydebug \
--with-openssl=$(brew --prefix openssl)
--with-openssl="$(brew --prefix openssl)"


For Python versions 3.9 through 3.7::

$ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
$ brew install pkg-config openssl@1.1 xz gdbm tcl-tk

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

Expand Down
0