home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Contrib / NeXT / Python.post_install.in < prev    next >
Encoding:
Text File  |  1997-01-17  |  533 b   |  20 lines

  1. #!/bin/sh
  2.  
  3. PACKAGE=$1
  4. INSTALLDIR=$2
  5.  
  6. echo
  7. librarydir=$INSTALLDIR/lib/python@PYTHON_VERSION@
  8. # The package does not include the compiled scripts, so compile them now.
  9. echo "    Compiling the Python Library Scripts in $librarydir ... "
  10. $INSTALLDIR/bin/python -c "import compileall; compileall.compile_dir ('$librarydir', 3)"
  11.  
  12. echo
  13. includedir=$INSTALLDIR/include/python@PYTHON_VERSION@
  14. cd $includedir
  15. echo "    Precompiling the Python.h header file ... "
  16. cc @OPT@ -precomp -I$librarydir/config -I$includedir Python.h
  17.  
  18. echo "OK."
  19. exit 0
  20.