File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """This script will install matplotlib to a virtual environment to
2+ faciltate testing."""
3+ import shutil , os , sys
4+ from subprocess import Popen , PIPE , STDOUT
5+
6+ from _buildbot_util import check_call
7+
8+ TARGET = 'PYmpl'
9+
10+ if os .path .exists (TARGET ):
11+ shutil .rmtree (TARGET )
12+
13+ check_call ('virtualenv %s' % (TARGET ,))
14+ TARGET_py = os .path .join (TARGET ,'bin' ,'python' )
15+ check_call ('%s setup.py install' % TARGET_py )
Original file line number Diff line number Diff line change 1+ """This script will install matplotlib to a virtual environment to
2+ faciltate testing."""
3+ import shutil , os , sys
4+ from subprocess import Popen , PIPE , STDOUT
5+
6+ from _buildbot_util import check_call
7+
8+ TARGET = os .path .abspath ('PYmpl' )
9+
10+ if not os .path .exists (TARGET ):
11+ raise RuntimeError ('the virtualenv target directory was not found' )
12+
13+ TARGET_py = os .path .join (TARGET ,'bin' ,'python' )
14+ check_call ('%s run-mpl-test.py --all' % TARGET_py ,
15+ cwd = 'test' )
Original file line number Diff line number Diff line change 1+ """Module to help _buildbot_*.py scripts."""
2+
3+ import shutil , os , sys
4+ from subprocess import Popen , PIPE , STDOUT
5+
6+ def check_call (args ,** kwargs ):
7+ # print
8+ # print args
9+ # print '**kwargs'
10+ # print kwargs
11+ # print
12+
13+ # This use of Popen is copied from matplotlib.texmanager (Use of
14+ # close_fds seems a bit mysterious.)
15+
16+ p = Popen (args , shell = True ,
17+ close_fds = (sys .platform != 'win32' ),** kwargs )
18+ p .wait ()
19+ if p .returncode != 0 :
20+ raise RuntimeError ('returncode is %s' % p .returncode )
You can’t perform that action at this time.
0 commit comments