8000 Use targeted env vars for overriding compiler/linker args on macOS by erlend-aasland · Pull Request #1058 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Use targeted env vars for overriding compiler/linker args on macOS #1058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 8, 2023
Merged
Changes from 2 commits
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
12 changes: 11 additions & 1 deletion getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,17 @@ For example, with **Homebrew**, install the dependencies::

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

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

$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
LIBLZMA_CFLAGS="-I$(brew --prefix xz)/include" \
LIBLZMA_LIBS="-I$(brew --prefix xz)/lib -llzma" \
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
./configure --with-pydebug \
--with-openssl="$(brew --prefix openssl@1.1)"

For Python 3.10::

$ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
Expand Down
0