PythonVirtualenvPreparer

public class PythonVirtualenvPreparer
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.PythonVirtualenvPreparer


Sets up a Python virtualenv on the host and installs packages. To activate it, the working directory is changed to the root of the virtualenv.

Summary

Fields

protected static final String PYTHONPATH

Public constructors

PythonVirtualenvPreparer()

Public methods

void setUp(TestInformation testInformation)

Protected methods

void addDepModule(String module)
void installDeps(IBuildInfo buildInfo, ITestDevice device)
void setRequirementsFile(File f)
void startVirtualenv(IBuildInfo buildInfo, ITestDevice device)

Fields

PYTHONPATH

protected static final String PYTHONPATH

Public constructors

PythonVirtualenvPreparer

public PythonVirtualenvPreparer ()

Public methods

setUp

public void setUp (TestInformation testInformation)

Parameters
testInformation TestInformation

Throws
TargetSetupError

Protected methods

addDepModule

protected void addDepModule (String module)

Parameters
module String

installDeps

protected void installDeps (IBuildInfo buildInfo, 
                ITestDevice device)

Parameters
buildInfo IBuildInfo

device ITestDevice

Throws
TargetSetupError

setRequirementsFile

protected void setRequirementsFile (File f)

Parameters
f File

startVirtualenv

protected void startVirtualenv (IBuildInfo buildInfo, 
                ITestDevice device)

Parameters
buildInfo IBuildInfo

device ITestDevice

Throws
TargetSetupError