xylem.installers.plugins package

Submodules

xylem.installers.plugins.fake module

This is a fake installer plugin for testing.

It is able to install any package and ‘installs’/’removes’ packages by touching/removing files in a folder.

var INSTALL_LOCATION:
 the installation folder
var definition:definition of the installer plugin to be referenced by the according entry point
class xylem.installers.plugins.fake.FakeInstaller

Bases: xylem.installers.package_manager_installer.PackageManagerInstaller

FakeInstaller class for testing.

The opaque installer items are simply strings (package names).

Packages are installed by touching files in INSTALL_LOCATION. The folder must exist, else installation fails and all packages are assumed uninstalled.

get_install_command(resolved, interactive=True, reinstall=False)
static get_name()
xylem.installers.plugins.fake.detect_fn(resolved)

Return list of subset of installed packages.

xylem.installers.plugins.fake.get_installer_filename(resolved_item)

Return the location of the file indicating installation of item.

xylem.installers.plugins.homebrew module

TODO: Describe and implement this

var definition:definition of the installer plugin to be referenced by the according entry point
class xylem.installers.plugins.homebrew.HomebrewInstaller

Bases: xylem.installers.package_manager_installer.PackageManagerInstaller

get_install_command(resolved, interactive=True, reinstall=False)
static get_name()
xylem.installers.plugins.homebrew.fixme_detect(pkgs, exec_fn=None)

xylem.installers.plugins.macports module

TODO: Describe and implement this

var definition:definition of the installer plugin to be referenced by the according entry point
class xylem.installers.plugins.macports.MacportsInstaller

Bases: xylem.installers.package_manager_installer.PackageManagerInstaller

get_install_command(resolved, interactive=True, reinstall=False)
static get_name()
xylem.installers.plugins.macports.fixme_detect(pkgs, exec_fn=None)

xylem.installers.plugins.pip module

This is a installer plugin for the pip python package manager.

See https://pypi.python.org/pypi/pip

var definition:definition of the installer plugin to be referenced by the according entry point
class xylem.installers.plugins.pip.PipInstaller

Bases: xylem.installers.package_manager_installer.PackageManagerInstaller

Installer support for pip.

get_install_command(resolved, interactive=True, reinstall=False)
static get_name()
get_priority_for_os(os_name, os_version)
xylem.installers.plugins.pip.is_pip_installed()

Return True if ‘pip’ can be executed.

xylem.installers.plugins.pip.pip_detect(pkgs, exec_fn=None)

Given a list of package, return the list of installed packages.

Parameters:exec_fn – function to execute Popen and read stdout (for testing)

Module contents