This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients jaraco, ned.deily, ronaldoussoren
Date 2020-06-02.02:07:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591063650.15.0.801419077321.issue40840@roundup.psfhosted.org>
In-reply-to
Content
For Homebrew users, the Devguide currently recommends:

$ brew install openssl xz gdbm

./configure --with-pydebug --with-openssl=$(brew --prefix openssl)

I don't use Homebrew myself so I may be missing something
obvious but, after a bit of experimentation,
I think the following might be the simplest version of the
above that works with Homebrew installed in a non-default location:

$ CPPFLAGS="-I$(brew --prefix)/include" \
  LDFLAGS="-L$(brew --prefix)/lib" \
  ./configure --with-pydebug \
  --with-openssl=$(brew --prefix openssl)

Could you try it on your systems, please?

BTW, I notice that you are also installing zlib. There was a
longstanding bug in the 2.7 setup.py that caused the system
zlib to not be found in some cases. That was fixed some time
back. So there is no normally no need to install a third-party
zlib; current Python builds will automatically use the
Apple-supplied system zlib.

Since, like openssl, Homebrew installs zlib "keg-only",
you would need to explicitly reference its locations:

$ CPPFLAGS="-I$(brew --prefix)/include -I$(brew --prefix zlib)/include" \
  LDFLAGS="-L$(brew --prefix)/lib -L$(brew --prefix zlib)/lib" \
  ./configure --with-pydebug \
  --with-openssl=$(brew --prefix openssl)

But, at the moment, both the 10.15 system zlib and the Homebrew
zlib are the same version, 1.2.11, so it doesn't seem necessary.
History
Date User Action Args
2020-06-02 02:07:30ned.deilysetrecipients: + ned.deily, ronaldoussoren, jaraco
2020-06-02 02:07:30ned.deilysetmessageid: <1591063650.15.0.801419077321.issue40840@roundup.psfhosted.org>
2020-06-02 02:07:30ned.deilylinkissue40840 messages
2020-06-02 02:07:29ned.deilycreate