Create#

The relenv create command.

exception relenv.create.CreateException#

Raised when there is an issue creating a new relenv environment.

relenv.create.chdir(path)#

Context manager that changes to the specified directory and back.

Parameters:

path (str) – The path to temporarily change to

relenv.create.create(name, dest=None, arch=None, version=None)#

Create a relenv environment.

Parameters:
  • name (str) – The name of the environment

  • dest (str) – The path the environment should be created under

  • arch (str) – The architecture to create the environment for

Raises:

CreateException – If there is a problem in creating the relenv environment

relenv.create.main(args)#

The entrypoint into the relenv create command.

Parameters:

args (argparse.Namespace) – The args passed to the command

relenv.create.setup_parser(subparsers)#

Setup the subparser for the create command.

Parameters:

subparsers (argparse._SubParsersAction) – The subparsers object returned from add_subparsers