[hg] galaxy 3463: pbs_python 2.9.8 doesn't work
details: http://www.bx.psu.edu/hg/galaxy/rev/5f6b53b08623 changeset: 3463:5f6b53b08623 user: Nate Coraor <nate@bx.psu.edu> date: Tue Mar 02 12:08:01 2010 -0500 description: pbs_python 2.9.8 doesn't work diffstat: eggs.ini | 2 +- scripts/scramble/scripts/pbs_python.py | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletions(-) diffs (35 lines): diff -r db7ee1dc19c4 -r 5f6b53b08623 eggs.ini --- a/eggs.ini Tue Mar 02 11:52:16 2010 -0500 +++ b/eggs.ini Tue Mar 02 12:08:01 2010 -0500 @@ -16,7 +16,7 @@ Cheetah = 2.2.2 DRMAA_python = 0.2 MySQL_python = 1.2.3c1 -pbs_python = 2.9.8 +pbs_python = 2.9.4 psycopg2 = 2.0.6 pycrypto = 2.0.1 pysam = 0.1.1 diff -r db7ee1dc19c4 -r 5f6b53b08623 scripts/scramble/scripts/pbs_python.py --- a/scripts/scramble/scripts/pbs_python.py Tue Mar 02 11:52:16 2010 -0500 +++ b/scripts/scramble/scripts/pbs_python.py Tue Mar 02 12:08:01 2010 -0500 @@ -22,6 +22,19 @@ # run the config script run( 'sh configure --with-pbsdir=%s' % os.environ['LIBTORQUE_DIR'], os.getcwd(), 'Running pbs_python configure script' ) +# version string in 2.9.4 setup.py is wrong +print "scramble(): Patching setup.py" +if not os.path.exists( 'setup.py.orig' ): + shutil.copyfile( 'setup.py', 'setup.py.orig' ) + i = open( 'setup.py.orig', 'r' ) + o = open( 'setup.py', 'w' ) + for line in i.readlines(): + if line == " version = '2.9.0',\n": + line = " version = '2.9.4',\n" + print >>o, line, +i.close() +o.close() + # reset args for distutils me = sys.argv[0] sys.argv = [ me ]
participants (1)
-
Greg Von Kuster