Mercurial > cpython-lru_cache-weakref
annotate Mac/README @ 80661:94de77bd0b4b 2.7
Issue #16194: document imp.load_dynamic problems
when read several extension modules from the same binary object file.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Thu, 29 Nov 2012 19:51:28 +0200 |
| parents | 3decf67e1a28 |
| children | 1ecb712fcf22 |
| rev | line source |
|---|---|
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
1 ============ |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
2 MacOSX Notes |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
3 ============ |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
4 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
5 This document provides a quick overview of some Mac OS X specific features in |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
6 the Python distribution. |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
7 |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
8 Mac-specific arguments to configure |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
9 =================================== |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
10 |
|
61113
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
11 * ``--enable-framework[=DIR]`` |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
12 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
13 If this argument is specified the build will create a Python.framework rather |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
14 than a traditional Unix install. See the section |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
15 _`Building and using a framework-based Python on Mac OS X` for more |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
16 information on frameworks. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
17 |
|
61113
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
18 If the optional directory argument is specified the framework it installed |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
19 into that directory. This can be used to install a python framework into |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
20 your home directory:: |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
21 |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
22 $ configure --enable-framework=/Users/ronald/Library/Frameworks |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
23 $ make && make install |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
24 |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
25 This will install the framework itself in ``/Users/ronald/Library/Frameworks``, |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
26 the applications in a subdirectory of ``/Users/ronald/Applications`` and the |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
27 command-line tools in ``/Users/ronald/bin``. |
|
c2e0b93f869f
Fix for issue #3646: with this patch it is possible to do a
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
58387
diff
changeset
|
28 |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
29 * ``--with-framework-name=NAME`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
30 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
31 Specify the name for the python framework, defaults to ``Python``. This option |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
32 is only valid when ``--enable-framework`` is specified. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
33 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
34 * ``--enable-universalsdk[=PATH]`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
35 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
36 Create a universal binary build of of Python. This can be used with both |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
37 regular and framework builds. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
38 |
|
57913
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
39 The optional argument specifies which OSX SDK should be used to perform the |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
40 build. This defaults to ``/Developer/SDKs/MacOSX.10.4u.sdk``, specify |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
41 ``/`` when building on a 10.5 system, especially when building 64-bit code. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
42 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
43 See the section _`Building and using a universal binary of Python on Mac OS X` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
44 for more information. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
45 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
46 * ``--with-univeral-archs=VALUE`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
47 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
48 Specify the kind of universal binary that should be created. This option is |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
49 only valid when ``--enable-universalsdk`` is specified. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
50 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
51 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
52 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
53 Building and using a universal binary of Python on Mac OS X |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
54 =========================================================== |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
55 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
56 1. What is a universal binary |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
57 ----------------------------- |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
58 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
59 A universal binary build of Python contains object code for both PPC and i386 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
60 and can therefore run at native speed on both classic powerpc based macs and |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
61 the newer intel based macs. |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
62 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
63 2. How do I build a universal binary |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
64 ------------------------------------ |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
65 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
66 You can enable universal binaries by specifying the "--enable-universalsdk" |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
67 flag to configure:: |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
68 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
69 $ ./configure --enable-universalsdk |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
70 $ make |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
71 $ make install |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
72 |
|
75792
3decf67e1a28
Issue #14346: Fix some typos in the Mac/README file.
Ned Deily <nad@acm.org>
parents:
68256
diff
changeset
|
73 This flag can be used with a framework build of python, but also with a classic |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
74 unix build. Either way you will have to build python on Mac OS X 10.4 (or later) |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
75 with Xcode 2.1 (or later). You also have to install the 10.4u SDK when |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
76 installing Xcode. |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
77 |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
78 The option ``--enable-universalsdk`` has an optional argument to specify an |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
79 SDK, which defaults to the 10.4u SDK. When you build on OSX 10.5 or later |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
80 you can use the system headers instead of an SDK:: |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
81 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
82 $ ./configure --enable-universalsdk=/ |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
83 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
84 2.1 Flavours of universal binaries |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
85 .................................. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
86 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
87 It is possible to build a number of flavours of the universal binary build, |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
88 the default is a 32-bit only binary (i386 and ppc). The flavour can be |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
89 specified using the option ``--with-universal-archs=VALUE``. The following |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
90 values are available: |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
91 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
92 * ``32-bit``: ``ppc``, ``i386`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
93 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
94 * ``64-bit``: ``ppc64``, ``x86_64`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
95 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
96 * ``all``: ``ppc``, ``ppc64``, ``i386``, ``x86_64`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
97 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
98 * ``3-way``: ``ppc``, ``i386`` and ``x86_64`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
99 |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
100 * ``intel``: ``i386``, ``x86_64`` |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
101 |
|
57913
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
102 To build a universal binary that includes a 64-bit architecture, you must build |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
103 on a system running OSX 10.5 or later. The ``all`` flavour can only be built on |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
104 OSX 10.5. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
105 |
|
57913
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
106 The makefile for a framework build will install ``python32`` and ``pythonw32`` |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
107 binaries when the universal architecures includes at least one 32-bit architecture |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
108 (that is, for all flavours but ``64-bit``). |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
109 |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
110 Running a specific archicture |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
111 ............................. |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
112 |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
113 You can run code using a specific architecture using the ``arch`` command:: |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
114 |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
115 $ arch -i386 python |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
116 |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
117 Or to explicitly run in 32-bit mode, regardless of the machine hardware:: |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
118 |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
119 $ arch -i386 -ppc python |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
120 |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
121 NOTE: When you're using a framework install of Python this requires at least |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
122 Python 2.7 or 3.2, in earlier versions the python (and pythonw) commands are |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
123 wrapper tools that execute the real interpreter without ensuring that the |
|
aaeb65bab3c0
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56283
diff
changeset
|
124 real interpreter runs with the same architecture. |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
125 |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
126 Building and using a framework-based Python on Mac OS X. |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
127 ======================================================== |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
128 |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
129 |
|
34112
1d04936a6456
Very minor grammatical fix and removal of a tab.
Brett Cannon <bcannon@gmail.com>
parents:
32700
diff
changeset
|
130 1. Why would I want a framework Python instead of a normal static Python? |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
131 -------------------------------------------------------------------------- |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
132 |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
133 The main reason is because you want to create GUI programs in Python. With the |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
134 exception of X11/XDarwin-based GUI toolkits all GUI programs need to be run |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
135 from a fullblown MacOSX application (a ".app" bundle). |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
136 |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
137 While it is technically possible to create a .app without using frameworks you |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
138 will have to do the work yourself if you really want this. |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
139 |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
140 A second reason for using frameworks is that they put Python-related items in |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
141 only two places: "/Library/Framework/Python.framework" and |
|
39798
1eebb647310f
Fix a glaring error and update some version numbers.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
142 "/Applications/MacPython 2.6". This simplifies matters for users installing |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
143 Python from a binary distribution if they want to get rid of it again. Moreover, |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
144 due to the way frameworks work a user without admin privileges can install a |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
145 binary distribution in his or her home directory without recompilation. |
| 29558 | 146 |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
147 2. How does a framework Python differ from a normal static Python? |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
148 ------------------------------------------------------------------ |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
149 |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
150 In everyday use there is no difference, except that things are stored in |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
151 a different place. If you look in /Library/Frameworks/Python.framework |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
152 you will see lots of relative symlinks, see the Apple documentation for |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
153 details. If you are used to a normal unix Python file layout go down to |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
154 Versions/Current and you will see the familiar bin and lib directories. |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
155 |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
156 3. Do I need extra packages? |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
157 ---------------------------- |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
158 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
159 Yes, probably. If you want Tkinter support you need to get the OSX AquaTk |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
160 distribution, this is installed by default on Mac OS X 10.4 or later. If |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
161 you want wxPython you need to get that. If you want Cocoa you need to get |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
162 PyObjC. |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
163 |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
164 4. How do I build a framework Python? |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
165 ------------------------------------- |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
166 |
|
24480
03d85d197052
Added one call to Py_Main(), for OSX framework builds only, that will get the
Jack Jansen <jack.jansen@cwi.nl>
parents:
21323
diff
changeset
|
167 This directory contains a Makefile that will create a couple of python-related |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
168 applications (fullblown OSX .app applications, that is) in |
|
39798
1eebb647310f
Fix a glaring error and update some version numbers.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
169 "/Applications/MacPython 2.6", and a hidden helper application Python.app |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
170 inside the Python.framework, and unix tools "python" and "pythonw" into |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
171 /usr/local/bin. In addition it has a target "installmacsubtree" that installs |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
172 the relevant portions of the Mac subtree into the Python.framework. |
|
19774
c5523b0f89d5
Minimal instructions for using the Makefile here. Also a clear
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
173 |
|
24480
03d85d197052
Added one call to Py_Main(), for OSX framework builds only, that will get the
Jack Jansen <jack.jansen@cwi.nl>
parents:
21323
diff
changeset
|
174 It is normally invoked indirectly through the main Makefile, as the last step |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
175 in the sequence:: |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
176 |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
177 $ ./configure --enable-framework |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
178 $ make |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
179 $ make install |
|
24769
0afacf5dc42e
Updated for the current state of affairs.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24507
diff
changeset
|
180 |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
181 This sequence will put the framework in /Library/Framework/Python.framework, |
|
39798
1eebb647310f
Fix a glaring error and update some version numbers.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
182 the applications in "/Applications/MacPython 2.6" and the unix tools in |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
183 /usr/local/bin. |
|
24769
0afacf5dc42e
Updated for the current state of affairs.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24507
diff
changeset
|
184 |
|
56283
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
185 It is possible to select a different name for the framework using the configure |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
186 option ``--with-framework-name=NAME``. This makes it possible to have several |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
187 parallel installs of a Python framework. |
|
986709c24531
Merged revisions 75131 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39798
diff
changeset
|
188 |
| 29558 | 189 Installing in another place, for instance $HOME/Library/Frameworks if you have |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
190 no admin privileges on your machine, has only been tested very lightly. This |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
191 can be done by configuring with --enable-framework=$HOME/Library/Frameworks. |
|
39798
1eebb647310f
Fix a glaring error and update some version numbers.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
192 The other two directories, "/Applications/MacPython-2.6" and /usr/local/bin, |
|
39797
cf9d3b38251f
Remove one glaring error and update several version numbers.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
193 will then also be deposited in $HOME. This is sub-optimal for the unix tools, |
|
cf9d3b38251f
Remove one glaring error and update several version numbers.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
194 which you would want in $HOME/bin, but there is no easy way to fix this right |
|
cf9d3b38251f
Remove one glaring error and update several version numbers.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
195 now. |
|
24769
0afacf5dc42e
Updated for the current state of affairs.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24507
diff
changeset
|
196 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
197 What do all these programs do? |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
198 =============================== |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
199 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
200 "IDLE.app" is an integrated development environment for Python: editor, |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
201 debugger, etc. |
|
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
202 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
203 "PythonLauncher.app" is a helper application that will handle things when you |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
204 double-click a .py, .pyc or .pyw file. For the first two it creates a Terminal |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
205 window and runs the scripts with the normal command-line Python. For the |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
206 latter it runs the script in the Python.app interpreter so the script can do |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
207 GUI-things. Keep the "alt" key depressed while dragging or double-clicking a |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
208 script to set runtime options. These options can be set once and for all |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
209 through PythonLauncher's preferences dialog. |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
210 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
211 "BuildApplet.app" creates an applet from a Python script. Drop the script on it |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
212 and out comes a full-featured MacOS application. There is much more to this, |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
213 to be supplied later. Some useful (but outdated) info can be found in |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
214 Mac/Demo. |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
215 |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
216 The commandline scripts /usr/local/bin/python and pythonw can be used to run |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
217 non-GUI and GUI python scripts from the command line, respectively. |
|
24507
dfe5a689979b
Added a lot more information on framework builds, the various .app's,
Jack Jansen <jack.jansen@cwi.nl>
parents:
24480
diff
changeset
|
218 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
219 How do I create a binary distribution? |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
220 ====================================== |
|
25146
0e2366879289
Started on documentation for building a MacOSX binary installer.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24769
diff
changeset
|
221 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
222 Go to the directory "Mac/OSX/BuildScript". There you'll find a script |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
223 "build-installer.py" that does all the work. This will download and build |
|
75792
3decf67e1a28
Issue #14346: Fix some typos in the Mac/README file.
Ned Deily <nad@acm.org>
parents:
68256
diff
changeset
|
224 a number of 3rd-party libaries, configures and builds a framework Python, |
|
3decf67e1a28
Issue #14346: Fix some typos in the Mac/README file.
Ned Deily <nad@acm.org>
parents:
68256
diff
changeset
|
225 installs it, creates the installer package files and then packs this in a |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
226 DMG image. |
|
32700
0729d1db5118
- Added a note about fixversions.py
Jack Jansen <jack.jansen@cwi.nl>
parents:
29558
diff
changeset
|
227 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
228 The script will build a universal binary, you'll therefore have to run this |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
229 script on Mac OS X 10.4 or later and with Xcode 2.1 or later installed. |
|
25146
0e2366879289
Started on documentation for building a MacOSX binary installer.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24769
diff
changeset
|
230 |
| 29558 | 231 All of this is normally done completely isolated in /tmp/_py, so it does not |
| 232 use your normal build directory nor does it install into /. | |
|
25146
0e2366879289
Started on documentation for building a MacOSX binary installer.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24769
diff
changeset
|
233 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
234 Because of the way the script locates the files it needs you have to run it |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
235 from within the BuildScript directory. The script accepts a number of |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
236 command-line arguments, run it with --help for more information. |
|
25146
0e2366879289
Started on documentation for building a MacOSX binary installer.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24769
diff
changeset
|
237 |
|
58387
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
238 Configure warnings |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
239 ================== |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
240 |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
241 The configure script sometimes emits warnings like the one below:: |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
242 |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
243 configure: WARNING: libintl.h: present but cannot be compiled |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
244 configure: WARNING: libintl.h: check for missing prerequisite headers? |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
245 configure: WARNING: libintl.h: see the Autoconf documentation |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
246 configure: WARNING: libintl.h: section "Present But Cannot Be Compiled" |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
247 configure: WARNING: libintl.h: proceeding with the preprocessor's result |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
248 configure: WARNING: libintl.h: in the future, the compiler will take precedence |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
249 configure: WARNING: ## -------------------------------------- ## |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
250 configure: WARNING: ## Report this to http://bugs.python.org/ ## |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
251 configure: WARNING: ## -------------------------------------- ## |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
252 |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
253 This almost always means you are trying to build a universal binary for |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
254 Python and have libaries in ``/usr/local`` that don't contain the required |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
255 architectures. Temporarily move ``/usr/local`` aside to finish the build. |
|
df020079e288
Add text to Mac/README to warn about non-universal libraries when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
57913
diff
changeset
|
256 |
|
61124
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
257 |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
258 Uninstalling a framework install, including the binary installer |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
259 ================================================================ |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
260 |
|
75792
3decf67e1a28
Issue #14346: Fix some typos in the Mac/README file.
Ned Deily <nad@acm.org>
parents:
68256
diff
changeset
|
261 Uninstalling a framework can be done by manually removing all bits that got installed. |
|
3decf67e1a28
Issue #14346: Fix some typos in the Mac/README file.
Ned Deily <nad@acm.org>
parents:
68256
diff
changeset
|
262 That's true for both installations from source and installations using the binary installer. |
|
61124
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
263 Sadly enough OSX does not have a central uninstaller. |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
264 |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
265 The main bit of a framework install is the framework itself, installed in |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
266 ``/Library/Frameworks/Python.framework``. This can contain multiple versions |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
267 of Python, if you want to remove just one version you have to remove the |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
268 version-specific subdirectory: ``/Library/Frameworks/Python.framework/Versions/X.Y``. |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
269 If you do that, ensure that ``/Library/Frameworks/Python.framework/Versions/Current`` |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
270 is a symlink that points to an installed version of Python. |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
271 |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
272 A framework install also installs some applications in ``/Applications/Python X.Y``, |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
273 |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
274 And lastly a framework installation installs files in ``/usr/local/bin``, all of |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
275 them symbolic links to files in ``/Library/Frameworks/Python.framework/Versions/X.Y/bin``. |
|
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
276 |
|
38354
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
277 Odds and ends |
|
957727f2ff09
- Remove previous version of the binary distribution script for OSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
34112
diff
changeset
|
278 ============= |
|
19852
5e79bed3426f
Added a note about making sure the Lac/Lib directory is in sys.path.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19774
diff
changeset
|
279 |
|
25149
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
280 Something to take note of is that the ".rsrc" files in the distribution are |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
281 not actually resource files, they're AppleSingle encoded resource files. The |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
282 macresource module and the Mac/OSX/Makefile cater for this, and create |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
283 ".rsrc.df.rsrc" files on the fly that are normal datafork-based resource |
|
10f9888853cc
Fixed a typo in the binary install notes
Jack Jansen <jack.jansen@cwi.nl>
parents:
25146
diff
changeset
|
284 files. |
|
19774
c5523b0f89d5
Minimal instructions for using the Makefile here. Also a clear
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
285 |
|
34112
1d04936a6456
Very minor grammatical fix and removal of a tab.
Brett Cannon <bcannon@gmail.com>
parents:
32700
diff
changeset
|
286 Jack Jansen, Jack.Jansen@cwi.nl, 15-Jul-2004. |
|
61124
00ac4688cdcd
Merged revisions 80657 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
59487
diff
changeset
|
287 Ronald Oussoren, RonaldOussoren@mac.com, 30-April-2010 |
