public class PythonEnvironment extends Object implements Tool
Modifier and Type | Class and Description |
---|---|
static class |
PythonEnvironment.PythonEnvironmentSerialization
Serializes PythonEnvironment such that it is recreated from the .buckconfig in the context that
it's deserialized in.
|
Constructor and Description |
---|
PythonEnvironment(Path pythonPath,
PythonVersion pythonVersion,
String configSection,
TargetConfiguration targetConfiguration) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<String> |
getCommandPrefix(SourcePathResolverAdapter resolver) |
com.google.common.collect.ImmutableMap<String,String> |
getEnvironment(SourcePathResolverAdapter resolver) |
Path |
getPythonPath() |
PythonVersion |
getPythonVersion() |
public PythonEnvironment(Path pythonPath, PythonVersion pythonVersion, String configSection, TargetConfiguration targetConfiguration)
public Path getPythonPath()
public PythonVersion getPythonVersion()
public com.google.common.collect.ImmutableList<String> getCommandPrefix(SourcePathResolverAdapter resolver)
getCommandPrefix
in interface Tool
public com.google.common.collect.ImmutableMap<String,String> getEnvironment(SourcePathResolverAdapter resolver)
getEnvironment
in interface Tool