Package Ganga :: Module PACKAGE
[hide private]
[frames] | no frames]

Module PACKAGE

source code

PACKAGE modules describe the installation and setup of the Ganga runtime packages. Purpose: automatic initialization of Ganga environment setup and software distribution tools.

Each PACKAGE module should provide:

The setup object is used to describe the external dependencies of the package. The standardSetup() function is used to perform automatic initialization of the environment of the package.

Functions [hide private]
 
detectPlatform()
Try to guess the platform string according to the operating system, current environment and python interpreter.
source code
 
standardSetup(setup=setup)
Perform automatic initialization of the environment of the package.
source code
Variables [hide private]
  _defaultMinVersion = '2.2'
  _defaultMinHexVersion = 33685744
  _externalPackages = {'ApMon': {'noarch': True, 'syspath': 'pyt...
  p = '/home/zhangk/ganga/Ganga'
  _defaultExternalHome = '/home/zhangk/ganga/Ganga/external'
  _defaultPlatform = 'slc4_amd64_gcc34'
  setup = setup
  __package__ = 'Ganga'
  i = 4
Function Details [hide private]

detectPlatform()

source code 

Try to guess the platform string according to the operating system, current environment and python interpreter. Ganga provides precompiled external packages on a limited set of _default platforms_ as explained in: https://twiki.cern.ch/twiki/bin/view/ArdaGrid/GangaSupportedPlatforms This function is set only to detect the well-known platform strings as defined by the LCG SPI project and is not meant to be a generic platform detection utility. If the platform cannot be guessed a default one is returned. This may or may not work on other systems. In this case you should resolve the external binary dependencies yourself.

Comments about current implementations:

SLC5 platform is detected using platform module.

If it's not SLC5 then:

We assume that 64 bit python implies the slc4, amd64 system. We assume that 32 bit python implies the slc4, ia32 system.

We ignore IA64 architecture (Opteron) as not frequently used.

standardSetup(setup=setup)

source code 

Perform automatic initialization of the environment of the package. The gangaDir argument is only used by the core package, other packages should have no arguments.


Variables Details [hide private]

_externalPackages

Value:
{'ApMon': {'noarch': True, 'syspath': 'python', 'version': '2.2.11'},
 'Optik': {'maxHexVersion': '0x20300f0',
           'noarch': True,
           'syspath': 'lib/python2.2/site-packages',
           'version': '1.4.1'},
 'ipython': {'PYTHONPATH': 'lib/python',
             'noarch': True,
             'version': '0.6.13_ganga_patch1'},
...