- Timestamp:
- Dec 13, 2018, 11:49:50 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 268ee86
- Parents:
- 2fef1f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/install.py
rde4dc27 rfdfaf00 117 117 help='ecaccess destination, e.g. leo@genericSftp') 118 118 119 parser.add_argument("--flexpart _root_scripts", dest="flexpart_root_scripts",119 parser.add_argument("--flexpartdir", dest="flexpartdir", 120 120 default=None, help="FLEXPART root directory on ECMWF \ 121 121 servers (to find grib2flexpart and COMMAND file)\n\ … … 164 164 165 165 mk_compilejob(c.makefile, c.install_target, c.ecuid, c.ecgid, 166 c.flexpart _root_scripts)166 c.flexpartdir) 167 167 168 168 mk_job_template(c.ecuid, c.ecgid, c.gateway, 169 c.destination, c.flexpart _root_scripts)169 c.destination, c.flexpartdir) 170 170 171 171 mk_env_vars(c.ecuid, c.ecgid, c.gateway, c.destination) … … 183 183 184 184 print('job compilation script has been submitted to ecgate for ' + 185 'installation in ' + c.flexpart _root_scripts+185 'installation in ' + c.flexpartdir + 186 186 '/' + target_dirname) 187 187 print('You should get an email with subject "flexcompile" within ' + … … 189 189 190 190 else: #local 191 if c.flexpart _root_scripts== _config.PATH_FLEXEXTRACT_DIR :192 print('WARNING: FLEXPART _ROOT_SCRIPTShas not been specified')191 if c.flexpartdir == _config.PATH_FLEXEXTRACT_DIR : 192 print('WARNING: FLEXPARTDIR has not been specified') 193 193 print('flex_extract will be installed in here by compiling the ' + 194 194 'Fortran source in ' + _config.PATH_FORTRAN_SRC) 195 195 os.chdir(_config.PATH_FORTRAN_SRC) 196 196 else: # creates the target working directory for flex_extract 197 c.flexpart _root_scripts= os.path.expandvars(os.path.expanduser(198 c.flexpart _root_scripts))199 if os.path.abspath(ecd) != os.path.abspath(c.flexpart _root_scripts):197 c.flexpartdir = os.path.expandvars(os.path.expanduser( 198 c.flexpartdir)) 199 if os.path.abspath(ecd) != os.path.abspath(c.flexpartdir): 200 200 mk_tarball(tar_file, c.install_target) 201 make_dir(os.path.join(c.flexpart _root_scripts,201 make_dir(os.path.join(c.flexpartdir, 202 202 target_dirname)) 203 os.chdir(os.path.join(c.flexpart _root_scripts,203 os.chdir(os.path.join(c.flexpartdir, 204 204 target_dirname)) 205 205 un_tarball(tar_file) 206 os.chdir(os.path.join(c.flexpart _root_scripts,206 os.chdir(os.path.join(c.flexpartdir, 207 207 target_dirname, 208 208 _config.PATH_REL_FORTRAN_SRC)) … … 211 211 print('Install ' + target_dirname + ' software at ' + 212 212 c.install_target + ' in directory ' + 213 os.path.abspath(c.flexpart _root_scripts) + '\n')213 os.path.abspath(c.flexpartdir) + '\n') 214 214 215 215 delete_convert_build('.') … … 262 262 sys.exit(1) 263 263 264 if not c.flexpart _root_scripts:265 c.flexpart _root_scripts= '${HOME}'264 if not c.flexpartdir: 265 c.flexpartdir = '${HOME}' 266 266 else: 267 c.flexpart _root_scripts = c.flexpart_root_scripts267 c.flexpartdir = c.flexpartdir 268 268 else: # local 269 if not c.flexpart _root_scripts:270 c.flexpart _root_scripts= _config.PATH_FLEXEXTRACT_DIR269 if not c.flexpartdir: 270 c.flexpartdir = _config.PATH_FLEXEXTRACT_DIR 271 271 272 272 return
Note: See TracChangeset
for help on using the changeset viewer.