@@ -50,7 +50,8 @@ information.
5050
5151This directory contains a Makefile that will create a couple of python-related
5252applications (fullblown OSX .app applications, that is) in /Applications/Python,
53- and a hidden helper application Python.app inside the Python.framework. In addition
53+ and a hidden helper application Python.app inside the Python.framework, and
54+ unix tools "python" and "pythonw" into /usr/local/bin. In addition
5455it has a target "installmacsubtree" that installs the relevant portions of the
5556Mac subtree into the Python.framework.
5657
@@ -59,13 +60,30 @@ in the sequence
59601. configure --enable-framework
60612. make
61623. make frameworkinstall
62- 4. make osxapps
63- 5. [optional] in Mac/OSX do "make installunixprograms", see below.
6463
65- This sequence will put the framework in /Library/Framework/Python.framework and
66- the applications in /Applications/Python. Building in another place, for instance
67- $HOME/Library/Frameworks if you have no admin privileges on your machine, has only
68- been tested very lightly.
64+ This sequence will put the framework in /Library/Framework/Python.framework,
65+ the applications in /Applications/Python and the unix tools in /usr/local/bin.
66+
67+ Building in another place, for instance $HOME/Library/Frameworks if you have no
68+ admin privileges on your machine, has only been tested very lightly. This can be done
69+ by configuring with --enable-framework=$HOME/Library/Frameworks. The other two
70+ directories, /Applications/Python and /usr/local/bin, will then also be deposited
71+ in $HOME. This is sub-optimal for the unix tools, which you would want in $HOME/bin,
72+ but there is no easy way to fix this right now.
73+
74+ Note that there are no references to the actual locations in the code or resource
75+ files, so you are free to move things around afterwards. For example, you could
76+ use --enable-framework=/tmp/newversion/Library/Frameworks and use /tmp/newversion
77+ as the basis for an installer or something.
78+
79+ If you want to install some part, but not all, read the main Makefile. The
80+ frameworkinstall is composed of a couple of sub-targets that install the framework
81+ itself, the Mac subtree, the applications and the unix tools.
82+
83+ If you want to run the Makefile here directly, in stead of through the main Makefile,
84+ you will have to pass various variable-assignments. Read the beginning of the Makefile
85+ for details.
86+
6987
70885. What do all these programs do?
7189---------------------------------
@@ -85,23 +103,12 @@ BuildApplet.app creates an applet from a Python script. Drop the script on it
85103and out comes a full-featured MacOS application. There is much more to this, to
86104be supplied later. Some useful (but outdated) info can be found in Mac/Demo.
87105
88- If you install the commandline scripts /usr/local/bin/python and pythonw these
106+ The commandline scripts /usr/local/bin/python and pythonw
89107can be used to run non-GUI and GUI python scripts from the command line, respectively.
90108
911096. Odds and ends.
92110-----------------
93111
94- The interesting targets in the makefile are:
95- installmacsubtree - explained above,
96- dontinstallmacsubtree - Put only a .pth file into the framework (pointing to this
97- sourcetree), which may be easier for development,
98- install_all - install all three .app applications,
99- install_Python - install the hidden interpreter .app into the framework,
100- install_PythonLauncher - install the user-visible script launch helper
101- install_IDE - install the IDE
102- installunixprograms - install symlinks/scripts mimicking normal unix Python into
103- /usr/local.
104-
105112The PythonLauncher is actually an Objective C Cocoa app built with Project Builder.
106113It could be a Python program, except for the fact that pyobjc is not a part of
107114the core distribution, and is not completely finished yet as of this writing.
@@ -111,4 +118,4 @@ actually resource files, they're AppleSingle encoded resource files. The macreso
111118module and the Mac/OSX/Makefile cater for this, and create ".rsrc.df.rsrc" files
112119on the fly that are normal datafork-based resource files.
113120
114- Jack Jansen,
[email protected] ,
02 -Aug-02
121+ Jack Jansen,
[email protected] ,
12 -Aug-02
0 commit comments