lsst.sconsUtils  16.0-5-ga6f992e
Classes | Functions
lsst.sconsUtils.installation Namespace Reference

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)
 

Function Documentation

◆ Declare()

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'].

◆ determineVersion()

def lsst.sconsUtils.installation.determineVersion (   env,
  versionString 
)

◆ getFingerprint()

def lsst.sconsUtils.installation.getFingerprint (   versionString)

◆ InstallDir()

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().

◆ InstallEups()

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().

◆ InstallLSST()

def lsst.sconsUtils.installation.InstallLSST (   self,
  prefix,
  dirs,
  ignoreRegex = None 
)

◆ makeProductPath()

def lsst.sconsUtils.installation.makeProductPath (   env,
  pathFormat 
)

return a path to use as the installation directory for a product

Parameters
pathFormatthe format string to process
envthe scons environment

Referenced by lsst.sconsUtils.installation.setPrefix().

◆ setPrefix()

def lsst.sconsUtils.installation.setPrefix (   env,
  versionString,
  eupsProductPath = None 
)