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
Fix WARNING: Literal block expected; none found.
getting-started/setup-building.rst:420
  • Loading branch information
César Román committed Feb 10, 2023
commit c5d0291d7e7ee177eeb9c833ed94c1948e5fb02c
8 changes: 5 additions & 3 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -414,16 +414,16 @@ OpenSSL which means that you will not be able to build the ``_ssl`` extension.
One solution is to install these libraries from a third-party package
manager, like Homebrew_ or MacPorts_, and then add the appropriate paths
for the header and library files to your ``configure`` command. For example,

with **Homebrew**::
with **Homebrew**,

For Python 3.10 and newer::

$ brew install pkg-config openssl xz gdbm tcl-tk
Comment thread
CAM-Gerlach marked this conversation as resolved.
Outdated

and ``configure``::
Comment thread
cesarcoatl marked this conversation as resolved.
Outdated

$ 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" \
Comment thread
cesarcoatl marked this conversation as resolved.
./configure --with-pydebug \
--with-openssl="$(brew --prefix openssl)"

Expand All @@ -432,6 +432,8 @@ For Python versions 3.9 through 3.7::

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

and ``configure``::

$ 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" \
Expand Down