Skip to content

Commit 120a4a2

Browse files
authored
Update macOS build instructions (#950)
1 parent 30f6cd0 commit 120a4a2

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

getting-started/setup-building.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -386,16 +386,22 @@ with **Homebrew**::
386386

387387
For Python 3.10 and newer::
388388

389-
$ PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
390-
./configure --with-pydebug --with-openssl=$(brew --prefix [email protected])
389+
$ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
390+
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
391+
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
392+
./configure --with-pydebug \
393+
--with-openssl=$(brew --prefix openssl)
394+
391395

392396
For Python versions 3.9 through 3.7::
393397

394-
$ export PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig"
395-
$ ./configure --with-pydebug \
396-
--with-openssl=$(brew --prefix [email protected]) \
397-
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \
398-
--with-tcltk-includes="$(pkg-config --cflags tcl tk)"
398+
$ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
399+
LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \
400+
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
401+
./configure --with-pydebug \
402+
--with-openssl=$(brew --prefix [email protected]) \
403+
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \
404+
--with-tcltk-includes="$(pkg-config --cflags tcl tk)"
399405

400406
and ``make``::
401407

0 commit comments

Comments
 (0)