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
Apply suggestions from code review
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
César Román and CAM-Gerlach authored Feb 11, 2023
commit c47691a8d5ef4da18bfa3f09dd7fe1184bcc2bb1
13 changes: 4 additions & 9 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -413,26 +413,21 @@ Apple no longer provides header files for the deprecated system version of
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**,
for the header and library files to your ``configure`` command.

For Python 3.10 and newer::
For example, with **Homebrew**, install the dependencies::

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

and ``configure``::
Then, for Python 3.10 and newer::

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


For Python versions 3.9 through 3.7::

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

and ``configure``::
For Python 3.7 through 3.9::
Comment thread
cesarcoatl marked this conversation as resolved.
Outdated

$ export PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig"; \
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
Expand Down