Changeset fb8810c in flex_extract.git for python/install.py


Ignore:
Timestamp:
Nov 28, 2018, 4:36:11 PM (5 years ago)
Author:
anphi <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
ced5d27
Parents:
a9c7f3e
Message:

changed version string from 7.0.3 to 7.0.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/install.py

    re18f4b5 rfb8810c  
    106106                data='##PBS -o /scratch/ms/'+c.ecgid+'/'+c.ecuid+'flex_ecmwf.$Jobname.$Job_ID.out'
    107107            if  'export PATH=${PATH}:' in data:
    108                 data+=c.ec_flexpart_root_scripts+'/flex_extract_v7.0.3/python'
     108                data+=c.ec_flexpart_root_scripts+'/flex_extract_v7.0.4/python'
    109109
    110110            if 'cat>>' in data or 'cat >>' in data:
     
    137137            if os.path.abspath(ecd)!=os.path.abspath(c.flexpart_root_scripts):
    138138                os.chdir('/')
    139                 p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.3.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
     139                p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.4.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
    140140                try:
    141                     os.makedirs(c.flexpart_root_scripts+'/flex_extract_v7.0.3')
     141                    os.makedirs(c.flexpart_root_scripts+'/flex_extract_v7.0.4')
    142142                except:
    143143                    pass
    144                 os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.3')
    145                 p=subprocess.check_call(['tar','-xvf',ecd+'../flex_extract_v7.0.3.tar'])
    146                 os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.3/src')
     144                os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.4')
     145                p=subprocess.check_call(['tar','-xvf',ecd+'../flex_extract_v7.0.4.tar'])
     146                os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.4/src')
    147147
    148148        os.chdir('../src')
    149         print 'install flex_extract_v7.0.3 software on '+target+' in directory '+os.getcwd()
     149        print 'install flex_extract_v7.0.4 software on '+target+' in directory '+os.getcwd()
    150150        if c.makefile==None:
    151151            makefile='Makefile.local.ifort'
     
    167167    elif target.lower()=='ecgate':
    168168        os.chdir('/')
    169         p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.3.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
     169        p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.4.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
    170170        try:
    171             p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.3.tar','ecgate:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.3.tar'])
     171            p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.4.tar','ecgate:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.4.tar'])
    172172        except:
    173173            print 'ecaccess-file-put failed! Probably the eccert key has expired.'
    174174            exit(1)
    175175        p=subprocess.check_call(['ecaccess-job-submit','-queueName',target,ecd+'python/compilejob.ksh'])
    176         print 'compilejob.ksh has been submitted to ecgate for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.3'
     176        print 'compilejob.ksh has been submitted to ecgate for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.4'
    177177        print 'You should get an email with subject flexcompile within the next few minutes'
    178178    elif target.lower()=='cca':
    179179        os.chdir('/')
    180         p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.3.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
     180        p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.4.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
    181181        try:
    182             p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.3.tar','cca:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.3.tar'])
     182            p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.4.tar','cca:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.4.tar'])
    183183        except:
    184184            print 'ecaccess-file-put failed! Probably the eccert key has expired.'
     
    186186
    187187        p=subprocess.check_call(['ecaccess-job-submit','-queueName',target,ecd+'python/compilejob.ksh'])
    188         print 'compilejob.ksh has been submitted to cca for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.3'
     188        print 'compilejob.ksh has been submitted to cca for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.4'
    189189        print 'You should get an email with subject flexcompile within the next few minutes'
    190190    else:
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG