Changeset 6f951ca in flex_extract.git for source/python/install.py
- Timestamp:
- Jan 15, 2019, 1:05:10 AM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- d4696e0
- Parents:
- 2625ca8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/install.py
r1eca806 r6f951ca 14 14 # - splitted code in smaller functions 15 15 # - delete convert build files in here instead of compile job script 16 # - changed static path names to Variables from config file 16 # - changed static path names to variables from config file 17 # - splitted install function into several smaller pieces 18 # - use of tarfile package in python 17 19 # 18 20 # @License: 19 # (C) Copyright 2015-2018. 21 # (C) Copyright 2014-2019. 22 # Anne Philipp, Leopold Haimberger 20 23 # 21 # This software is licensed under the terms of the Apache Licence Version 2.0 22 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 24 # This work is licensed under the Creative Commons Attribution 4.0 25 # International License. To view a copy of this license, visit 26 # http://creativecommons.org/licenses/by/4.0/ or send a letter to 27 # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 23 28 # 24 # @Program Functionality: 25 # Depending on the selected installation environment (locally or on the 26 # ECMWF server ecgate or cca) the program extracts the commandline 27 # arguments and the CONTROL file parameter and prepares the corresponding 28 # environment. The necessary files are collected in a tar-ball and placed 29 # at the target location. There its untared, the environment variables will 30 # be set and the Fortran code will be compiled. If the ECMWF environment is 31 # selected a job script is prepared and submitted for the remaining 32 # configurations after putting the tar-ball to the target ECMWF server. 33 # 34 # @Program Content: 35 # - main 36 # - get_install_cmdline_args 37 # - install_via_gateway 38 # - mk_tarball 39 # - un_tarball 40 # - mk_env_vars 41 # - mk_compilejob 42 # - mk_job_template 43 # - del_convert_build 44 # - mk_convert_build 29 # @Methods: 30 # main 31 # get_install_cmdline_args 32 # install_via_gateway 33 # check_install_conditions 34 # mk_tarball 35 # un_tarball 36 # mk_env_vars 37 # mk_compilejob 38 # mk_job_template 39 # del_convert_build 40 # mk_convert_build 45 41 # 46 42 #******************************************************************************* 43 '''This script installs the flex_extract program. 44 45 Depending on the selected installation environment (locally or on the 46 ECMWF server ecgate or cca) the program extracts the commandline 47 arguments and the CONTROL file parameter and prepares the corresponding 48 environment. 49 The necessary files are collected in a tar-ball and placed 50 at the target location. There its untared, the environment variables will 51 be set and the Fortran code will be compiled. 52 If the ECMWF environment is selected a job script is prepared and submitted 53 for the remaining configurations after putting the tar-ball to the 54 target ECMWF server. 55 56 Type: install.py --help 57 to get information about command line parameters. 58 Read the documentation for usage instructions. 59 ''' 47 60 48 61 # ------------------------------------------------------------------------------ … … 96 109 Return 97 110 ------ 98 args : :obj:`Namespace`111 args : Namespace 99 112 Contains the commandline arguments from script/program call. 100 113 ''' … … 144 157 Parameters 145 158 ---------- 146 c : :obj:`ControlFile`159 c : ControlFile 147 160 Contains all the parameters of CONTROL file and 148 161 command line. … … 229 242 Parameters 230 243 ---------- 231 c : :obj:`ControlFile`244 c : ControlFile 232 245 Contains all the parameters of CONTROL file and 233 246 command line. … … 283 296 Parameters 284 297 ---------- 285 tarball_path : :obj:`string`298 tarball_path : str 286 299 The complete path to the tar file which will contain all 287 300 relevant data for flex_extract. 288 301 289 target : :obj:`string`302 target : str 290 303 The queue where the job is submitted to. 291 304 … … 374 387 Parameters 375 388 ---------- 376 tarball_path : :obj:`string`389 tarball_path : str 377 390 The complete path to the tar file which will contain all 378 391 relevant data for flex_extract. … … 407 420 Parameters 408 421 ---------- 409 ecuid : :obj:`string`422 ecuid : str 410 423 The user id on ECMWF server. 411 424 412 ecgid : :obj:`string`425 ecgid : str 413 426 The group id on ECMWF server. 414 427 415 gateway : :obj:`string`428 gateway : str 416 429 The gateway server the user is using. 417 430 418 destination : :obj:`string`431 destination : str 419 432 The remote destination which is used to transfer files 420 433 from ECMWF server to local gateway server. … … 469 482 Parameters 470 483 ---------- 471 makefile : :obj:`string`484 makefile : str 472 485 Name of the makefile which should be used to compile FORTRAN 473 486 CONVERT2 program. 474 487 475 target : :obj:`string`488 target : str 476 489 The target where the installation should be done, e.g. the queue. 477 490 478 ecuid : :obj:`string`491 ecuid : str 479 492 The user id on ECMWF server. 480 493 481 ecgid : :obj:`string`494 ecgid : str 482 495 The group id on ECMWF server. 483 496 484 fp_root : :obj:`string`497 fp_root : str 485 498 Path to the root directory of FLEXPART environment or flex_extract 486 499 environment. … … 544 557 Parameters 545 558 ---------- 546 ecuid : :obj:`string`559 ecuid : str 547 560 The user id on ECMWF server. 548 561 549 ecgid : :obj:`string`562 ecgid : str 550 563 The group id on ECMWF server. 551 564 552 gateway : :obj:`string`565 gateway : str 553 566 The gateway server the user is using. 554 567 555 destination : :obj:`string`568 destination : str 556 569 The remote destination which is used to transfer files 557 570 from ECMWF server to local gateway server. 558 571 559 fp_root : :obj:`string`572 fp_root : str 560 573 Path to the root directory of FLEXPART environment or flex_extract 561 574 environment. … … 622 635 Parameters 623 636 ---------- 624 src_path : :obj:`string`637 src_path : str 625 638 Path to the fortran source directory. 626 639 … … 645 658 Parameters 646 659 ---------- 647 src_path : :obj:`string`660 src_path : str 648 661 Path to the fortran source directory. 649 662 650 makefile : :obj:`string`663 makefile : str 651 664 The name of the makefile which should be used. 652 665
Note: See TracChangeset
for help on using the changeset viewer.