Changeset fb8810c in flex_extract.git for python/install.py
- Timestamp:
- Nov 28, 2018, 4:36:11 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- ced5d27
- Parents:
- a9c7f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/install.py
re18f4b5 rfb8810c 106 106 data='##PBS -o /scratch/ms/'+c.ecgid+'/'+c.ecuid+'flex_ecmwf.$Jobname.$Job_ID.out' 107 107 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' 109 109 110 110 if 'cat>>' in data or 'cat >>' in data: … … 137 137 if os.path.abspath(ecd)!=os.path.abspath(c.flexpart_root_scripts): 138 138 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']) 140 140 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') 142 142 except: 143 143 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') 147 147 148 148 os.chdir('../src') 149 print 'install flex_extract_v7.0. 3software on '+target+' in directory '+os.getcwd()149 print 'install flex_extract_v7.0.4 software on '+target+' in directory '+os.getcwd() 150 150 if c.makefile==None: 151 151 makefile='Makefile.local.ifort' … … 167 167 elif target.lower()=='ecgate': 168 168 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']) 170 170 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']) 172 172 except: 173 173 print 'ecaccess-file-put failed! Probably the eccert key has expired.' 174 174 exit(1) 175 175 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' 177 177 print 'You should get an email with subject flexcompile within the next few minutes' 178 178 elif target.lower()=='cca': 179 179 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']) 181 181 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']) 183 183 except: 184 184 print 'ecaccess-file-put failed! Probably the eccert key has expired.' … … 186 186 187 187 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' 189 189 print 'You should get an email with subject flexcompile within the next few minutes' 190 190 else:
Note: See TracChangeset
for help on using the changeset viewer.