lsst.sconsUtils¶
The sconsUtils
module provides tooling to support the building of standard LSST packages using SCons.
Contributing¶
lsst.sconsUtils
is developed at https://github.com/lsst/sconsUtils.
You can find Jira issues for this module under the sconsUtils component.
Python API reference¶
Note
Many of the methods defined in this package are injected directly into the base SConsEnvironment.
The SConsUtilsEnvironment
class exists solely to allow these methods to be documented.
The class will not be used when writing SCons files.
lsst.sconsUtils.scripts Module¶
Classes¶
A scope-only class for SConscript-replacement convenience functions. |
|
|
A scope-only class for SConstruct-replacement convenience functions. |
lsst.sconsUtils.dependencies Module¶
Functions¶
|
Recursively configure a package using ups/.cfg files. |
Classes¶
|
Base class for defining how to configure an LSST sconsUtils package. |
|
A Configuration subclass for external (third-party) packages. |
|
A class for loading and managing the dependency tree of a package, as defined by its configuration module (.cfg) file. |
Class Inheritance Diagram¶
lsst.sconsUtils.tests Module¶
Classes¶
|
A class to control and run unit tests. |
lsst.sconsUtils.installation Module¶
Functions¶
|
Return a path to use as the installation directory for a product. |
|
Set a version ID from env, or a version control ID string ( |
|
Return a unique fingerprint for a version (e.g. |
|
Set a prefix based on the EUPS_PATH, the product name, and a version string from CVS or SVN. |
Classes¶
|
SCons Action callable to recursively install a directory. |
|
Dummy class to make visible the methods injected into the SCons parent environment. |
Class Inheritance Diagram¶
lsst.sconsUtils.builders Module¶
Functions¶
|
Return a list of files that need to be scanned for tags, starting at directory root. |
Classes¶
|
A callable to be used as an SCons Action to run Doxygen. |
lsst.sconsUtils.utils Module¶
Functions¶
Internal function indicating that the OS has System Integrity Protection. |
|
Name of library path environment variable to be passed throughself. |
|
Path of Python executable to use. |
|
Is shebang rewriting required? |
|
Calculate library loader path environment string to be prepended to external commands. |
|
|
Safe wrapper for running external programs, reading stdout, and sanitizing error messages. |
|
A Python decorator that injects functions into a class. |
Returns a copy of the current conda prefix, if available. |
Classes¶
|
A dead-simple logger for all messages. |
Using sconsUtils
without the conda
Compilers¶
If you would like to use sconsUtils
without the conda
compilers, then put
SCONSUTILS_AVOID_CONDA_COMPILERS
in your environment with a non-None
value.
This environment variable will instruct sconsUtils
to use the default system
compilers and compiler flags.