public class LazyPythonPlatform extends Object implements PythonPlatform
PythonPlatform that lazily creates PythonEnvironment and cxx
library.
This should be used to avoid creating all registered Python platform.
| Constructor and Description |
|---|
LazyPythonPlatform(ToolchainProvider toolchainProvider,
PythonBuckConfig pythonBuckConfig,
ProcessExecutor processExecutor,
TargetConfiguration targetConfiguration,
Flavor flavor,
String configSection) |
| Modifier and Type | Method and Description |
|---|---|
Optional<BuildTarget> |
getCxxLibrary() |
PythonEnvironment |
getEnvironment() |
Flavor |
getFlavor() |
com.google.common.collect.ImmutableList<String> |
getInplaceBinaryInterpreterFlags() |
public LazyPythonPlatform(ToolchainProvider toolchainProvider, PythonBuckConfig pythonBuckConfig, ProcessExecutor processExecutor, TargetConfiguration targetConfiguration, Flavor flavor, String configSection)
public Flavor getFlavor()
getFlavor in interface FlavorConvertiblegetFlavor in interface PythonPlatformFlavor associated with this python platform.public PythonEnvironment getEnvironment()
getEnvironment in interface PythonPlatformPythonEnvironment for this python platform.public Optional<BuildTarget> getCxxLibrary()
getCxxLibrary in interface PythonPlatformBuildTarget wrapping the C/C++ library used by C/C++ extensions.public com.google.common.collect.ImmutableList<String> getInplaceBinaryInterpreterFlags()
getInplaceBinaryInterpreterFlags in interface PythonPlatform