LSSTApplications  16.0-10-g0ee56ad+4,16.0-11-ga33d1f2+4,16.0-12-g3ef5c14+2,16.0-12-g71e5ef5+17,16.0-12-gbdf3636+2,16.0-13-g118c103+2,16.0-13-g8f68b0a+2,16.0-15-gbf5c1cb+3,16.0-16-gfd17674+2,16.0-17-g7c01f5c+2,16.0-18-g0a50484,16.0-20-ga20f992+7,16.0-21-g0e05fd4+5,16.0-21-g15e2d33+3,16.0-22-g62d8060+3,16.0-22-g847a80f+3,16.0-25-gf00d9b8,16.0-28-g3990c221+3,16.0-3-gf928089+2,16.0-32-g88a4f23+4,16.0-34-gd7987ad+2,16.0-37-gc7333cb+1,16.0-4-g10fc685+1,16.0-4-g18f3627+25,16.0-4-g5f3a788+25,16.0-5-gaf5c3d7+3,16.0-5-gcc1f4bb,16.0-6-g3b92700+3,16.0-6-g4412fcd+2,16.0-6-g7235603+3,16.0-69-g2562ce1b+1,16.0-7-g0913a87,16.0-8-g14ebd58+3,16.0-8-g2df868b,16.0-8-g4cec79c+5,16.0-8-gadf6c7a,16.0-82-g59ec2a54a,16.0-9-g5400cdc+1,16.0-9-ge6233d7+4,master-g2880f2d8cf+2,v17.0.rc1
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.sconsUtils.eupsForScons Namespace Reference

Classes

class  _Eups
 
class  _Utils
 

Functions

def haveEups ()
 
def flavor ()
 
def productDir (name)
 
def findSetupVersion (eupsProduct)
 
def setupEnvNameFor (productName)
 
def getEups ()
 

Variables

bool eupsLoaded = True
 
 Eups
 
 findSetupVersion
 
 utils
 
 setupEnvNameFor
 

Function Documentation

◆ findSetupVersion()

def lsst.sconsUtils.eupsForScons.findSetupVersion (   eupsProduct)

Definition at line 34 of file eupsForScons.py.

34  def findSetupVersion(eupsProduct):
35  return None, None, None, None, flavor()
36 
def findSetupVersion(eupsProduct)
Definition: eupsForScons.py:34

◆ flavor()

def lsst.sconsUtils.eupsForScons.flavor ( )

Definition at line 21 of file eupsForScons.py.

21  def flavor():
22  from .state import env, log
23 
24  log.warn("Unable to import eups; guessing flavor")
25 
26  if env['PLATFORM'] == "posix":
27  return os.uname()[0].title()
28  else:
29  return env['PLATFORM'].title()
30 

◆ getEups()

def lsst.sconsUtils.eupsForScons.getEups ( )
Return a cached Eups instance, auto-creating if necessary 

Definition at line 54 of file eupsForScons.py.

54 def getEups():
55  """ Return a cached Eups instance, auto-creating if necessary """
56  try:
57  return getEups._eups
58  except AttributeError:
59  getEups._eups = Eups()
60  return getEups._eups

◆ haveEups()

def lsst.sconsUtils.eupsForScons.haveEups ( )

Definition at line 13 of file eupsForScons.py.

13 def haveEups():
14  return eupsLoaded
15 
16 

◆ productDir()

def lsst.sconsUtils.eupsForScons.productDir (   name)

Definition at line 31 of file eupsForScons.py.

31  def productDir(name):
32  return os.environ.get("%s_DIR" % name.upper())
33 

◆ setupEnvNameFor()

def lsst.sconsUtils.eupsForScons.setupEnvNameFor (   productName)

Definition at line 48 of file eupsForScons.py.

48  def setupEnvNameFor(productName):
49  return "SETUP_%s" % productName
50 
def setupEnvNameFor(productName)
Definition: eupsForScons.py:48

Variable Documentation

◆ Eups

lsst.sconsUtils.eupsForScons.Eups

Definition at line 40 of file eupsForScons.py.

◆ eupsLoaded

bool lsst.sconsUtils.eupsForScons.eupsLoaded = True

Definition at line 8 of file eupsForScons.py.

◆ findSetupVersion

lsst.sconsUtils.eupsForScons.findSetupVersion

Definition at line 42 of file eupsForScons.py.

◆ setupEnvNameFor

lsst.sconsUtils.eupsForScons.setupEnvNameFor

Definition at line 51 of file eupsForScons.py.

◆ utils

lsst.sconsUtils.eupsForScons.utils

Definition at line 46 of file eupsForScons.py.