upe.build — Create UPE packages

class upe.build.manifest([manifest='manifest.yaml'])

Manifest-related operations.

read()

Obtain a readable output.

convert([of='manifest.json'])

Convert from YAML to JSON, as needed by make()

revert([of='manifest.yaml'])

Convert from JSON to the (nearly) original YAML file.

Warning

When converting from YAML to JSON, comments and order are lost, and can’t be recovered when converting from JSON to YAML.

class upe.build.buildcmd

Class where all the commands from the build scripts are defined. Shouldn’t be used outside a build script. If you try to run an undefined command, it will raise a CmdError.

exception upe.build.CmdError

Exception raised when buildcmd gets an undefined command. It should print something like:

Tried to execute an illegal command: <command you tried to run>
upe.build.make(builds[, manifest='manifest.json'][, builddir='build'][, srcdir='src'])

Create a package from a manifest (in JSON format) and a builds (build script). It should be named following the build script guidelines. It also needs a builddir where building the skeleton of the package, and a srcdir where the original source is located.

Important

Both builddir and srcdir must be under the current directory (you can’t indicate a path).

Previous topic

Package manifest

Next topic

Build Script — Compiling and installing the source