lsst.sconsUtils
16.0-7-gaa59407
|
Classes | |
class | DirectoryInstaller |
SCons Action callable to recursively install a directory. More... | |
Functions | |
def | makeProductPath (env, pathFormat) |
return a path to use as the installation directory for a product More... | |
def | determineVersion (env, versionString) |
def | getFingerprint (versionString) |
def | setPrefix (env, versionString, eupsProductPath=None) |
def | Declare (self, products=None) |
Create current and declare targets for products. More... | |
def | InstallDir (self, prefix, dir, ignoreRegex=r"(~$|\yc$|\s?$)", recursive=True) |
Install the directory dir into prefix, (along with all its descendents if recursive is True). More... | |
def | InstallEups (env, dest, files=[], presetup="") |
Install a ups directory, setting absolute versions as appropriate (unless you're installing from the trunk, in which case no versions are expanded). More... | |
def | InstallLSST (self, prefix, dirs, ignoreRegex=None) |
def lsst.sconsUtils.installation.Declare | ( | self, | |
products = None |
|||
) |
Create current and declare targets for products.
products may be a list of (product, version) tuples. If product is None it's taken to be self['eupsProduct']; if version is None it's taken to be self['version'].
def lsst.sconsUtils.installation.determineVersion | ( | env, | |
versionString | |||
) |
Referenced by lsst.sconsUtils.installation.setPrefix(), and lsst.sconsUtils.builders.VersionModule().
def lsst.sconsUtils.installation.getFingerprint | ( | versionString | ) |
Referenced by lsst.sconsUtils.builders.VersionModule().
def lsst.sconsUtils.installation.InstallDir | ( | self, | |
prefix, | |||
dir, | |||
ignoreRegex = r"(~$|\.pyc$|\.os?$)" , |
|||
recursive = True |
|||
) |
Install the directory dir into prefix, (along with all its descendents if recursive is True).
Omit files and directories that match ignoreRegex
References lsst.sconsUtils.utils.memberOf().
def lsst.sconsUtils.installation.InstallEups | ( | env, | |
dest, | |||
files = [] , |
|||
presetup = "" |
|||
) |
Install a ups directory, setting absolute versions as appropriate (unless you're installing from the trunk, in which case no versions are expanded).
Any build/table files present in "./ups" are automatically added to files.
If presetup is provided, it's expected to be a dictionary with keys product names and values the version that should be installed into the table files, overriding eups expandtable's usual behaviour. E.g. env.InstallEups(os.path.join(env['prefix'], "ups"), presetup={"sconsUtils" : env['version']})
References lsst.sconsUtils.utils.memberOf().
def lsst.sconsUtils.installation.InstallLSST | ( | self, | |
prefix, | |||
dirs, | |||
ignoreRegex = None |
|||
) |
def lsst.sconsUtils.installation.makeProductPath | ( | env, | |
pathFormat | |||
) |
return a path to use as the installation directory for a product
pathFormat | the format string to process |
env | the scons environment |
Referenced by lsst.sconsUtils.installation.setPrefix().
def lsst.sconsUtils.installation.setPrefix | ( | env, | |
versionString, | |||
eupsProductPath = None |
|||
) |