LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Base class for defining how to configure an LSST sconsUtils package. More...
Public Member Functions | |
def | __init__ |
Initialize the configuration object. More... | |
def | addCustomTests |
Add custom SCons configuration tests to the Configure Context passed to the configure() method. More... | |
def | configure |
Update an SCons environment to make use of the package. More... | |
Static Public Member Functions | |
def | parseFilename |
Parse the name of a .cfg file, returning the package name and root directory. More... | |
def | getEupsData |
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 110 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 154 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 221 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 238 of file dependencies.py.
|
static |
Definition at line 120 of file dependencies.py.
|
static |
Parse the name of a .cfg file, returning the package name and root directory.
Definition at line 114 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.doxygen |
Definition at line 167 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.eupsProduct |
Definition at line 158 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.libs |
Definition at line 176 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.paths |
Definition at line 188 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.provides |
Definition at line 206 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.root |
Definition at line 155 of file dependencies.py.
lsst.sconsUtils.dependencies.Configuration.version |
Definition at line 161 of file dependencies.py.