mkMCGentar Overview

  • mkMCGentar creates a unique tar file concatenating all external packages, stored under MCGenerators/, used by a given Gauss version.
  • CMTPROJECTPATH must be set beforehand.

Usage

def help() :
  print """make a GENSER tar file for a given Gauss version with the necessary libraries\n
  Usage:
    python mkMCGentar.py [-d or --debug] \n
    -d                                 - debug mode \n
    -b or --binary=  <binary>          - for this binary platform \n
    -n or --native=  <Lb project_vers> - application version from where to get native.versions \n
  Examples:
    cd $LHCBTAR/source
    python mkGENSERtar.py --native=GAUSS_<version> \n
    gets the libraries used by GAUSS_<version> from $LCGEXTERNAL/MCGenerators used by Gauss>\n
    
    """
  sys.exit()

Full description

  • main gets arguments from the command line, retreives the list of native_versions, gets corresponding tar files from $LCGEXTERNAL/MCGenerators/distribution and builds the final GENSER_<version>_<binary>.tar.gz file
    • get_native_versions
      • GENSER is nolonger an external package but a Gauss package. retreive its version number from CMT.
      • get the list of MCGenerators packages through the list of native macros.
      • fill packages_versions dictionary with {package:version}
    • * get_tar_files*
      • build a temporary tree in /tmp/MCGenerators
      • for every package in packages_versions dictionary:
        • get the tar file name from get_tar_name
        • if the tar file exist:
          • copy it on /tmp/MCGenerators
          • unzip and extract the required binary
          • remove the tar file
          • in case of lhapdf :
            • get the source tar file to extract from it some data files and remove the tar file
      • build the final tar file and remove the /tmp tree

-- FlorenceRanjard - 02 Apr 2007

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2007-04-30 - FlorenceRanjard
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback