Skip to content

Commit 7620395

Browse files
Bump macOS build recommendations to OpenSSL v3.0 (#1112)
* 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. Co-authored-by: Ned Deily <[email protected]>
1 parent b3e561c commit 7620395

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

getting-started/setup-building.rst

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -417,21 +417,21 @@ for the header and library files to your ``configure`` command.
417417

418418
For example, with **Homebrew**, install the dependencies::
419419

420-
$ brew install pkg-config openssl@1.1 xz gdbm tcl-tk
420+
$ brew install pkg-config openssl@3.0 xz gdbm tcl-tk
421421

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

424424
$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
425425
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
426426
./configure --with-pydebug \
427-
--with-openssl="$(brew --prefix openssl@1.1)"
427+
--with-openssl="$(brew --prefix openssl@3.0)"
428428

429-
Or, for Python 3.7 through 3.10::
429+
Or, for Python 3.8 through 3.10::
430430

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

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

442442
Alternatively, with **MacPorts**::
443443

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

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

448448
$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
449449
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
450-
./configure --with-pydebug \
451-
--with-openssl="$(dirname $(dirname $(which port)))/libexec/openssl11"
452-
453-
Or, for Python 3.7 through 3.10::
454-
455-
$ CPPFLAGS="-I$(dirname $(dirname $(which port)))/include" \
456-
LDFLAGS="-L$(dirname $(dirname $(which port)))/lib" \
457-
./configure --with-pydebug \
458-
--with-openssl="$(dirname $(dirname $(which port)))/libexec/openssl11" \
459-
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \
460-
--with-tcltk-includes="$(pkg-config --cflags tcl tk)"
450+
./configure --with-pydebug
461451

462452
And finally, run ``make``::
463453

0 commit comments

Comments
 (0)