lsst.sconsUtils  13.0-5-ga39c763
 All Classes Namespaces Files Functions Variables Properties Groups
Classes | Functions
lsst.sconsUtils.installation Namespace Reference

Classes

class  DirectoryInstaller
 SCons Action callable to recursively install a directory. More...
 

Functions

def makeProductPath
 return a path to use as the installation directory for a product More...
 
def determineVersion
 
def getFingerprint
 
def setPrefix
 
def Declare
 Create current and declare targets for products. More...
 
def InstallDir
 Install the directory dir into prefix, (along with all its descendents if recursive is True). More...
 
def InstallEups
 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
 

Function Documentation

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 
)
def lsst.sconsUtils.installation.getFingerprint (   versionString)
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

Parameters
pathFormatthe format string to process
envthe scons environment

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

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