Module Expr Str Assign NameStore Str Assign NameStore ListLoad Str Import alias Assign NameStore TupleLoad Str Str Str Str Str Str Assign NameStore TupleLoad Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Return NameLoad If CompareIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Import alias If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad orelse If BoolOpAnd SubscriptLoad NameLoad Index NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr TupleLoad NameLoad BinOpMod Str NameLoad Return TupleLoad NameLoad NameLoad NameLoad Lambda arguments args NameParam NameParam NameParam defaults Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A N/A engine.SCons.Variables.PackageVariable

This file defines the option type for SCons implementing 'package
activation'.

To be used whenever a 'package' may be enabled/disabled and the
package path may be specified.

Usage example:

  Examples:
      x11=no   (disables X11 support)
      x11=yes  (will search for the package installation dir)
      x11=/usr/local/X11 (will check this path for existance)

  To replace autoconf's --with-xxx=yyy

  opts = Variables()
  opts.Add(PackageVariable('x11',
                         'use X11 installed here (yes = search some places',
                         'yes'))
  ...
  if env['x11'] == True:
      dir = ... search X11 in some standard places ...
      env['x11'] = dir
  if env['x11']:
      ... build with x11 ...
 N/A __revision__ src/engine/SCons/Variables/PackageVariable.py  2014/07/05 09:42:21 garyo N/A __all__ N/A PackageVariable N/A SCons.Errors N/A __enable_strings N/A 1 yes true on enable search N/A __disable_strings N/A 0 no false off disable _converter N/A N/A val N/A N/A N/A N/A lval N/A N/A val lower N/A N/A lval __enable_strings N/A N/A True N/A N/A lval __disable_strings N/A N/A False N/A val N/A _validator N/A N/A key val env searchfunc N/A N/A N/A N/A os N/A N/A N/A env N/A key True N/A N/A searchfunc N/A N/A N/A env N/A key N/A searchfunc key val N/A N/A N/A N/A env N/A key N/A N/A N/A N/A os path exists val N/A N/A N/A N/A N/A SCons Errors UserError N/A Path does not exist for option %s: %s N/A key val N/A PackageVariable N/A N/A key help default searchfunc N/A None N/A N/A 
    The input parameters describe a 'package list' option, thus they
    are returned with the correct converter and validator appended. The
    result is usable for input to opts.Add() .

    A 'package list' option may either be 'all', 'none' or a list of
    package names (seperated by space).
     N/A help N/A N/A join N/A help N/A ( yes | no | /path/to/%s ) key N/A N/A key help default N/A N/A N/A k v e N/A N/A _validator k v e searchfunc _converter N/A