scipion.install.funcs module
- class scipion.install.funcs.Environment(**kwargs)[source]
Bases:
object
- addLibrary(name, **kwargs)[source]
Add library <name> to the construction process.
Checks that the needed programs are in PATH, needed libraries can be found, downloads the given url, untars the resulting tar file, configures the library with the given flags, compiles it (in the given buildDir) and installs it.
If default=False, the library will not be built.
Returns the final targets, the ones that Make will create.
- addPackage(name, **kwargs)[source]
Download a package tgz, untar it and create a link in software/em. Params in kwargs:
- Parameters
tar – the package tar file, by default the name + .tgz. Pass None or VOID_TGZ if there is no tar file.
commands – a list with actions to be executed to install the package
buildDir – Optional folder where build/extraction happens. If not passed will be inferred from tgz’s name
neededProgs – Optional, list of programs needed. E.g: make, cmake,…
version – Optional, version of the package.
libChecks – Optional, a list of the libraries needed. E.g: libjpeg62, gsl (GSL - GNU Scientific Library)
- addPipModule(name, version='', pipCmd=None, target=None, default=True, deps=[])[source]
Add a new module to our built Python. Params in kwargs:
- Parameters
name – pip module name
version – module version - must be specified to prevent undesired updates.
default – Optional. True if the module has to be installed right after the installation/update of the plugin.
:returns target containing the pip module definition
- scipion.install.funcs.black(txt)
- scipion.install.funcs.blue(txt)
- scipion.install.funcs.cyan(txt)
- scipion.install.funcs.green(txt)
- scipion.install.funcs.magenta(txt)
- scipion.install.funcs.red(txt)
- scipion.install.funcs.white(txt)
- scipion.install.funcs.yellow(txt)