Ignore:
Timestamp:
10/17/08 22:28:53 (6 years ago)
Author:
wehart
Message:

Rework of Python installation. Instead of relying on Python to do installation
of scripts, we build an explicit wrapper script that hard-codes the
PYTHONPATH needed for the temporary installation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • acro-root/trunk/bootstrap/packages/Makefile.am

    r5622 r5625  
    7373           if test -d $$dir;  then \ 
    7474              cd $$dir;\ 
    75               export PYTHONPATH=`pwd`/../../python; python setup.py -q install --install-lib=../../python --install-scripts=../../bin;\ 
     75              export PYTHONPATH=`pwd`/../../python; python setup.py -q install --install-lib=../../python ; \ 
     76              if [ -d scripts ] ; then\ 
     77                 cd scripts; \ 
     78                 pwd=`pwd`;\ 
     79                 for i in `ls *` ; do\ 
     80                  if [ ! -f $$pwd/../../../bin/$$i ] ; then\ 
     81                     echo "Creating wrapper for Python script $$i" ;\ 
     82                     echo "#!/bin/sh" > $$pwd/../../../bin/$$i;\ 
     83                     echo "export PYTHONTPATH=$$pwd/../../python" >> $$pwd/../../../bin/$$i; \ 
     84                     echo "$$pwd/$$i $$"'*' >> $$pwd/../../../bin/$$i;\ 
     85                  fi;\ 
     86                 done;\ 
     87                 cd ..;\ 
     88              fi;\ 
     89              cd ..;\ 
    7690           fi;\ 
    7791        done 
Note: See TracChangeset for help on using the changeset viewer.