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
Simplify recipes by:
1. removing references to 3.7 which will be end-of-life shortly
   and otherwise would require including OpenSSL 1.1.1 libs.
2. removing MacPorts recipe for 3.10 and earlier because there
   are conflicts with the use of --with-openssl and the use of
   CPPFLAGS/LDFLAGS.
  • Loading branch information
ned-deily committed Jun 8, 2023
commit d7443d172e3d5c3a0530bcceb53850f74d0f4eed
18 changes: 4 additions & 14 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,12 @@ Then, for Python 3.11 and newer, run ``configure``::
./configure --with-pydebug \
--with-openssl="$(brew --prefix openssl@3.0)"

Or, for Python 3.7 through 3.10::
Or, for Python 3.8 through 3.10::

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

Expand All @@ -441,23 +441,13 @@ And finally, run ``make``::

Alternatively, with **MacPorts**::

$ sudo port install pkgconfig openssl11 xz gdbm tcl tk +quartz
$ sudo port install pkgconfig openssl xz gdbm tcl tk +quartz

Then, for Python 3.11 and newer, run ``configure``::

$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
./configure --with-pydebug \
--with-openssl="$(dirname $(dirname $(which port)))/libexec/openssl11"

Or, for Python 3.7 through 3.10::

$ CPPFLAGS="-I$(dirname $(dirname $(which port)))/include" \
LDFLAGS="-L$(dirname $(dirname $(which port)))/lib" \
./configure --with-pydebug \
--with-openssl="$(dirname $(dirname $(which port)))/libexec/openssl11" \
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \
--with-tcltk-includes="$(pkg-config --cflags tcl tk)"
./configure --with-pydebug

And finally, run ``make``::

Expand Down