Revision: 7615 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7615&view=rev Author: astraw Date: 2009-08-31 16:48:46 +0000 (Mon, 31 Aug 2009)
Log Message: ----------- buildbot: allow passing arguments to select virtualenv and nose This is useful for getting the buildbot to run Python2.4. Modified Paths: -------------- trunk/matplotlib/test/_buildbot_install.py Modified: trunk/matplotlib/test/_buildbot_install.py =================================================================== --- trunk/matplotlib/test/_buildbot_install.py 2009-08-31 15:31:46 UTC (rev 7614) +++ trunk/matplotlib/test/_buildbot_install.py 2009-08-31 16:48:46 UTC (rev 7615) @@ -2,9 +2,21 @@ faciltate testing.""" import shutil, os, sys from subprocess import Popen, PIPE, STDOUT +from optparse import OptionParser from _buildbot_util import check_call +usage = """%prog [options]""" +parser = OptionParser(usage) +parser.add_option('--virtualenv',type='string',default='virtualenv', + help='string to invoke virtualenv') +parser.add_option('--easy-install-nose',action='store_true',default=False, + help='run "easy_install nose" in the virtualenv') +(options, args) = parser.parse_args() +if len(args)!=0: + parser.print_help() + sys.exit(0) + TARGET='PYmpl' if os.path.exists(TARGET): @@ -15,6 +27,10 @@ if os.path.exists(build_path): shutil.rmtree(build_path) -check_call('virtualenv %s'%(TARGET,)) +check_call('%s %s'%(options.virtualenv,TARGET)) TARGET_py = os.path.join(TARGET,'bin','python') +TARGET_easy_install = os.path.join(TARGET,'bin','easy_install') + +if options.easy_install_nose: + check_call('%s nose'%TARGET_easy_install) check_call('%s setup.py install'%TARGET_py) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins