Changeset 1143:1a3ef9702843

Show
Ignore:
Timestamp:
04/01/08 21:08:04 (9 months ago)
Author:
Nate Coraor <nate@bx.psu.edu>
branch:
default
convert_revision:
svn:9bcadc22-80f8-0310-8a53-c8f022958886/galaxy/trunk@2502
Message:

Updates for Python 2.5 compatibility.

phastOdds was using numarray, test passes with numpy. Not really a
requirement for py2.5, but it was the only tool not using numpy.

cElementTree is part of the standard distribution in py2.5, updated
megablast xml parser accordingly.

Need simplejson > 1.4 for py2.5 - all tests pass w/ 1.5.

The only showstopper now is Cheetah...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eggs.ini

    r1132 r1143  
    3333PasteScript = 1.3.6 http://cheeseshop.python.org/packages/source/P/PasteScript/PasteScript-1.3.6.tar.gz 
    3434Routes = 1.6.3 http://pypi.python.org/packages/source/R/Routes/Routes-1.6.3.tar.gz 
    35 simplejson = 1.4 http://cheeseshop.python.org/packages/source/s/simplejson/simplejson-1.4.tar.gz 
     35simplejson = 1.5 http://cheeseshop.python.org/packages/source/s/simplejson/simplejson-1.5.tar.gz 
    3636SQLAlchemy = 0.3.11 http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.3.11.tar.gz 
    3737Tempita = 0.1 http://pypi.python.org/packages/source/T/Tempita/Tempita-0.1.tar.gz 
  • nosetests.sh

    r1125 r1143  
    55 
    66pyver=`$GALAXY_PYTHON -c 'import sys; print sys.version[:3]'` 
    7 export PYTHONPATH=$PYTHONPATH:eggs/py$pyver-noplatform/NoseHTML-0.2-py$pyver.egg 
     7PYTHONPATH=$PYTHONPATH:eggs/py$pyver-noplatform/NoseHTML-0.2-py$pyver.egg 
     8export PYTHONPATH 
    89 
    910$GALAXY_PYTHON ./scripts/nosetests.py $@ 
  • tools/extract/phastOdds/get_scores_galaxy.py

    r1129 r1143  
    99 
    1010import sys 
    11 from numarray import * 
    12 from numarray.ieeespecial import * 
     11from numpy import * 
    1312from tables import * 
    1413 
     
    1716 
    1817from bx import intervals 
     18 
     19# ignore wanrnings about NumArray flavor 
     20from warnings import filterwarnings 
     21from tables.exceptions import FlavorWarning 
     22filterwarnings("ignore", category=FlavorWarning) 
    1923 
    2024assert sys.version_info[:2] >= ( 2, 4 ) 
  • tools/metag_tools/megablast_xml_parser.py

    r1107 r1143  
    11#! /usr/bin/python 
    22     
    3 import cElementTree  
    43import sys, os 
     4if float( sys.version[:3] ) >= 2.5: 
     5    import xml.etree.cElementTree as cElementTree 
     6else: 
     7    import cElementTree  
    58 
    69def parse_megablast_xml_output(infile_name,outfile_name):