Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5988498

Browse files
committed
Change OS X installer builds targeted for 10.10 and above to build
and link with a private copy of OpenSSL, like installers targeted for 10.5 already do, since Apple has deprecated use of the system OpenSSL and removed its header files from the Xcode 7 SDK. Note that this configuration is not currently used to build any python.org-supplied installers and that the private copy of OpenSSL requires its own root certificates.
1 parent 020250f commit 5988498

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Mac/BuildScript/build-installer.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def library_recipes():
206206

207207
LT_10_5 = bool(getDeptargetTuple() < (10, 5))
208208

209-
if getDeptargetTuple() < (10, 6):
209+
if not (10, 5) < getDeptargetTuple() < (10, 10):
210210
# The OpenSSL libs shipped with OS X 10.5 and earlier are
211211
# hopelessly out-of-date and do not include Apple's tie-in to
212212
# the root certificates in the user and system keychains via TEA
@@ -226,14 +226,19 @@ def library_recipes():
226226
# now more obvious with cert checking enabled by default in the
227227
# standard library.
228228
#
229-
# For builds with 10.6+ SDKs, continue to use the deprecated but
229+
# For builds with 10.6 through 10.9 SDKs,
230+
# continue to use the deprecated but
230231
# less out-of-date Apple 0.9.8 libs for now. While they are less
231232
# secure than using an up-to-date 1.0.1 version, doing so
232233
# avoids the big problems of forcing users to have to manage
233234
# default CAs themselves, thanks to the Apple libs using private TEA
234235
# APIs for cert validation from keychains if validation using the
235236
# standard OpenSSL locations (/System/Library/OpenSSL, normally empty)
236237
# fails.
238+
#
239+
# Since Apple removed the header files for the deprecated system
240+
# OpenSSL as of the Xcode 7 release (for OS X 10.10+), we do not
241+
# have much choice but to build our own copy here, too.
237242

238243
result.extend([
239244
dict(

0 commit comments

Comments
 (0)