home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- PACKAGE=$1
- INSTALLDIR=$2
-
- echo
- librarydir=$INSTALLDIR/lib/python@PYTHON_VERSION@
- # The package does not include the compiled scripts, so compile them now.
- echo " Compiling the Python Library Scripts in $librarydir ... "
- $INSTALLDIR/bin/python -c "import compileall; compileall.compile_dir ('$librarydir', 3)"
-
- echo
- includedir=$INSTALLDIR/include/python@PYTHON_VERSION@
- cd $includedir
- echo " Precompiling the Python.h header file ... "
- cc @OPT@ -precomp -I$librarydir/config -I$includedir Python.h
-
- echo "OK."
- exit 0
-