Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdf427f

Browse files
committed
Updated the notes on building a binary installer.
1 parent 997429a commit fdf427f

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

Mac/OSX/README

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,28 @@ there, run
127127
This installs a complete distribution set in /tmp/pythondist: in a framework
128128
build all other pathnames are computed from the framework pathname.
129129

130+
Optionally you may want to include the full documentation in the binary installer.
131+
To this end, execute the following commands:
132+
python.exe ../Mac/OSX/setupDocs.py build
133+
python.exe ../Mac/OSX/setupDocs.py install \
134+
--prefix=/tmp/python/Library/Frameworks/Python.framework/Versions/Current
135+
130136
Note that the unix tools in /tmp/pythondist are wrong, these have to be
131137
removed, and the installer post-install script should recreate them on the
132138
target system. Also, the .pyc and .pyo files need to be removed:
133139
rm -rf /tmp/pythondist/usr
134140
python.exe ../Mac/script/zappycfiles.py /tmp/pythondist
135141

136-
TBD: find out how to make a .pkg from here.
142+
Finally, create the .pkg file with a commandline like
143+
python ../Mac/scripts/buildpkg.py \
144+
--Title=MacPython-X \
145+
--Version=2.3a0 \
146+
--Description="Python for Mac OS X, framework based" \
147+
/tmp/pythondist
148+
This creates a MacPython-X.pkg in the current directory.
137149

138-
TBD: documentation.
150+
TBD: provide postinstall scripts to precompile .pyc/.pyo files, and to recreate
151+
the unix programs.
139152

140153
7. Odds and ends.
141154
-----------------

0 commit comments

Comments
 (0)