-
-
Notifications
You must be signed in to change notification settings - Fork 860
Update instructions for building on macOS #1052
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 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3665af1
Update instructions for building on macOS
c5d0291
Fix WARNING: Literal block expected; none found.
c47691a
Apply suggestions from code review
e394c53
Install and use [email protected] with Homebrew
7ef41ca
Apply suggestions from code review
5b35659
Restore Python 3.10+ PKG_CONFIG_PATH
fa48550
Merge branch 'main' into docs/setup-building-macOS
d6bb8e0
Update following text to match revised macOS building language
CAM-Gerlach 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 |
---|---|---|
|
@@ -413,28 +413,27 @@ Apple no longer provides header files for the deprecated system version of | |
OpenSSL which means that you will not be able to build the ``_ssl`` extension. | ||
One solution is to install these libraries from a third-party package | ||
manager, like Homebrew_ or MacPorts_, and then add the appropriate paths | ||
for the header and library files to your ``configure`` command. For example, | ||
for the header and library files to your ``configure`` command. | ||
|
||
with **Homebrew**:: | ||
For example, with **Homebrew**, install the dependencies:: | ||
|
||
$ brew install pkg-config [email protected] xz gdbm tcl-tk | ||
|
||
For Python 3.10 and newer:: | ||
Then, for Python 3.10 and newer:: | ||
|
||
$ 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" \ | ||
./configure --with-pydebug \ | ||
--with-openssl=$(brew --prefix openssl) | ||
--with-openssl="$(brew --prefix openssl@1.1)" | ||
|
||
|
||
For Python versions 3.9 through 3.7:: | ||
For Python 3.7 through 3.9:: | ||
cesarcoatl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
$ CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \ | ||
$ export PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig"; \ | ||
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \ | ||
LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \ | ||
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \ | ||
./configure --with-pydebug \ | ||
--with-openssl=$(brew --prefix [email protected]) \ | ||
--with-openssl="$(brew --prefix [email protected])" \ | ||
--with-tcltk-libs="$(pkg-config --libs tcl tk)" \ | ||
--with-tcltk-includes="$(pkg-config --cflags tcl tk)" | ||
|
||
CAM-Gerlach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
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.