Installer

class setup.Installer(environment: Environment, packages: list[str], command: list[str], is_conda: bool, is_gui: bool)

Bases: object

Uses the python Subprocess module to install packages.

Parameters:
  • environment (Environment) – Environment class holding information about the running system

  • packages (list[str]) – The list of package names that are to be installed

  • command (list[str]) – The command to run

  • is_conda (bool) – True if conda install command is running. False if pip install command is running

  • is_gui (bool) – True if the process is being called from the Faceswap GUI

Methods Summary

__call__()

Install a package using the Subprocess module

Methods Documentation

__call__() int

Install a package using the Subprocess module

Return type:

The return code of the package install process

__call__() int

Install a package using the Subprocess module

Return type:

The return code of the package install process