@@ -106,7 +106,34 @@ be supplied later. Some useful (but outdated) info can be found in Mac/Demo.
106106The commandline scripts /usr/local/bin/python and pythonw
107107can be used to run non-GUI and GUI python scripts from the command line, respectively.
108108
109- 6. Odds and ends.
109+ 6. How do I create a binary distribution?
110+ -----------------------------------------
111+
112+ Note: this section is work-in-progress.
113+
114+ First, to make sure there's no contamination, it is best to remove your existing Python
115+ installation (clear out /Library/Frameworks/Python.framework and /Applications/Python).
116+ Also, after build/install is finished check that nothing has shown up in those two locations.
117+
118+ Create a subdirectory of the main python directory, say build-pythondist. In there, run
119+ ../configure --enable-framework=/tmp/pythondist/Library/Frameworks/Python.framework \
120+ LDFLAGS=-Wl,-x
121+ make
122+ make frameworkinstall
123+ This installs a complete distribution set in /tmp/pythondist: in a framework build all other
124+ pathnames are computed from the framework pathname.
125+
126+ Note that the unix tools in /tmp/pythondist are wrong, these have to be removed, and the
127+ installer post-install script should recreate them on the target system. Also, the .pyc and
128+ .pyo files need to be removed:
129+ rm -rf /tmp/pythondist/usr
130+ python.exe ../Mac/script/zappycfiles.py /tmp/pythondist
131+
132+ TBD: find out how to make a .pkg from here.
133+
134+ TBD: documentation.
135+
136+ 7. Odds and ends.
110137-----------------
111138
112139The PythonLauncher is actually an Objective C Cocoa app built with Project Builder.
0 commit comments