Changeset 1031

Show
Ignore:
Timestamp:
09/17/08 10:01:48 (5 years ago)
Author:
elemoine
Message:

make the Map Fish? deploy script check out setuptools and install it in the virtual env, this is to workaround a nasty bug in setuptools (the now famous "Name Error?: global name 'log' is not defined")

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/camptocamp/MapFishUnhcr/deploy/deploy.sh

    r977 r1031  
    4242SVN="svn -q" 
    4343PYTHON_ENV=$BASE/env 
     44SETUPTOOLS_SVN="http://svn.python.org/projects/sandbox/branches/setuptools-0.6" 
    4445 
    4546# 
     
    6364    rm -rf $PYTHON_ENV 
    6465    mkdir $PYTHON_ENV 
    65     (cd $PYTHON_ENV && wget http://svn.colorstudy.com/virtualenv/trunk/virtualenv.py) 
    66     (cd $PYTHON_ENV && python virtualenv.py .) 
    67     # don't ask me why but the installation of Pylons is broken through setup.py  
    68     # with Python 2.4, as a workaround Pylons is installed upfront using easy_install 
    69     # I hate that... 
    70     $PYTHON_ENV/bin/easy_install 'Pylons<=0.9.6.99' 
     66    (cd $PYTHON_ENV && \ 
     67     wget http://svn.colorstudy.com/virtualenv/trunk/virtualenv.py && \ 
     68     python virtualenv.py .) 
     69 
     70    echo "Installting setuptools in $PYTHON_ENV" 
     71 
     72    rm -rf $PYTHON_ENV/setuptools 
     73    (cd $PYTHON_ENV && \ 
     74     $SVN co $SETUPTOOLS_SVN setuptools && \ 
     75     cd setuptools && \ 
     76     $PYTHON_ENV/bin/python setup.py install) 
    7177} 
    7278