#!/bin/sh #---------------------------------------------------------------------- # Create the unix tools and compile the .py files after Python has been # installed. #---------------------------------------------------------------------- PYVER=2.3 PKG=$1 DEST=$2 # Make sure things are group-writeable umask 2 # if destination is / then use usr/local/bin, otherwise just bin if [ "$DEST" = "/" ]; then TOOLDIR=/usr/local/bin DEST= else TOOLDIR=$DEST/bin fi # Make sure the dir exists mkdir -p $TOOLDIR # Make some links to the python executable ln -fsh $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python $TOOLDIR/python$PYVER ln -fsh python$PYVER $TOOLDIR/python # make the pythonw script rm -f $TOOLDIR/pythonw$PYVER cat > $TOOLDIR/pythonw$PYVER <