LSSTApplications
16.0-10-g0ee56ad+4,16.0-11-ga33d1f2+4,16.0-12-g3ef5c14+2,16.0-12-g71e5ef5+17,16.0-12-gbdf3636+2,16.0-13-g118c103+2,16.0-13-g8f68b0a+2,16.0-15-gbf5c1cb+3,16.0-16-gfd17674+2,16.0-17-g7c01f5c+2,16.0-18-g0a50484,16.0-20-ga20f992+7,16.0-21-g0e05fd4+5,16.0-21-g15e2d33+3,16.0-22-g62d8060+3,16.0-22-g847a80f+3,16.0-25-gf00d9b8,16.0-28-g3990c221+3,16.0-3-gf928089+2,16.0-32-g88a4f23+4,16.0-34-gd7987ad+2,16.0-37-gc7333cb+1,16.0-4-g10fc685+1,16.0-4-g18f3627+25,16.0-4-g5f3a788+25,16.0-5-gaf5c3d7+3,16.0-5-gcc1f4bb,16.0-6-g3b92700+3,16.0-6-g4412fcd+2,16.0-6-g7235603+3,16.0-69-g2562ce1b+1,16.0-7-g0913a87,16.0-8-g14ebd58+3,16.0-8-g2df868b,16.0-8-g4cec79c+5,16.0-8-gadf6c7a,16.0-82-g59ec2a54a,16.0-9-g5400cdc+1,16.0-9-ge6233d7+4,master-g2880f2d8cf+2,v17.0.rc1
LSSTDataManagementBasePackage
|
A class for loading and managing the dependency tree of a package, as defined by its configuration module (.cfg) file. More...
Public Member Functions | |
def | __init__ (self, primaryName, noCfgFile=False) |
Recursively load *.cfg files for packageName and all its dependencies. More... | |
def | configure (self, env, check=False) |
def | __contains__ (self, name) |
def | __getitem__ (self, name) |
def | get (self, name, default=None) |
def | keys (self) |
Public Attributes | |
cfgPath | |
packages | |
customTests | |
primary | |
Static Public Attributes | |
def | has_key = __contains__ |
Properties | |
name = property(lambda self: self.primary.config.name) | |
A class for loading and managing the dependency tree of a package, as defined by its configuration module (.cfg) file.
This tree isn't actually stored as a tree; it's flattened into an ordered dictionary as it is recursively loaded.
The main SCons produced by configure() and available as sconsUtils.env will contain an instance of this class as env.dependencies.
Its can be used like a read-only dictionary to check whether an optional package has been configured; a package that was not found will have a value of None, while a configured package's value will be its imported .cfg module.
Definition at line 407 of file dependencies.py.
def lsst.sconsUtils.dependencies.PackageTree.__init__ | ( | self, | |
primaryName, | |||
noCfgFile = False |
|||
) |
Recursively load *.cfg files for packageName and all its dependencies.
primaryName | The name of the primary package being built. |
noCfgFile | If True, this package has no .cfg file |
After init, self.primary will be set to the configuration module for the primary package, and self.packages will be an OrderedDict of dependencies (excluding self.primary), ordered such that configuration can proceed in iteration order.
Definition at line 419 of file dependencies.py.
def lsst.sconsUtils.dependencies.PackageTree.__contains__ | ( | self, | |
name | |||
) |
Definition at line 480 of file dependencies.py.
def lsst.sconsUtils.dependencies.PackageTree.__getitem__ | ( | self, | |
name | |||
) |
Definition at line 485 of file dependencies.py.
def lsst.sconsUtils.dependencies.PackageTree.configure | ( | self, | |
env, | |||
check = False |
|||
) |
Definition at line 460 of file dependencies.py.
def lsst.sconsUtils.dependencies.PackageTree.get | ( | self, | |
name, | |||
default = None |
|||
) |
Definition at line 491 of file dependencies.py.
def lsst.sconsUtils.dependencies.PackageTree.keys | ( | self | ) |
Definition at line 497 of file dependencies.py.
lsst.sconsUtils.dependencies.PackageTree.cfgPath |
Definition at line 420 of file dependencies.py.
lsst.sconsUtils.dependencies.PackageTree.customTests |
Definition at line 422 of file dependencies.py.
|
static |
Definition at line 483 of file dependencies.py.
lsst.sconsUtils.dependencies.PackageTree.packages |
Definition at line 421 of file dependencies.py.
lsst.sconsUtils.dependencies.PackageTree.primary |
Definition at line 430 of file dependencies.py.
|
static |
Definition at line 457 of file dependencies.py.