commit/galaxy-central: dan: Use check_python() to verify python version in set_metadata.py instead of hardcoded minimum version check.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/4b62ed46e5b6/ changeset: 4b62ed46e5b6 user: dan date: 2012-11-07 16:35:56 summary: Use check_python() to verify python version in set_metadata.py instead of hardcoded minimum version check. affected #: 1 file diff -r 4ce18911037cc4297a84dfcfe81f36ccac98d425 -r 4b62ed46e5b6f5448ec262e445eefd0b17ef4898 scripts/set_metadata.py --- a/scripts/set_metadata.py +++ b/scripts/set_metadata.py @@ -11,7 +11,12 @@ log = logging.getLogger( __name__ ) import os, sys, cPickle -assert sys.version_info[:2] >= ( 2, 4 ) +# ensure supported version +from check_python import check_python +try: + check_python() +except: + sys.exit(1) new_path = [ os.path.join( os.getcwd(), "lib" ) ] new_path.extend( sys.path[1:] ) # remove scripts/ from the path Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket