-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7560c37
Use targeted env vars for overriding compiler/linker args on macOS
erlend-aasland a8b2620
Also override lzma -l flag
erlend-aasland 2f22e85
Pull in main
erlend-aasland aaaa082
Update according to Ned's recommendations on gh-1058
erlend-aasland 9b5920b
Sphinx failed to fetch links from other page
erlend-aasland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -419,46 +419,53 @@ For example, with **Homebrew**, install the dependencies:: | |
|
||
$ brew install pkg-config [email protected] xz gdbm tcl-tk | ||
|
||
Then, for Python 3.10 and newer, run ``configure``:: | ||
Then, for Python 3.11 and newer, run ``configure``:: | ||
|
||
$ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \ | ||
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \ | ||
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \ | ||
$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ | ||
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \ | ||
./configure --with-pydebug \ | ||
--with-openssl="$(brew --prefix [email protected])" | ||
|
||
Or, for Python 3.7 through 3.10:: | ||
|
||
Or, for Python 3.7 through 3.9:: | ||
|
||
$ export PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig"; \ | ||
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \ | ||
$ 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 [email protected])" \ | ||
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \ | ||
--with-tcltk-includes="$(pkg-config --cflags tcl tk)" | ||
--with-openssl="$(brew --prefix [email protected])" \ | ||
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \ | ||
--with-tcltk-includes="$(pkg-config --cflags tcl tk)" | ||
|
||
And finally, run ``make``:: | ||
|
||
$ make -s -j2 | ||
|
||
Alternatively, with **MacPorts**:: | ||
|
||
$ sudo port install pkgconfig openssl xz gdbm | ||
$ sudo port install pkgconfig openssl11 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" | ||
|
||
and ``configure``:: | ||
Or, for Python 3.7 through 3.10:: | ||
|
||
$ CPPFLAGS="-I/opt/local/include" \ | ||
LDFLAGS="-L/opt/local/lib" \ | ||
./configure --with-pydebug | ||
$ 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)" | ||
|
||
and ``make``:: | ||
And finally, run ``make``:: | ||
|
||
$ make -s -j2 | ||
|
||
There will sometimes be optional modules added for a new release which | ||
won't yet be identified in the OS-level build dependencies. In those cases, | ||
just ask for assistance on the core-mentorship list. | ||
just ask for assistance in the *Core Development* category on :ref:`help-discourse`. | ||
|
||
Explaining how to build optional dependencies on a Unix-based system without | ||
root access is beyond the scope of this guide. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.