public class PythonPlatformsProviderFactory extends Object implements ToolchainFactory<PythonPlatformsProvider>
| Constructor and Description |
|---|
PythonPlatformsProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
Optional<PythonPlatformsProvider> |
createToolchain(ToolchainProvider toolchainProvider,
ToolchainCreationContext context,
TargetConfiguration toolchainTargetConfiguration) |
protected PythonPlatform |
getDefaultPythonPlatform(ToolchainProvider toolchainProvider,
PythonBuckConfig pythonBuckConfig,
ProcessExecutor executor,
TargetConfiguration targetConfiguration) |
com.google.common.collect.ImmutableList<PythonPlatform> |
getPythonPlatforms(ToolchainProvider toolchainProvider,
PythonBuckConfig pythonBuckConfig,
ProcessExecutor processExecutor,
TargetConfiguration targetConfiguration)
Constructs set of Python platform flavors given in a .buckconfig file, as is specified by
section names of the form python#{flavor name}.
|
public Optional<PythonPlatformsProvider> createToolchain(ToolchainProvider toolchainProvider, ToolchainCreationContext context, TargetConfiguration toolchainTargetConfiguration)
createToolchain in interface ToolchainFactory<PythonPlatformsProvider>public com.google.common.collect.ImmutableList<PythonPlatform> getPythonPlatforms(ToolchainProvider toolchainProvider, PythonBuckConfig pythonBuckConfig, ProcessExecutor processExecutor, TargetConfiguration targetConfiguration)
protected PythonPlatform getDefaultPythonPlatform(ToolchainProvider toolchainProvider, PythonBuckConfig pythonBuckConfig, ProcessExecutor executor, TargetConfiguration targetConfiguration)