LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
A scope-only class for SConstruct-replacement convenience functions. More...
Public Member Functions | |
def | __new__ |
Convenience function to replace standard SConstruct boilerplate. More... | |
def | initialize |
Convenience function to replace standard SConstruct boilerplate (step 1). More... | |
Static Public Member Functions | |
def | finish |
Convenience function to replace standard SConstruct boilerplate (step 2). More... | |
Static Private Attributes | |
_initializing = False | |
A scope-only class for SConstruct-replacement convenience functions.
The boilerplate for a standard LSST SConstruct file is replaced by two static methods: initialize() and finish(). The former configures dependencies, sets up package-dependent environment variables, and calls any SConscript files found in subdirectories, while the latter sets up installation paths, default targets, and explicit dependencies.
Calling BasicSConstruct as a function invokes its new method, which calls both initialize() and finish(), and should be used when the SConstruct file doesn't need to do anything other than what they provide.
Definition at line 36 of file scripts.py.
def lsst.sconsUtils.scripts.BasicSConstruct.__new__ | ( | cls, | |
packageName, | |||
versionString = None , |
|||
eupsProduct = None , |
|||
eupsProductPath = None , |
|||
cleanExt = None , |
|||
defaultTargets = ("lib", "python" , |
|||
tests, | |||
examples, | |||
doc, | |||
subDirList = None , |
|||
ignoreRegex = None , |
|||
versionModuleName = "python/lsst/%s/version.py" , |
|||
noCfgFile = False |
|||
) |
Convenience function to replace standard SConstruct boilerplate.
This is a shortcut for
This returns the sconsUtils.env Environment object rather than a BasicSConstruct instance (which would be useless).
Definition at line 55 of file scripts.py.
|
static |
Convenience function to replace standard SConstruct boilerplate (step 2).
This function:
subDirList | An explicit list of subdirectories that should be installed. By default, all non-hidden subdirectories will be installed. |
defaultTargets | A sequence of targets (see state.targets) that should be built when scons is run with no arguments. |
ignoreRegex | Regular expression that matches files that should not be installed. |
Definition at line 130 of file scripts.py.
def lsst.sconsUtils.scripts.BasicSConstruct.initialize | ( | cls, | |
packageName, | |||
versionString = None , |
|||
eupsProduct = None , |
|||
eupsProductPath = None , |
|||
cleanExt = None , |
|||
versionModuleName = "python/lsst/%s/version.py" , |
|||
noCfgFile = False |
|||
) |
Convenience function to replace standard SConstruct boilerplate (step 1).
This function:
packageName | Name of the package being built; must correspond to a .cfg file in ups/. |
versionString | Version-control system string to be parsed for version information ($HeadURL$ for SVN). Defaults to "git" if not set or None. |
eupsProduct | Name of the EUPS product being built. Defaults to and is almost always the name of the package. |
eupsProductPath | An alternate directory where the package should be installed. |
cleanExt | Whitespace delimited sequence of globs for files to remove with –clean. |
versionModuleName | If non-None, builds a version.py module as this file; 's' is replaced with the name of the package. |
noCfgFile | If True, this package has no .cfg file |
Definition at line 84 of file scripts.py.
|
staticprivate |
Definition at line 38 of file scripts.py.