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
Classes | Functions | Variables
lsst.sconsUtils.eupsForScons Namespace Reference

Classes

class  _Eups
 
class  _Utils
 

Functions

def haveEups
 
def flavor
 
def productDir
 
def findSetupVersion
 
def setupEnvNameFor
 
def getEups
 

Variables

 eupsLoaded = True
 

Function Documentation

def lsst.sconsUtils.eupsForScons.findSetupVersion (   eupsProduct)

Definition at line 30 of file eupsForScons.py.

30 
31  def findSetupVersion(eupsProduct):
32  return None, None, None, None, flavor()
def lsst.sconsUtils.eupsForScons.flavor ( )

Definition at line 17 of file eupsForScons.py.

17 
18  def flavor():
19  from .state import env, log
20 
21  log.warn("Unable to import eups; guessing flavor")
22 
23  if env['PLATFORM'] == "posix":
24  return os.uname()[0].title()
25  else:
26  return env['PLATFORM'].title()
def lsst.sconsUtils.eupsForScons.getEups ( )
Return a cached Eups instance, auto-creating if necessary 

Definition at line 49 of file eupsForScons.py.

49 
50 def getEups():
51  """ Return a cached Eups instance, auto-creating if necessary """
52  try:
53  return getEups._eups
54  except AttributeError:
55  getEups._eups = Eups()
56  return getEups._eups
def lsst.sconsUtils.eupsForScons.haveEups ( )

Definition at line 10 of file eupsForScons.py.

10 
11 def haveEups():
12  return eupsLoaded
def lsst.sconsUtils.eupsForScons.productDir (   name)

Definition at line 27 of file eupsForScons.py.

27 
28  def productDir(name):
29  return os.environ.get("%s_DIR" % name.upper())
def lsst.sconsUtils.eupsForScons.setupEnvNameFor (   productName)

Definition at line 44 of file eupsForScons.py.

44 
45  def setupEnvNameFor(productName):
46  return "SETUP_%s" % productName

Variable Documentation

lsst.sconsUtils.eupsForScons.eupsLoaded = True

Definition at line 6 of file eupsForScons.py.