Python @VERSION@ for Mac OS X 10.4 Tiger (@ARCHNAME@)

Python @VERSION@, the current release of Python @MINOR@, built for Mac OS X
@IF ppc@
10.4 on PowerPC Macs: G3, G4 and G5. It installs where python.org's
installers put Python on a Mac:
@END@
@IF i386@
10.4 on Intel Macs. (Another package is for PowerPC Macs: G3, G4 and G5.)
It installs where python.org's installers put Python on a Mac:
@END@

  /Library/Frameworks/Python.framework/Versions/@MINOR@
      Python, its standard library and pip
  /usr/local/bin
      python3, pip3, pydoc3, 2to3 and python3-config,
      and their @MINOR@ forms
  /Applications/Python @MINOR@
      this Read Me, the licenses, Update Shell Profile.command

Using it

The installer adds the framework's bin folder to the PATH in your shell
profile (~/.bash_profile for bash, the shell Tiger gives new accounts) and
keeps the old profile beside it as .pysave. Open a new Terminal window, then:

  python3 --version
  python3 -m pip install <package>

If you installed from the command line as another user, or changed shells,
run Update Shell Profile.command in /Applications/Python @MINOR@ again.

What is in it

- The whole standard library but tkinter: Python @MINOR@ needs Tcl/Tk 8.5.12,
  and Tiger has 8.4. So there is no IDLE either. threading.get_native_id()
  is missing too: Tiger has no thread ID that is unique system-wide.
- HTTPS with TLS 1.3, which Tiger's own software cannot do. The ssl and
  hashlib modules use OpenSSL @OPENSSL@. Python and pip check each server
  against Mozilla's list of the authorities to trust, which the Root
  certificates package puts in /usr/local/etc/ssl/cert.pem. Install that
  package before Python: the Installer stops if it is not there. Tiger
  Packages installs it with Python, and offers each new list as an update.
  OpenSSL reads the file through the link
  Python.framework/Versions/@MINOR@/etc/openssl/cert.pem, and pip through
  the cert line in Python.framework/Versions/@MINOR@/pip.conf.
- Linked in: SQLite @SQLITE@, zlib @ZLIB@, bzip2 @BZIP2@, xz @XZ@, libffi
  @LIBFFI@ (for ctypes), ncurses @NCURSES@ and GNU Readline @READLINE@.
  Nothing outside Mac OS X itself is needed.
@IF ppc@
- pip @PIP@. It installs pure-Python packages from PyPI. PyPI has no
  ready-made packages with C code for PowerPC Macs, so pip builds those from
  source on your Mac. With the GCC 13 package from tiger.v2core.com
  installed, it builds them with GCC 13 (/opt/gcc13), which compiles the
  C11 and C++11 code of today's packages; without it, with Xcode 2.5's
  gcc 4.0.1, if Xcode is installed. Python looks for GCC 13 each time, so
  installing it later is enough. CC in the environment names another.
@END@
@IF i386@
- pip @PIP@. It installs pure-Python packages from PyPI. PyPI has no
  ready-made packages with C code for Tiger on Intel (32-bit, 10.4), so pip
  builds those from source on your Mac. With the GCC 13 package from
  tiger.v2core.com installed, it builds them with GCC 13 (/opt/gcc13), which
  compiles the C11 and C++11 code of today's packages; without it, with
  Xcode 2.5's gcc 4.0.1, if Xcode is installed. Python looks for GCC 13 each
  time, so installing it later is enough. CC in the environment names
  another.
@END@

Uninstalling

In Terminal:

  sudo rm -rf /Library/Frameworks/Python.framework/Versions/@MINOR@
  sudo rm -rf "/Applications/Python @MINOR@"
  cd /usr/local/bin
  sudo rm -f python3 python@MINOR@ pip3 pip@MINOR@ pydoc3 pydoc@MINOR@
  sudo rm -f 2to3 2to3-@MINOR@ python3-config python@MINOR@-config

Then take the "Setting PATH for Python @MINOR@" lines out of your shell
profile. If no other version is left in /Library/Frameworks/Python.framework,
remove that folder too. The root certificates stay: other programs use them
too.

How it was made

@IF ppc@
Python and the libraries were cross-compiled on Linux with GCC 13.4 for
powerpc-apple-darwin8, against the Mac OS X 10.4u SDK, for any G3 and up.
Nine small patches to Python let it cross-compile for Darwin and fit what
Tiger lacks or does its own way: printf there prints %zd unsigned,
ttyname_r is the old draft one, fstat fails on a pipe whose reader has gone,
and there is no copyfile(3) and no system-wide thread ID. On PowerPC a long
double is 16 bytes and a bool 4, and libffi wants the arrays of a structure
spelled out. Every program and library was checked to load on 10.4: no 10.5
load commands, nothing that needs a G4, and every symbol there on Tiger. The
package and this disk image were made on Mac OS X 10.4.11 with its own
mkbom, pax and hdiutil.
@END@
@IF i386@
Python and the libraries were cross-compiled on Linux with GCC 13.4 for
i686-apple-darwin8, against the Mac OS X 10.4u SDK, for any Intel Mac (SSE3).
Ten small patches to Python let it cross-compile for Darwin and fit what
Tiger lacks or does its own way (three of them matter on PowerPC only):
printf there prints %zd unsigned, ttyname_r is the old draft one, fstat
fails on a pipe whose reader has gone, nextafter on Intel gives -0.0 where
+0.0 is right, and there is no copyfile(3) and no system-wide thread ID. One
patch to libffi returns a structure of 1, 2, 4 or 8 bytes in registers, as
Mac OS X on Intel does, for ctypes. Every program and library was checked to
load on 10.4: no 10.5 load commands, nothing for a newer processor than the
first Intel Macs had, and every symbol there on Tiger. The package and this
disk image were made on Mac OS X 10.4.11 with its own mkbom, pax and hdiutil.
@END@

Everything it was built from (Python's and the libraries' source, the patches
and the build scripts) is in Python-@PKGVERSION@-tiger-source.tar.gz, beside
this disk image.

Built @DATE@.
