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
|
Base class for defining how to configure an LSST sconsUtils package. More...
Public Member Functions | |
def | __init__ (self, cfgFile, headers=(), libs=None, hasSwigFiles=True, includeFileDirs=["include"], libFileDirs=["lib"], hasDoxygenInclude=False, hasDoxygenTag=True, eupsProduct=None) |
Initialize the configuration object. More... | |
def | addCustomTests (self, tests) |
Add custom SCons configuration tests to the Configure Context passed to the configure() method. More... | |
def | configure (self, conf, packages, check=False, build=True) |
Update an SCons environment to make use of the package. More... | |
Static Public Member Functions | |
def | parseFilename (cfgFile) |
def | getEupsData (eupsProduct) |
Public Attributes | |
root | |
eupsProduct | |
version | |
doxygen | |
libs | |
paths | |
provides | |
Base class for defining how to configure an LSST sconsUtils package.
Aliased as lsst.sconsUtils.Configuration.
An ups/*.cfg file should contain an instance of this class called "config". Most LSST packages will be able to use this class directly instead of subclassing it.
The only important method is configure(), which modifies an SCons environment to use the package. If a subclass overrides configure, it may not need to call the base class init(), whose only purpose is to define a number of instance variables used by configure().
Definition at line 119 of file dependencies.py.
def lsst.sconsUtils.dependencies.Configuration.__init__ | ( | self, | |
cfgFile, | |||
headers = () , |
|||
libs = None , |
|||
hasSwigFiles = True , |
|||
includeFileDirs = ["include"] , |
|||
libFileDirs = ["lib"] , |
|||
hasDoxygenInclude = False , |
|||
hasDoxygenTag = True , |
|||
eupsProduct = None |
|||
) |
Initialize the configuration object.
cfgFile | The name of the calling .cfg file, usually just passed in with the special variable file. This will be parsed to extract the package name and root. |
headers | A list of headers provided by the package, to be used in autoconf-style tests. |
libs | A list or dictionary of libraries provided by the package. If a dictionary is provided, libs["main"] should contain a list of regular libraries provided by the library. Other keys are "python" and "test", which refer to libraries that are only linked against compiled Python modules and unit tests, respectively. If a list is provided, the list is used as "main". These are used both for autoconf-style tests and to support env.getLibs(...), which recursively computes the libraries a package must be linked with. |
hasSwigFiles | If True, the package provides SWIG interface files in "<root>/python". |
hasDoxygenInclude | If True, the package provides a Doxygen include file with the name "<root>/doc/<name>.inc". |
hasDoxygenTag | If True, the package generates a Doxygen TAG file. |
includeFileDirs | List of directories that should be searched for include files |
libFileDirs | List of directories that should be searched for libraries |
eupsProduct | Name of the EUPS product for the package, if different from the name of the .cfg file. |
Definition at line 163 of file dependencies.py.
def lsst.sconsUtils.dependencies.Configuration.addCustomTests | ( | self, | |
tests | |||
) |
Add custom SCons configuration tests to the Configure Context passed to the configure() method.
This needs to be done up-front so we can pass in a dictionary of custom tests when calling env.Configure(), and use the same configure context for all packages.
tests | A dictionary to add custom tests to. This will be passed as the custom_tests argument to env.Configure(). |
Definition at line 230 of file dependencies.py.
def lsst.sconsUtils.dependencies.Configuration.configure | ( | self, | |
conf, | |||
packages, | |||
check = False , |
|||
build = True |
|||
) |
Update an SCons environment to make use of the package.
conf | An SCons Configure context. The SCons Environment conf.env should be updated by the configure function. |
packages | A dictionary containing the configuration modules of all dependencies (or None if the dependency was optional and was not found). The <module>.config.configure(...) method will have already been called on all dependencies. |
check | If True, perform autoconf-style tests to verify that key components are in fact in place. |
build | If True, this is the package currently being built, and packages in "buildRequired" and "buildOptional" dependencies will also be present in the packages dict. |
Definition at line 247 of file dependencies.py.
|
static |
Definition at line 129 of file dependencies.py.
|
static |
Definition at line 123 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.doxygen |
Definition at line 176 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.eupsProduct |
Definition at line 167 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.libs |
Definition at line 185 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.paths |
Definition at line 197 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.provides |
Definition at line 215 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.root |
Definition at line 164 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.version |
Definition at line 170 of file dependencies.py.