Issue #17128: Use private version of OpenSSL for 3.x OS X 10.5+ installers.
Among other issues, the Apple-supplied 0.9.7 libs for the 10.5 ABI cannot verify newer SHA-256 certs as now used by python.org services. Document in the installer ReadMe some of the certificate management issues that users now need to be more concerned with due to PEP 476's enabling cert verification by default. For now, continue to use the Apple-supplied 0.9.8 libs for the 10.6+ installer since they use Apple private APIs to verify certificates using the system- and user-managed CA keychain stores.
This commit is contained in:
parent
90783ebf27
commit
5d3febf0cf
|
@ -654,9 +654,9 @@ OpenSSL
|
|||
|
||||
The modules :mod:`hashlib`, :mod:`posix`, :mod:`ssl`, :mod:`crypt` use
|
||||
the OpenSSL library for added performance if made available by the
|
||||
operating system. Additionally, the Windows installers for Python
|
||||
include a copy of the OpenSSL libraries, so we include a copy of the
|
||||
OpenSSL license here::
|
||||
operating system. Additionally, the Windows and Mac OS X installers for
|
||||
Python may include a copy of the OpenSSL libraries, so we include a copy
|
||||
of the OpenSSL license here::
|
||||
|
||||
|
||||
LICENSE ISSUES
|
||||
|
|
|
@ -62,11 +62,16 @@ def shellQuote(value):
|
|||
return "'%s'"%(value.replace("'", "'\"'\"'"))
|
||||
|
||||
def grepValue(fn, variable):
|
||||
"""
|
||||
Return the unquoted value of a variable from a file..
|
||||
QUOTED_VALUE='quotes' -> str('quotes')
|
||||
UNQUOTED_VALUE=noquotes -> str('noquotes')
|
||||
"""
|
||||
variable = variable + '='
|
||||
for ln in open(fn, 'r'):
|
||||
if ln.startswith(variable):
|
||||
value = ln[len(variable):].strip()
|
||||
return value[1:-1]
|
||||
return value.strip("\"'")
|
||||
raise RuntimeError("Cannot find variable %s" % variable[:-1])
|
||||
|
||||
_cache_getVersion = None
|
||||
|
@ -78,9 +83,6 @@ def getVersion():
|
|||
os.path.join(SRCDIR, 'configure'), 'PACKAGE_VERSION')
|
||||
return _cache_getVersion
|
||||
|
||||
def getVersionTuple():
|
||||
return tuple([int(n) for n in getVersion().split('.')])
|
||||
|
||||
def getVersionMajorMinor():
|
||||
return tuple([int(n) for n in getVersion().split('.', 2)])
|
||||
|
||||
|
@ -97,6 +99,9 @@ def getFullVersion():
|
|||
return _cache_getFullVersion
|
||||
raise RuntimeError("Cannot find full version??")
|
||||
|
||||
FW_PREFIX = ["Library", "Frameworks", "Python.framework"]
|
||||
FW_VERSION_PREFIX = "--undefined--" # initialized in parseOptions
|
||||
|
||||
# The directory we'll use to create the build (will be erased and recreated)
|
||||
WORKDIR = "/tmp/_py"
|
||||
|
||||
|
@ -164,7 +169,7 @@ def getTargetCompilers():
|
|||
|
||||
CC, CXX = getTargetCompilers()
|
||||
|
||||
PYTHON_3 = getVersionTuple() >= (3, 0)
|
||||
PYTHON_3 = getVersionMajorMinor() >= (3, 0)
|
||||
|
||||
USAGE = textwrap.dedent("""\
|
||||
Usage: build_python [options]
|
||||
|
@ -188,6 +193,10 @@ USAGE = textwrap.dedent("""\
|
|||
# '/Library/Frameworks/Tk.framework/Versions/8.5/Tk']
|
||||
EXPECTED_SHARED_LIBS = {}
|
||||
|
||||
# List of names of third party software built with this installer.
|
||||
# The names will be inserted into the rtf version of the License.
|
||||
THIRD_PARTY_LIBS = []
|
||||
|
||||
# Instructions for building libraries that are necessary for building a
|
||||
# batteries included python.
|
||||
# [The recipes are defined here for convenience but instantiated later after
|
||||
|
@ -197,6 +206,49 @@ def library_recipes():
|
|||
|
||||
LT_10_5 = bool(getDeptargetTuple() < (10, 5))
|
||||
|
||||
if getDeptargetTuple() < (10, 6):
|
||||
# The OpenSSL libs shipped with OS X 10.5 and earlier are
|
||||
# hopelessly out-of-date and do not include Apple's tie-in to
|
||||
# the root certificates in the user and system keychains via TEA
|
||||
# that was introduced in OS X 10.6. Note that this applies to
|
||||
# programs built and linked with a 10.5 SDK even when run on
|
||||
# newer versions of OS X.
|
||||
#
|
||||
# Dealing with CAs is messy. For now, just supply a
|
||||
# local libssl and libcrypto for the older installer variants
|
||||
# (e.g. the python.org 10.5+ 32-bit-only installer) that use the
|
||||
# same default ssl certfile location as the system libs do:
|
||||
# /System/Library/OpenSSL/cert.pem
|
||||
# Then at least TLS connections can be negotiated with sites that
|
||||
# use sha-256 certs like python.org, assuming the proper CA certs
|
||||
# have been supplied. The default CA cert management issues for
|
||||
# 10.5 and earlier builds are the same as before, other than it is
|
||||
# now more obvious with cert checking enabled by default in the
|
||||
# standard library.
|
||||
#
|
||||
# For builds with 10.6+ SDKs, continue to use the deprecated but
|
||||
# less out-of-date Apple 0.9.8 libs for now. While they are less
|
||||
# secure than using an up-to-date 1.0.1 version, doing so
|
||||
# avoids the big problems of forcing users to have to manage
|
||||
# default CAs themselves, thanks to the Apple libs using private TEA
|
||||
# APIs for cert validation from keychains if validation using the
|
||||
# standard OpenSSL locations (/System/Library/OpenSSL, normally empty)
|
||||
# fails.
|
||||
|
||||
result.extend([
|
||||
dict(
|
||||
name="OpenSSL 1.0.1j",
|
||||
url="https://www.openssl.org/source/openssl-1.0.1j.tar.gz",
|
||||
checksum='f7175c9cd3c39bb1907ac8bba9df8ed3',
|
||||
patches=[
|
||||
"openssl_sdk_makedepend.patch",
|
||||
],
|
||||
buildrecipe=build_universal_openssl,
|
||||
configure=None,
|
||||
install=None,
|
||||
),
|
||||
])
|
||||
|
||||
# Disable for now
|
||||
if False: # if getDeptargetTuple() > (10, 5):
|
||||
result.extend([
|
||||
|
@ -617,6 +669,7 @@ def parseOptions(args=None):
|
|||
"""
|
||||
global WORKDIR, DEPSRC, SDKPATH, SRCDIR, DEPTARGET
|
||||
global UNIVERSALOPTS, UNIVERSALARCHS, ARCHLIST, CC, CXX
|
||||
global FW_VERSION_PREFIX
|
||||
|
||||
if args is None:
|
||||
args = sys.argv[1:]
|
||||
|
@ -676,19 +729,21 @@ def parseOptions(args=None):
|
|||
|
||||
CC, CXX = getTargetCompilers()
|
||||
|
||||
print("Settings:")
|
||||
print(" * Source directory:", SRCDIR)
|
||||
print(" * Build directory: ", WORKDIR)
|
||||
print(" * SDK location: ", SDKPATH)
|
||||
print(" * Third-party source:", DEPSRC)
|
||||
print(" * Deployment target:", DEPTARGET)
|
||||
print(" * Universal architectures:", ARCHLIST)
|
||||
print(" * C compiler:", CC)
|
||||
print(" * C++ compiler:", CXX)
|
||||
FW_VERSION_PREFIX = FW_PREFIX[:] + ["Versions", getVersion()]
|
||||
|
||||
print("-- Settings:")
|
||||
print(" * Source directory: %s" % SRCDIR)
|
||||
print(" * Build directory: %s" % WORKDIR)
|
||||
print(" * SDK location: %s" % SDKPATH)
|
||||
print(" * Third-party source: %s" % DEPSRC)
|
||||
print(" * Deployment target: %s" % DEPTARGET)
|
||||
print(" * Universal archs: %s" % str(ARCHLIST))
|
||||
print(" * C compiler: %s" % CC)
|
||||
print(" * C++ compiler: %s" % CXX)
|
||||
print("")
|
||||
print(" -- Building a Python %s framework at patch level %s"
|
||||
% (getVersion(), getFullVersion()))
|
||||
print("")
|
||||
|
||||
|
||||
|
||||
|
||||
def extractArchive(builddir, archiveName):
|
||||
"""
|
||||
|
@ -780,6 +835,132 @@ def verifyThirdPartyFile(url, checksum, fname):
|
|||
% (shellQuote(fname), checksum) ):
|
||||
fatal('MD5 checksum mismatch for file %s' % fname)
|
||||
|
||||
def build_universal_openssl(basedir, archList):
|
||||
"""
|
||||
Special case build recipe for universal build of openssl.
|
||||
|
||||
The upstream OpenSSL build system does not directly support
|
||||
OS X universal builds. We need to build each architecture
|
||||
separately then lipo them together into fat libraries.
|
||||
"""
|
||||
|
||||
# OpenSSL fails to build with Xcode 2.5 (on OS X 10.4).
|
||||
# If we are building on a 10.4.x or earlier system,
|
||||
# unilaterally disable assembly code building to avoid the problem.
|
||||
no_asm = int(platform.release().split(".")[0]) < 9
|
||||
|
||||
def build_openssl_arch(archbase, arch):
|
||||
"Build one architecture of openssl"
|
||||
arch_opts = {
|
||||
"i386": ["darwin-i386-cc"],
|
||||
"x86_64": ["darwin64-x86_64-cc", "enable-ec_nistp_64_gcc_128"],
|
||||
"ppc": ["darwin-ppc-cc"],
|
||||
"ppc64": ["darwin64-ppc-cc"],
|
||||
}
|
||||
configure_opts = [
|
||||
"no-krb5",
|
||||
"no-idea",
|
||||
"no-mdc2",
|
||||
"no-rc5",
|
||||
"no-zlib",
|
||||
"enable-tlsext",
|
||||
"no-ssl2",
|
||||
"no-ssl3",
|
||||
"no-ssl3-method",
|
||||
# "enable-unit-test",
|
||||
"shared",
|
||||
"--install_prefix=%s"%shellQuote(archbase),
|
||||
"--prefix=%s"%os.path.join("/", *FW_VERSION_PREFIX),
|
||||
"--openssldir=/System/Library/OpenSSL",
|
||||
]
|
||||
if no_asm:
|
||||
configure_opts.append("no-asm")
|
||||
runCommand(" ".join(["perl", "Configure"]
|
||||
+ arch_opts[arch] + configure_opts))
|
||||
runCommand("make depend OSX_SDK=%s" % SDKPATH)
|
||||
runCommand("make all OSX_SDK=%s" % SDKPATH)
|
||||
runCommand("make install_sw OSX_SDK=%s" % SDKPATH)
|
||||
# runCommand("make test")
|
||||
return
|
||||
|
||||
srcdir = os.getcwd()
|
||||
universalbase = os.path.join(srcdir, "..",
|
||||
os.path.basename(srcdir) + "-universal")
|
||||
os.mkdir(universalbase)
|
||||
archbasefws = []
|
||||
for arch in archList:
|
||||
# fresh copy of the source tree
|
||||
archsrc = os.path.join(universalbase, arch, "src")
|
||||
shutil.copytree(srcdir, archsrc, symlinks=True)
|
||||
# install base for this arch
|
||||
archbase = os.path.join(universalbase, arch, "root")
|
||||
os.mkdir(archbase)
|
||||
# Python framework base within install_prefix:
|
||||
# the build will install into this framework..
|
||||
# This is to ensure that the resulting shared libs have
|
||||
# the desired real install paths built into them.
|
||||
archbasefw = os.path.join(archbase, *FW_VERSION_PREFIX)
|
||||
|
||||
# build one architecture
|
||||
os.chdir(archsrc)
|
||||
build_openssl_arch(archbase, arch)
|
||||
os.chdir(srcdir)
|
||||
archbasefws.append(archbasefw)
|
||||
|
||||
# copy arch-independent files from last build into the basedir framework
|
||||
basefw = os.path.join(basedir, *FW_VERSION_PREFIX)
|
||||
shutil.copytree(
|
||||
os.path.join(archbasefw, "include", "openssl"),
|
||||
os.path.join(basefw, "include", "openssl")
|
||||
)
|
||||
|
||||
shlib_version_number = grepValue(os.path.join(archsrc, "Makefile"),
|
||||
"SHLIB_VERSION_NUMBER")
|
||||
# e.g. -> "1.0.0"
|
||||
libcrypto = "libcrypto.dylib"
|
||||
libcrypto_versioned = libcrypto.replace(".", "."+shlib_version_number+".")
|
||||
# e.g. -> "libcrypto.1.0.0.dylib"
|
||||
libssl = "libssl.dylib"
|
||||
libssl_versioned = libssl.replace(".", "."+shlib_version_number+".")
|
||||
# e.g. -> "libssl.1.0.0.dylib"
|
||||
|
||||
try:
|
||||
os.mkdir(os.path.join(basefw, "lib"))
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
# merge the individual arch-dependent shared libs into a fat shared lib
|
||||
archbasefws.insert(0, basefw)
|
||||
for (lib_unversioned, lib_versioned) in [
|
||||
(libcrypto, libcrypto_versioned),
|
||||
(libssl, libssl_versioned)
|
||||
]:
|
||||
runCommand("lipo -create -output " +
|
||||
" ".join(shellQuote(
|
||||
os.path.join(fw, "lib", lib_versioned))
|
||||
for fw in archbasefws))
|
||||
# and create an unversioned symlink of it
|
||||
os.symlink(lib_versioned, os.path.join(basefw, "lib", lib_unversioned))
|
||||
|
||||
# Create links in the temp include and lib dirs that will be injected
|
||||
# into the Python build so that setup.py can find them while building
|
||||
# and the versioned links so that the setup.py post-build import test
|
||||
# does not fail.
|
||||
relative_path = os.path.join("..", "..", "..", *FW_VERSION_PREFIX)
|
||||
for fn in [
|
||||
["include", "openssl"],
|
||||
["lib", libcrypto],
|
||||
["lib", libssl],
|
||||
["lib", libcrypto_versioned],
|
||||
["lib", libssl_versioned],
|
||||
]:
|
||||
os.symlink(
|
||||
os.path.join(relative_path, *fn),
|
||||
os.path.join(basedir, "usr", "local", *fn)
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
def buildRecipe(recipe, basedir, archList):
|
||||
"""
|
||||
Build software using a recipe. This function does the
|
||||
|
@ -789,8 +970,10 @@ def buildRecipe(recipe, basedir, archList):
|
|||
curdir = os.getcwd()
|
||||
|
||||
name = recipe['name']
|
||||
THIRD_PARTY_LIBS.append(name)
|
||||
url = recipe['url']
|
||||
configure = recipe.get('configure', './configure')
|
||||
buildrecipe = recipe.get('buildrecipe', None)
|
||||
install = recipe.get('install', 'make && make install DESTDIR=%s'%(
|
||||
shellQuote(basedir)))
|
||||
|
||||
|
@ -888,6 +1071,11 @@ def buildRecipe(recipe, basedir, archList):
|
|||
print("Running configure for %s"%(name,))
|
||||
runCommand(' '.join(configure_args) + ' 2>&1')
|
||||
|
||||
if buildrecipe is not None:
|
||||
# call special-case build recipe, e.g. for openssl
|
||||
buildrecipe(basedir, archList)
|
||||
|
||||
if install is not None:
|
||||
print("Running install for %s"%(name,))
|
||||
runCommand('{ ' + install + ' ;} 2>&1')
|
||||
|
||||
|
@ -1145,6 +1333,7 @@ def patchFile(inPath, outPath):
|
|||
data = data.replace('$MACOSX_DEPLOYMENT_TARGET', ''.join((DEPTARGET, ' or later')))
|
||||
data = data.replace('$ARCHITECTURES', ", ".join(universal_opts_map[UNIVERSALARCHS]))
|
||||
data = data.replace('$INSTALL_SIZE', installSize())
|
||||
data = data.replace('$THIRD_PARTY_LIBS', "\\\n".join(THIRD_PARTY_LIBS))
|
||||
|
||||
# This one is not handy as a template variable
|
||||
data = data.replace('$PYTHONFRAMEWORKINSTALLDIR', '/Library/Frameworks/Python.framework')
|
||||
|
@ -1327,8 +1516,6 @@ def buildInstaller():
|
|||
else:
|
||||
patchFile(os.path.join('resources', fn), os.path.join(rsrcDir, fn))
|
||||
|
||||
shutil.copy("../../LICENSE", os.path.join(rsrcDir, 'License.txt'))
|
||||
|
||||
|
||||
def installSize(clear=False, _saved=[]):
|
||||
if clear:
|
||||
|
@ -1436,12 +1623,14 @@ def main():
|
|||
|
||||
|
||||
# Prepare the applications folder
|
||||
fn = os.path.join(WORKDIR, "_root", "Applications",
|
||||
"Python %s"%(getVersion(),), "Update Shell Profile.command")
|
||||
patchScript("scripts/postflight.patch-profile", fn)
|
||||
|
||||
folder = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%(
|
||||
getVersion(),))
|
||||
fn = os.path.join(folder, "License.rtf")
|
||||
patchFile("resources/License.rtf", fn)
|
||||
fn = os.path.join(folder, "ReadMe.rtf")
|
||||
patchFile("resources/ReadMe.rtf", fn)
|
||||
fn = os.path.join(folder, "Update Shell Profile.command")
|
||||
patchScript("scripts/postflight.patch-profile", fn)
|
||||
os.chmod(folder, STAT_0o755)
|
||||
setIcon(folder, "../Icons/Python Folder.icns")
|
||||
|
||||
|
@ -1449,10 +1638,12 @@ def main():
|
|||
buildInstaller()
|
||||
|
||||
# And copy the readme into the directory containing the installer
|
||||
patchFile('resources/ReadMe.txt', os.path.join(WORKDIR, 'installer', 'ReadMe.txt'))
|
||||
patchFile('resources/ReadMe.rtf',
|
||||
os.path.join(WORKDIR, 'installer', 'ReadMe.rtf'))
|
||||
|
||||
# Ditto for the license file.
|
||||
shutil.copy('../../LICENSE', os.path.join(WORKDIR, 'installer', 'License.txt'))
|
||||
patchFile('resources/License.rtf',
|
||||
os.path.join(WORKDIR, 'installer', 'License.rtf'))
|
||||
|
||||
fp = open(os.path.join(WORKDIR, 'installer', 'Build.txt'), 'w')
|
||||
fp.write("# BUILD INFO\n")
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
# openssl_sdk_makedepend.patch
|
||||
#
|
||||
# using openssl 1.0.1j
|
||||
#
|
||||
# - support building with an OS X SDK
|
||||
# - allow "make depend" to use compilers with names other than "gcc"
|
||||
|
||||
diff Configure
|
||||
--- a/Configure Fri Dec 05 01:24:16 2014 -0800
|
||||
+++ b/Configure Fri Dec 05 01:52:29 2014 -0800
|
||||
@@ -577,11 +577,11 @@
|
||||
|
||||
##### MacOS X (a.k.a. Rhapsody or Darwin) setup
|
||||
"rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown):MACOSX_RHAPSODY::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}::",
|
||||
-"darwin-ppc-cc","cc:-arch ppc -O3 -DB_ENDIAN -Wa,-force_cpusubtype_ALL::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc32_asm}:osx32:dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
-"darwin64-ppc-cc","cc:-arch ppc64 -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc64_asm}:osx64:dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
-"darwin-i386-cc","cc:-arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:".eval{my $asm=$x86_asm;$asm=~s/cast\-586\.o//;$asm}.":macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
-"debug-darwin-i386-cc","cc:-arch i386 -g3 -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
-"darwin64-x86_64-cc","cc:-arch x86_64 -O3 -DL_ENDIAN -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:".eval{my $asm=$x86_64_asm;$asm=~s/rc4\-[^:]+//;$asm}.":macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
+"darwin-ppc-cc","cc:-arch ppc -isysroot \$(OSX_SDK) -O3 -DB_ENDIAN -Wa,-force_cpusubtype_ALL::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc32_asm}:osx32:dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
+"darwin64-ppc-cc","cc:-arch ppc64 -isysroot \$(OSX_SDK) -O3 -DB_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc64_asm}:osx64:dlfcn:darwin-shared:-fPIC -fno-common:-arch ppc64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
+"darwin-i386-cc","cc:-arch i386 -isysroot \$(OSX_SDK) -O3 -fomit-frame-pointer -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:".eval{my $asm=$x86_asm;$asm=~s/cast\-586\.o//;$asm}.":macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
+"debug-darwin-i386-cc","cc:-arch i386 -isysroot \$(OSX_SDK) -g3 -DL_ENDIAN::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR:${x86_asm}:macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch i386 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
+"darwin64-x86_64-cc","cc:-arch x86_64 -isysroot \$(OSX_SDK) -O3 -DL_ENDIAN -Wall::-D_REENTRANT:MACOSX:-Wl,-search_paths_first%:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:".eval{my $asm=$x86_64_asm;$asm=~s/rc4\-[^:]+//;$asm}.":macosx:dlfcn:darwin-shared:-fPIC -fno-common:-arch x86_64 -dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
"debug-darwin-ppc-cc","cc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DB_ENDIAN -g -Wall -O::-D_REENTRANT:MACOSX::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${ppc32_asm}:osx32:dlfcn:darwin-shared:-fPIC:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
# iPhoneOS/iOS
|
||||
"iphoneos-cross","llvm-gcc:-O3 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fomit-frame-pointer -fno-common::-D_REENTRANT:iOS:-Wl,-search_paths_first%:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:${no_asm}:dlfcn:darwin-shared:-fPIC -fno-common:-dynamiclib:.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
||||
@@ -1624,7 +1624,7 @@
|
||||
s/^CC=.*$/CC= $cc/;
|
||||
s/^AR=\s*ar/AR= $ar/;
|
||||
s/^RANLIB=.*/RANLIB= $ranlib/;
|
||||
- s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc eq "gcc";
|
||||
+ s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/;
|
||||
}
|
||||
s/^CFLAG=.*$/CFLAG= $cflags/;
|
||||
s/^DEPFLAG=.*$/DEPFLAG=$depflags/;
|
||||
diff util/domd
|
||||
--- a/util/domd Fri Dec 05 01:24:16 2014 -0800
|
||||
+++ b/util/domd Fri Dec 05 01:52:29 2014 -0800
|
||||
@@ -14,7 +14,7 @@
|
||||
cp Makefile Makefile.save
|
||||
# fake the presence of Kerberos
|
||||
touch $TOP/krb5.h
|
||||
-if expr "$MAKEDEPEND" : '.*gcc$' > /dev/null; then
|
||||
+if true ; then # was: if expr "$MAKEDEPEND" : '.*gcc$' > /dev/null; then
|
||||
args=""
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ "$1" != "--" ]; then args="$args $1"; fi
|
|
@ -0,0 +1,146 @@
|
|||
{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160
|
||||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fmodern\fcharset0 CourierNewPS-BoldMT;\f2\fmodern\fcharset0 CourierNewPSMT;
|
||||
}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
\margl1440\margr1440\vieww14620\viewh13380\viewkind0
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\f0\b\fs36 \cf0 \ul \ulc0 HISTORY AND LICENSE\
|
||||
|
||||
\fs24 \
|
||||
HISTORY OF THE SOFTWARE\
|
||||
|
||||
\b0 \ulnone \
|
||||
Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands as a successor of a language called ABC. Guido remains Python's principal author, although it includes many contributions from others.\
|
||||
\
|
||||
In 1995, Guido continued his work on Python at the Corporation for National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) in Reston, Virginia where he released several versions of the software.\
|
||||
\
|
||||
In May 2000, Guido and the Python core development team moved to BeOpen.com to form the BeOpen PythonLabs team. In October of the same year, the PythonLabs team moved to Digital Creations (now Zope Corporation, see http://www.zope.com). In 2001, the Python Software Foundation (PSF, see http://www.python.org/psf/) was formed, a non-profit organization created specifically to own Python-related Intellectual Property. Zope Corporation is a sponsoring member of the PSF.\
|
||||
\
|
||||
All Python releases are Open Source (see http://www.opensource.org for the Open Source Definition). Historically, most, but not all, Python releases have also been GPL-compatible; the table below summarizes the various releases.\
|
||||
\
|
||||
|
||||
\f1\b Release Derived Year Owner GPL-\
|
||||
from compatible?\
|
||||
|
||||
\f2\b0 \
|
||||
0.9.0 thru 1.2 n/a 1991-1995 CWI yes\
|
||||
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes\
|
||||
1.6 1.5.2 2000 CNRI no\
|
||||
2.0 1.6 2000 BeOpen.com no\
|
||||
1.6.1 1.6 2001 CNRI no\
|
||||
2.1 2.0+1.6.1 2001 PSF no\
|
||||
2.0.1 2.0+1.6.1 2001 PSF yes\
|
||||
2.1.1 2.1+2.0.1 2001 PSF yes\
|
||||
2.1.2 2.1.1 2002 PSF yes\
|
||||
2.1.3 2.1.2 2002 PSF yes\
|
||||
2.2 and above 2.1.1 2001-now PSF yes\
|
||||
|
||||
\f0 \
|
||||
|
||||
\b Note:
|
||||
\b0 GPL-compatible doesn't mean that we're distributing Python under the GPL. All Python licenses, unlike the GPL, let you distribute a modified version without making your changes open source. The GPL-compatible licenses make it possible to combine Python with other software that is released under the GPL; the others don't.\
|
||||
\
|
||||
Thanks to the many outside volunteers who have worked under Guido's direction to make these releases possible.\
|
||||
\
|
||||
\
|
||||
|
||||
\b \ul TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON\
|
||||
|
||||
\b0 \ulnone \
|
||||
|
||||
\b PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2\
|
||||
|
||||
\b0 \
|
||||
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation.\
|
||||
\
|
||||
2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.\
|
||||
\
|
||||
3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python.\
|
||||
\
|
||||
4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\
|
||||
\
|
||||
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.\
|
||||
\
|
||||
6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.\
|
||||
\
|
||||
7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.\
|
||||
\
|
||||
8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement.\
|
||||
\
|
||||
\
|
||||
|
||||
\b BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0\
|
||||
|
||||
\b0 \
|
||||
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1\
|
||||
\
|
||||
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization ("Licensee") accessing and otherwise using this software in source or binary form and its associated documentation ("the Software").\
|
||||
\
|
||||
2. Subject to the terms and conditions of this BeOpen Python License Agreement, BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use the Software alone or in any derivative version, provided, however, that the BeOpen Python License is retained in the Software, alone or in any derivative version prepared by Licensee.\
|
||||
\
|
||||
3. BeOpen is making the Software available to Licensee on an "AS IS" basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\
|
||||
\
|
||||
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.\
|
||||
\
|
||||
5. This License Agreement will automatically terminate upon a material breach of its terms and conditions.\
|
||||
\
|
||||
6. This License Agreement shall be governed by and interpreted in all respects by the law of the State of California, excluding conflict of law provisions. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between BeOpen and Licensee. This License Agreement does not grant permission to use BeOpen trademarks or trade names in a trademark sense to endorse or promote products or services of Licensee, or any third party. As an exception, the "BeOpen Python" logos available at http://www.pythonlabs.com/logos.html may be used according to the permissions granted on that web page.\
|
||||
\
|
||||
7. By copying, installing or otherwise using the software, Licensee agrees to be bound by the terms and conditions of this License Agreement.\
|
||||
\
|
||||
\
|
||||
|
||||
\b CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1\
|
||||
|
||||
\b0 \
|
||||
1. This LICENSE AGREEMENT is between the Corporation for National Research Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191 ("CNRI"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 1.6.1 software in source or binary form and its associated documentation.\
|
||||
\
|
||||
2. Subject to the terms and conditions of this License Agreement, CNRI hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 1.6.1 alone or in any derivative version, provided, however, that CNRI's License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) 1995-2001 Corporation for National Research Initiatives; All Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version prepared by Licensee. Alternately, in lieu of CNRI's License Agreement, Licensee may substitute the following text (omitting the quotes): "Python 1.6.1 is made available subject to the terms and conditions in CNRI's License Agreement. This Agreement together with Python 1.6.1 may be located on the Internet using the following unique, persistent identifier (known as a handle): 1895.22/1013. This Agreement may also be obtained from a proxy server on the Internet using the following URL: http://hdl.handle.net/1895.22/1013".\
|
||||
\
|
||||
3. In the event Licensee prepares a derivative work that is based on or incorporates Python 1.6.1 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 1.6.1.\
|
||||
\
|
||||
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.\
|
||||
\
|
||||
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.\
|
||||
\
|
||||
6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.\
|
||||
\
|
||||
7. This License Agreement shall be governed by the federal intellectual property law of the United States, including without limitation the federal copyright law, and, to the extent such U.S. federal law does not apply, by the law of the Commonwealth of Virginia, excluding Virginia's conflict of law provisions. Notwithstanding the foregoing, with regard to derivative works based on Python 1.6.1 that incorporate non-separable material that was previously distributed under the GNU General Public License (GPL), the law of the Commonwealth of Virginia shall govern this License Agreement only as to issues arising under or with respect to Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between CNRI and Licensee. This License Agreement does not grant permission to use CNRI trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.\
|
||||
\
|
||||
8. By clicking on the "ACCEPT" button where indicated, or by copying, installing or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and conditions of this License Agreement.\
|
||||
\
|
||||
ACCEPT\
|
||||
\
|
||||
\
|
||||
|
||||
\b CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\
|
||||
|
||||
\b0 \
|
||||
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The Netherlands. All rights reserved.\
|
||||
\
|
||||
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.\
|
||||
\
|
||||
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\
|
||||
\
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b \cf0 \ul \ulc0 LICENSES AND ACKNOWLEDGEMENTS FOR INCORPORATED SOFTWARE\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b0 \cf0 \ulnone \
|
||||
This installer incorporates portions of the following third-party software:\
|
||||
\
|
||||
|
||||
\f2 $THIRD_PARTY_LIBS\
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\f0 \cf0 For licenses and acknowledgements for these and other third-party software incorporated in this Python distribution, please refer to the on-line documentation {\field{\*\fldinst{HYPERLINK "https://docs.python.org/$VERSION/license.html#licenses-and-acknowledgements-for-incorporated-software"}}{\fldrslt here}}.\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
\cf0 \
|
||||
\
|
||||
\
|
||||
\
|
||||
}
|
|
@ -0,0 +1,180 @@
|
|||
{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160
|
||||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fmodern\fcharset0 CourierNewPSMT;}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
\margl1440\margr1440\vieww13380\viewh14600\viewkind0
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\f0\fs24 \cf0 This package will install Python $FULL_VERSION for Mac OS X $MACOSX_DEPLOYMENT_TARGET for the following architecture(s): $ARCHITECTURES.\
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b \cf0 \ul \ulc0 Which installer variant should I use?
|
||||
\b0 \ulnone \
|
||||
\
|
||||
Python.org provides two installer variants for download: one that installs a
|
||||
\i 64-bit/32-bit Intel
|
||||
\i0 Python capable of running on
|
||||
\i Mac OS X 10.6 (Snow Leopard)
|
||||
\i0 or later; and one that installs a
|
||||
\i 32-bit-only (Intel and PPC)
|
||||
\i0 Python capable of running on
|
||||
\i Mac OS X 10.5 (Leopard)
|
||||
\i0 or later. This ReadMe was installed with the
|
||||
\i $MACOSX_DEPLOYMENT_TARGET
|
||||
\i0 variant. Unless you are installing to an 10.5 system or you need to build applications that can run on 10.5 systems, use the 10.6 variant if possible. There are some additional operating system functions that are supported starting with 10.6 and you may see better performance using 64-bit mode. By default, Python will automatically run in 64-bit mode if your system supports it. Also see
|
||||
\i Certificate verification and OpenSSL
|
||||
\i0 below.
|
||||
\b \ul \
|
||||
\
|
||||
Update your version of Tcl/Tk to use IDLE or other Tk applications
|
||||
\b0 \ulnone \
|
||||
\
|
||||
To use IDLE or other programs that use the Tkinter graphical user interface toolkit, you need to install a newer third-party version of the
|
||||
\i Tcl/Tk
|
||||
\i0 frameworks. Visit {\field{\*\fldinst{HYPERLINK "https://www.python.org/download/mac/tcltk/"}}{\fldrslt https://www.python.org/download/mac/tcltk/}} for current information about supported and recommended versions of
|
||||
\i Tcl/Tk
|
||||
\i0 for this version of Python and of Mac OS X.\
|
||||
|
||||
\b \ul \
|
||||
Installing on OS X 10.8 (Mountain Lion) or later systems\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
\cf0 \ulnone [CHANGED for Python 3.4.2]
|
||||
\b0 \
|
||||
\
|
||||
As of Python 3.4.2, installer packages from python.org are now compatible with the Gatekeeper security feature introduced in OS X 10.8. Downloaded packages can now be directly installed by double-clicking with the default system security settings. Python.org installer packages for OS X are signed with the Developer ID of the builder, as identified on {\field{\*\fldinst{HYPERLINK "https://www.python.org/downloads/"}}{\fldrslt the download page}} for this release. To inspect the digital signature of the package, click on the lock icon in the upper right corner of the
|
||||
\i Install Python
|
||||
\i0 installer window. Refer to Apple\'92s support pages for {\field{\*\fldinst{HYPERLINK "http://support.apple.com/kb/ht5290"}}{\fldrslt more information on Gatekeeper}}.\
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b \cf0 \ul Simplified web-based installs\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
\cf0 \ulnone [NEW for Python 3.4.2]
|
||||
\b0 \
|
||||
\
|
||||
With the change to the newer flat format installer package, the download file now has a
|
||||
\f1 .pkg
|
||||
\f0 extension as it is no longer necessary to embed the installer within a disk image (
|
||||
\f1 .dmg
|
||||
\f0 ) container. If you download the Python installer through a web browser, the OS X installer application may open automatically to allow you to perform the install. If your browser settings do not allow automatic open, double click on the downloaded installer file.\
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b \cf0 \ul New Installation Options and Defaults\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
\cf0 \ulnone [NEW for Python 3.4.0]
|
||||
\b0 \
|
||||
\
|
||||
The Python installer now includes an option to automatically install or upgrade
|
||||
\f1 pip
|
||||
\f0 , a tool for installing and managing Python packages. This option is enabled by default and no Internet access is required. If you do not want the installer to do this, select the
|
||||
\i Customize
|
||||
\i0 option at the
|
||||
\i Installation Type
|
||||
\i0 step and uncheck the
|
||||
\i Install or ugprade pip
|
||||
\i0 option.\
|
||||
\
|
||||
To make it easier to use scripts installed by third-party Python packages, with
|
||||
\f1 pip
|
||||
\f0 or by other means, the
|
||||
\i Shell profile updater
|
||||
\i0 option is now enabled by default, as has been the case with Python 2.7.x installers. You can also turn this option off by selecting
|
||||
\i Customize
|
||||
\i0 and unchecking the
|
||||
\i Shell profile updater
|
||||
\i0 option. You can also update your shell profile later by launching the
|
||||
\i Update Shell Profile
|
||||
\i0 command found in the
|
||||
\f1 /Applications/Python $VERSION
|
||||
\f0 folder. You may need to start a new terminal window for the changes to take effect.\
|
||||
\
|
||||
For other changes in this release, see the Release Notes link for this release at {\field{\*\fldinst{HYPERLINK "https://www.python.org/downloads/"}}{\fldrslt https://www.python.org/downloads/}}.\
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b \cf0 \ul Certificate verification and OpenSSL\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
\cf0 \ulnone [CHANGED for Python 3.4.3]
|
||||
\b0 \
|
||||
\
|
||||
Python 3.4.3 includes a number of network security enhancements that have been approved for inclusion in Python 3.4 maintenance releases. {\field{\*\fldinst{HYPERLINK "https://www.python.org/dev/peps/pep-0476/"}}{\fldrslt PEP 476}} changes several standard library modules, like
|
||||
\i httplib
|
||||
\i0 ,
|
||||
\i urllib
|
||||
\i0 , and
|
||||
\i xmlrpclib
|
||||
\i0 , to by default verify certificates presented by servers over secure (TLS) connections. The verification is performed by the OpenSSL libraries that Python is linked to. Prior to 3.4.3, the python.org installers dynamically linked with Apple-supplied OpenSSL libraries shipped with OS X. OS X provides a multiple level security framework that stores trust certificates in system and user keychains managed by the
|
||||
\i Keychain Access
|
||||
\i0 application and the
|
||||
\i security
|
||||
\i0 command line utility.\
|
||||
\
|
||||
For OS X 10.5, Apple provides
|
||||
\i OpenSSL 0.9.7
|
||||
\i0 libraries. This version of Apple's OpenSSL
|
||||
\b does not
|
||||
\b0 use the certificates from the system security framework, even when used on newer versions of OS X. Instead it consults a traditional OpenSSL concatenated certificate file (
|
||||
\i cafile
|
||||
\i0 ) or certificate directory (
|
||||
\i capath
|
||||
\i0 ), located in
|
||||
\f1 /System/Library/OpenSSL
|
||||
\f0 . These directories are typically empty and not managed by OS X; you must manage them yourself or supply your own SSL contexts. OpenSSL 0.9.7 is obsolete by current security standards, lacking a number of important features found in later versions. Among the problems this causes is the inability to verify higher-security certificates now used by python.org services, including
|
||||
\i t{\field{\*\fldinst{HYPERLINK "https://pypi.python.org/pypi"}}{\fldrslt he Python Package Index, PyPI}}
|
||||
\i0 . To solve this problem, as of 3.4.3 the
|
||||
\i 10.5+ 32-bit-only python.org variant
|
||||
\i0 is linked with a private copy of
|
||||
\i OpenSSL 1.0.1j
|
||||
\i0 ; it consults the same default certificate directory,
|
||||
\f1 /System/Library/OpenSSL
|
||||
\f0 . As before, it is still necessary to manage certificates yourself when you use this Python variant and, with certificate verification now enabled by default, you may now need to take additional steps to ensure your Python programs have access to CA certificates you trust. If you use this Python variant to build standalone applications with third-party tools like {\field{\*\fldinst{HYPERLINK "https://pypi.python.org/pypi/py2app/"}}{\fldrslt
|
||||
\f1 py2app}}, you may now need to bundle CA certificates in them or otherwise supply non-default SSL contexts.\
|
||||
\
|
||||
For OS X 10.6+, Apple also provides
|
||||
\i OpenSSL
|
||||
\i0
|
||||
\i 0.9.8 libraries
|
||||
\i0 . Apple's 0.9.8 version includes an important additional feature: if a certificate cannot be verified using the manually administered certificates in
|
||||
\f1 /System/Library/OpenSSL
|
||||
\f0 , the certificates managed by the system security framework In the user and system keychains are also consulted (using Apple private APIs). For this reason, for 3.4.3 the
|
||||
\i 64-bit/32-bit 10.6+ python.org variant
|
||||
\i0 continues to be dynamically linked with Apple's OpenSSL 0.9.8 since it was felt that the loss of the system-provided certificates and management tools outweighs the additional security features provided by newer versions of OpenSSL. This will likely change in future releases of the python.org installers as Apple has deprecated use of the system-supplied OpenSSL libraries. If you do need features from newer versions of OpenSSL, there are third-party OpenSSL wrapper packages available through
|
||||
\i PyPI
|
||||
\i0 .\
|
||||
\
|
||||
The bundled
|
||||
\f1 pip
|
||||
\f0 included with 3.4.3 has its own default certificate store for verifying download connections.\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b \cf0 \ul \
|
||||
Python 3 and Python 2 Co-existence\
|
||||
|
||||
\b0 \ulnone \
|
||||
Python.org Python $VERSION and 2.7.x versions can both be installed on your system and will not conflict. Command names for Python 3 contain a 3 in them,
|
||||
\f1 python3
|
||||
\f0 (or
|
||||
\f1 python$VERSION
|
||||
\f0 ),
|
||||
\f1 idle3
|
||||
\f0 (or i
|
||||
\f1 dle$VERSION
|
||||
\f0 ),
|
||||
\f1 pip3
|
||||
\f0 (or
|
||||
\f1 pip$VERSION
|
||||
\f0 ), etc. Python 2.7 command names contain a 2 or no digit:
|
||||
\f1 python2
|
||||
\f0 (or
|
||||
\f1 python2.7
|
||||
\f0 or
|
||||
\f1 python
|
||||
\f0 ),
|
||||
\f1 idle2
|
||||
\f0 (or
|
||||
\f1 idle2.7
|
||||
\f0 or
|
||||
\f1 idle
|
||||
\f0 ), etc.\
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
This package will install Python $FULL_VERSION for Mac OS X $MACOSX_DEPLOYMENT_TARGET for the following architecture(s): $ARCHITECTURES.
|
||||
|
||||
=============================
|
||||
Update your version of Tcl/Tk to use IDLE or other Tk applications
|
||||
=============================
|
||||
|
||||
To use IDLE or other programs that use the Tkinter graphical user interface toolkit, you need to install a newer third-party version of the Tcl/Tk frameworks. Visit https://www.python.org/download/mac/tcltk/ for current information about supported and recommended versions of Tcl/Tk for this version of Python and of Mac OS X.
|
||||
|
||||
=============================
|
||||
Installing on OS X 10.8 (Mountain Lion) or later systems
|
||||
[CHANGED for Python 3.4.2]
|
||||
=============================
|
||||
|
||||
As of Python 3.4.2, installer packages from python.org are now compatible with the Gatekeeper security feature introduced in OS X 10.8. Downloaded packages can now be directly installed by double-clicking with the default system security settings. Python.org installer packages for OS X are signed with the Developer ID of the builder, as identified on the download page for this release (https://www.python.org/downloads/). To inspect the digital signature of the package, click on the lock icon in the upper right corner of the Install Python installer window. Refer to Apple’s support pages for more information on Gatekeeper (http://support.apple.com/kb/ht5290).
|
||||
|
||||
=============================
|
||||
Simplified web-based installs
|
||||
[NEW for Python 3.4.2]
|
||||
=============================
|
||||
|
||||
With the change to the newer flat format installer package, the download file now has a .pkg extension as it is no longer necessary to embed the installer within a disk image (.dmg) container. If you download the Python installer through a web browser, the OS X installer application may open automatically to allow you to perform the install. If your browser settings do not allow automatic open, double click on the downloaded installer file.
|
||||
|
||||
=============================
|
||||
New Installation Options and Defaults
|
||||
[NEW for Python 3.4.0]
|
||||
=============================
|
||||
|
||||
The Python installer now includes an option to automatically install or upgrade pip, a tool for installing and managing Python packages. This option is enabled by default and no Internet access is required. If you do not want the installer to do this, select the Customize option at the Installation Type step and uncheck the Install or ugprade pip option.
|
||||
|
||||
To make it easier to use scripts installed by third-party Python packages, with pip or by other means, the Shell profile updater option is now enabled by default, as has been the case with Python 2.7.x installers. You can also turn this option off by selecting Customize and unchecking the Shell profile updater option. You can also update your shell profile later by launching the Update Shell Profile command found in the /Applications/Python $VERSION folder. You may need to start a new terminal window for the changes to take effect.
|
||||
|
||||
For other changes in this release, see the Release Notes link for this release at https://www.python.org/downloads/.
|
||||
|
||||
=============================
|
||||
Python 3 and Python 2 Co-existence
|
||||
=============================
|
||||
|
||||
Python.org Python $VERSION and 2.7.x versions can both be installed on your system and will not conflict. Command names for Python 3 contain a 3 in them, python3 (or python$VERSION), idle3 (or idle$VERSION), pip3 (or pip$VERSION), etc. Python 2.7 command names contain a 2 or no digit: python2 (or python2.7 or python), idle2 (or idle2.7 or idle), etc. If you want to use pip with Python 2.7.x, download and install a separate copy of it from the Python Package Index (https://pypi.python.org/pypi/pip/).
|
|
@ -1,4 +1,4 @@
|
|||
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
|
||||
{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160
|
||||
\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fmodern\fcharset0 CourierNewPSMT;}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
\paperw11905\paperh16837\margl1440\margr1440\vieww12200\viewh10880\viewkind0
|
||||
|
@ -17,16 +17,10 @@
|
|||
\b0 .\
|
||||
\
|
||||
|
||||
\b NEW for Python 3.4:
|
||||
\b0 This package now updates your shell profile by default to make $FULL_VERSION the default Python 3 version. This version can co-exist with other installed versions of Python 3 and Python 2. This package also installs a version of
|
||||
\f1 pip
|
||||
\f0 , the recommended tool for installing and managing Python packages. Type\
|
||||
\
|
||||
|
||||
\f1 pip3.4 --help
|
||||
\f0 \
|
||||
\
|
||||
for an overview. See the ReadMe file and the Python documentation for more information.\
|
||||
\b NEW for Python 3.4.3:
|
||||
\b0 3.4.3 includes network security enhancements that may require changes to your Python applications. See the
|
||||
\f1 ReadMe
|
||||
\f0 file and {\field{\*\fldinst{HYPERLINK "https://docs.python.org/3/whatsnew/3.4.html#changed-in-3-4-3"}}{\fldrslt the Python documentation}} for more information.\
|
||||
\
|
||||
|
||||
\b IMPORTANT:
|
||||
|
|
|
@ -1,102 +0,0 @@
|
|||
{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160
|
||||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fmodern\fcharset0 CourierNewPSMT;}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
\margl1440\margr1440\vieww13380\viewh14600\viewkind0
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\f0\fs24 \cf0 This package will install Python $FULL_VERSION for Mac OS X $MACOSX_DEPLOYMENT_TARGET for the following architecture(s): $ARCHITECTURES.\
|
||||
\
|
||||
|
||||
\b \ul Update your version of Tcl/Tk to use IDLE or other Tk applications
|
||||
\b0 \ulnone \
|
||||
\
|
||||
To use IDLE or other programs that use the Tkinter graphical user interface toolkit, you need to install a newer third-party version of the
|
||||
\i Tcl/Tk
|
||||
\i0 frameworks. Visit {\field{\*\fldinst{HYPERLINK "https://www.python.org/download/mac/tcltk/"}}{\fldrslt https://www.python.org/download/mac/tcltk/}} for current information about supported and recommended versions of
|
||||
\i Tcl/Tk
|
||||
\i0 for this version of Python and of Mac OS X.\
|
||||
|
||||
\b \ul \
|
||||
Installing on OS X 10.8 (Mountain Lion) or later systems\
|
||||
\ulnone [CHANGED for Python 3.4.2]
|
||||
\b0 \
|
||||
\
|
||||
As of Python 3.4.2, installer packages from python.org are now compatible with the Gatekeeper security feature introduced in OS X 10.8. Downloaded packages can now be directly installed by double-clicking with the default system security settings. Python.org installer packages for OS X are signed with the Developer ID of the builder, as identified on the download page for this release ({\field{\*\fldinst{HYPERLINK "https://www.python.org/downloads/"}}{\fldrslt https://www.python.org/downloads/}}). To inspect the digital signature of the package, click on the lock icon in the upper right corner of the
|
||||
\i Install Python
|
||||
\i0 installer window. Refer to Apple\'92s support pages for more information on Gatekeeper ({\field{\*\fldinst{HYPERLINK "http://support.apple.com/kb/ht5290"}}{\fldrslt http://support.apple.com/kb/ht5290}}).\
|
||||
\
|
||||
|
||||
\b \ul Simplified web-based installs\
|
||||
\ulnone [NEW for Python 3.4.2]
|
||||
\b0 \
|
||||
\
|
||||
With the change to the newer flat format installer package, the download file now has a
|
||||
\f1 .pkg
|
||||
\f0 extension as it is no longer necessary to embed the installer within a disk image (
|
||||
\f1 .dmg
|
||||
\f0 ) container. If you download the Python installer through a web browser, the OS X installer application may open automatically to allow you to perform the install. If your browser settings do not allow automatic open, double click on the downloaded installer file.\
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\b \cf0 \ul \ulc0 New Installation Options and Defaults\
|
||||
\ulnone [NEW for Python 3.4.0]
|
||||
\b0 \
|
||||
\
|
||||
The Python installer now includes an option to automatically install or upgrade
|
||||
\f1 pip
|
||||
\f0 , a tool for installing and managing Python packages. This option is enabled by default and no Internet access is required. If you do not want the installer to do this, select the
|
||||
\i Customize
|
||||
\i0 option at the
|
||||
\i Installation Type
|
||||
\i0 step and uncheck the
|
||||
\i Install or ugprade pip
|
||||
\i0 option.\
|
||||
\
|
||||
To make it easier to use scripts installed by third-party Python packages, with
|
||||
\f1 pip
|
||||
\f0 or by other means, the
|
||||
\i Shell profile updater
|
||||
\i0 option is now enabled by default, as has been the case with Python 2.7.x installers. You can also turn this option off by selecting
|
||||
\i Customize
|
||||
\i0 and unchecking the
|
||||
\i Shell profile updater
|
||||
\i0 option. You can also update your shell profile later by launching the
|
||||
\i Update Shell Profile
|
||||
\i0 command found in the
|
||||
\f1 /Applications/Python $VERSION
|
||||
\f0 folder. You may need to start a new terminal window for the changes to take effect.\
|
||||
\
|
||||
For other changes in this release, see the Release Notes link for this release at {\field{\*\fldinst{HYPERLINK "https://www.python.org/downloads/"}}{\fldrslt https://www.python.org/downloads/}}.\
|
||||
\
|
||||
|
||||
\b \ul Python 3 and Python 2 Co-existence\
|
||||
|
||||
\b0 \ulnone \
|
||||
Python.org Python $VERSION and 2.7.x versions can both be installed on your system and will not conflict. Command names for Python 3 contain a 3 in them,
|
||||
\f1 python3
|
||||
\f0 (or
|
||||
\f1 python$VERSION
|
||||
\f0 ),
|
||||
\f1 idle3
|
||||
\f0 (or i
|
||||
\f1 dle$VERSION
|
||||
\f0 ),
|
||||
\f1 pip3
|
||||
\f0 (or
|
||||
\f1 pip$VERSION
|
||||
\f0 ), etc. Python 2.7 command names contain a 2 or no digit:
|
||||
\f1 python2
|
||||
\f0 (or
|
||||
\f1 python2.7
|
||||
\f0 or
|
||||
\f1 python
|
||||
\f0 ),
|
||||
\f1 idle2
|
||||
\f0 (or
|
||||
\f1 idle2.7
|
||||
\f0 or
|
||||
\f1 idle
|
||||
\f0 ), etc. If you want to use
|
||||
\f1 pip
|
||||
\f0 with Python 2.7.x, download and install a separate copy of it from the Python Package Index ({\field{\*\fldinst{HYPERLINK "https://pypi.python.org/pypi/pip/"}}{\fldrslt https://pypi.python.org/pypi/pip/}}).\
|
||||
}
|
Loading…
Reference in New Issue