cpython: 19b512bfc8d2 (original) (raw)

Mercurial > cpython

changeset 86612:19b512bfc8d2 2.7

Issue #15663: Tcl/Tk 8.5.15 is now included with the OS X 10.6+ 64-bit/32-bit installer for 10.6+. It is no longer necessary to install a third-party version of Tcl/Tk 8.5 to work around the problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6 and later releases. [#15663]

Ned Deily nad@acm.org
date Fri, 25 Oct 2013 00:40:07 -0700
parents e7474d4d85ca
children 323f1dcceb73
files Mac/BuildScript/README.txt Mac/BuildScript/build-installer.py Mac/BuildScript/resources/ReadMe.txt Mac/BuildScript/resources/Welcome.rtf Misc/NEWS
diffstat 5 files changed, 149 insertions(+), 27 deletions(-)[+] [-] Mac/BuildScript/README.txt 28 Mac/BuildScript/build-installer.py 77 Mac/BuildScript/resources/ReadMe.txt 47 Mac/BuildScript/resources/Welcome.rtf 18 Misc/NEWS 6

line wrap: on

line diff

--- a/Mac/BuildScript/README.txt +++ b/Mac/BuildScript/README.txt @@ -57,13 +57,39 @@ 2. 64-bit / 32-bit, x86_64 and i386 uni * NCurses 5.9 (http://bugs.python.org/issue15037)[](#l1.5) * SQLite 3.7.13

- uses system-supplied versions of third-party libraries * readline module links with Apple BSD editline (libedit) * builds Oracle Sleepycat DB 4.8 (Python 2.x only)

+

+

+

+

- recommended build environment:

--- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -193,6 +193,44 @@ def library_recipes(): LT_10_5 = bool(DEPTARGET < '10.5')

+ if getVersionTuple() >= (3, 3): result.extend([ dict( @@ -526,6 +564,20 @@ def checkEnvironment(): % frameworks['Tk'], ]

+ # Remove inherited environment variables which might influence build environ_var_prefixes = ['CPATH', 'C_INCLUDE_', 'DYLD_', 'LANG', 'LC_', 'LD_', 'LIBRARY_', 'PATH', 'PYTHON'] @@ -634,13 +686,19 @@ def extractArchive(builddir, archiveName XXX: This function assumes that archives contain a toplevel directory that is has the same name as the basename of the archive. This is

@@ -904,6 +962,23 @@ def buildPython(): print("Running make") runCommand("make")

+ print("Running make install") runCommand("make install DESTDIR=%s"%( shellQuote(rootDir)))

--- a/Mac/BuildScript/resources/ReadMe.txt +++ b/Mac/BuildScript/resources/ReadMe.txt @@ -2,10 +2,12 @@ This package will install Python $FULL_V $MACOSX_DEPLOYMENT_TARGET for the following architecture(s): $ARCHITECTURES. -Installation requires approximately $INSTALL_SIZE MB of disk space, -ignore the message that it will take zero bytes.

-If you are attempting to install on an OS X 10.8 system, you may +Installing on OS X 10.8 (Mountain Lion) or later systems +======================================================== + +If you are attempting to install on an OS X 10.8+ system, you may see a message that Python can't be installed because it is from an unidentified developer. This is because this Python installer package is not yet compatible with the Gatekeeper security feature @@ -15,22 +17,36 @@ instead of double-clicking, control-clic installer package icon. Then select "Open using ... Installer" from the contextual menu that appears.

+ +Installing a third-party version of Tcl/Tk is no longer required +================================================================ + +As of Python 2.7.6, the 10.6+ 64-bit installer now +comes with its own private copy of Tcl and Tk 8.5 libraries. For +this version of Python, it is no longer necessary to install +a third-party version of Tcl/Tk 8.5, such as those from ActiveState, +to work around the problematic versions of Tcl/Tk 8.5 shipped by +Apple in OS X 10.6 and later. (This does not change the requirements +for older versions of Python installed from python.org.) By default, +this version of Python will always use its own private version, +regardless of whether a third-party Tcl/Tk is installed. +The 10.3+ 32-bit-only installer continues to use Tcl/Tk 8.4, +either a third-party or system-supplied version. + +Visit http://www.python.org/download/mac/tcltk/[](#l3.40) +for current information about supported and recommended versions of +Tcl/Tk for this version of Python and of Mac OS X. + +Using this version of Python on OS X +==================================== + Python consists of the Python programming language interpreter, plus a set of programs to allow easy access to it for Mac users including an integrated development environment, IDLE, plus a set of pre-built extension modules that open up specific Macintosh technologies to Python programs.

-To use IDLE or other programs that use the tkinter graphical user -interface toolkit, you may need to install a third-party version of -the Tcl/Tk frameworks. Visit http://www.python.org/download/mac/tcltk/[](#l3.57) -for current information about supported and recommended versions of -Tcl/Tk for this version of Python and of Mac OS X. -

- The installer puts applications, an "Update Shell Profile" command, and a link to the optionally installed Python Documentation into the "Python $VERSION" subfolder of the system Applications folder, @@ -41,12 +57,15 @@ well. Double-click on the "Update Shell "bin" directory inside the framework to your shell's search path. You must install onto your current boot disk, even though the -installer does not enforce this, otherwise things will not work. +installer may not enforce this, otherwise things will not work. You can verify the integrity of the disk image file containing the installer package and this ReadMe file by comparing its md5 checksum and size with the values published on the release page linked at http://www.python.org/download/[](#l3.76) +Installation requires approximately $INSTALL_SIZE MB of disk space, +ignore the message that it will take zero bytes. + More information on Python in general can be found at http://www.python.org.[](#l3.82)

--- a/Mac/BuildScript/resources/Welcome.rtf +++ b/Mac/BuildScript/resources/Welcome.rtf @@ -1,8 +1,8 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf400 +\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} -\paperw11904\paperh16836\margl1440\margr1440\vieww9640\viewh10620\viewkind0 -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural +\paperw11905\paperh16837\margl1440\margr1440\vieww9640\viewh10620\viewkind0 +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640 \f0\fs24 \cf0 This package will install \b Python $FULL_VERSION @@ -19,11 +19,7 @@ See the ReadMe file and the Python documentation for more information.[](#l4.17) [](#l4.18) -\b IMPORTANT: -\b0 -\b IDLE -\b0 and other programs using the -\b tkinter -\b0 graphical user interface toolkit require specific versions of the +\b IMPORTANT for users of IDLE and tkinter: +\b0 As of Python 2.7.6, it is no longer necessary to install third-party versions of the \b Tcl/Tk -\b0 platform independent windowing toolkit. Visit {\field{*\fldinst{HYPERLINK "http://www.python.org/download/mac/tcltk/"}}{\fldrslt http://www.python.org/download/mac/tcltk/}} for current information on supported and recommended versions of Tcl/Tk for this version of Python and Mac OS X.} \ No newline at end of file +\b0 platform independent windowing toolkit. Please read the ReadMe file and visit {\field{*\fldinst{HYPERLINK "http://www.python.org/download/mac/tcltk/"}}{\fldrslt http://www.python.org/download/mac/tcltk/}} for more information on supported and recommended versions of Tcl/Tk for this version of Python and Mac OS X.} \ No newline at end of file

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -283,6 +283,12 @@ Build