public class PrebuiltPythonLibrary extends AbstractBuildRuleWithDeclaredAndExtraDeps implements PythonPackagable
Constructor and Description |
---|
PrebuiltPythonLibrary(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
BuildRuleParams params,
SourcePath binarySrc,
boolean excludeDepsFromOmnibus,
boolean compile) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesPythonPackageDisallowOmnibus(PythonPlatform pythonPlatform,
CxxPlatform cxxPlatform,
ActionGraphBuilder graphBuilder)
Allow this rule to opt-out it's transitive dependencies from omnibus linking.
|
com.google.common.collect.ImmutableList<? extends Step> |
getBuildSteps(BuildContext context,
BuildableContext buildableContext) |
Optional<PythonComponents> |
getPythonBytecode(PythonPlatform pythonPlatform,
CxxPlatform cxxPlatform,
ActionGraphBuilder graphBuilder)
Compiled Python bytecode (e.g.
|
Optional<PythonComponents> |
getPythonModules(PythonPlatform pythonPlatform,
CxxPlatform cxxPlatform,
ActionGraphBuilder graphBuilder)
Python modules (i.e.
|
Iterable<BuildRule> |
getPythonPackageDeps(PythonPlatform pythonPlatform,
CxxPlatform cxxPlatform,
ActionGraphBuilder graphBuilder) |
Optional<PythonComponents> |
getPythonResources(PythonPlatform pythonPlatform,
CxxPlatform cxxPlatform,
ActionGraphBuilder graphBuilder)
Resources (e.g.
|
SourcePath |
getSourcePathToOutput() |
deprecatedGetExtraDeps, getBuildDeps, getDeclaredDeps, getTargetGraphOnlyDeps
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, isCacheable, toString, updateBuildRuleResolver
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isPythonZipSafe
getBuildTarget
compareTo, getFullyQualifiedName, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution
public PrebuiltPythonLibrary(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, BuildRuleParams params, SourcePath binarySrc, boolean excludeDepsFromOmnibus, boolean compile)
public Iterable<BuildRule> getPythonPackageDeps(PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, ActionGraphBuilder graphBuilder)
getPythonPackageDeps
in interface PythonPackagable
public Optional<PythonComponents> getPythonModules(PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, ActionGraphBuilder graphBuilder)
PythonPackagable
getPythonModules
in interface PythonPackagable
Path
form (including
extension).public Optional<PythonComponents> getPythonResources(PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, ActionGraphBuilder graphBuilder)
PythonPackagable
getPythonResources
in interface PythonPackagable
Path
.public Optional<PythonComponents> getPythonBytecode(PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, ActionGraphBuilder graphBuilder)
PythonPackagable
getPythonBytecode
in interface PythonPackagable
Path
form
(including extension).public com.google.common.collect.ImmutableList<? extends Step> getBuildSteps(BuildContext context, BuildableContext buildableContext)
getBuildSteps
in interface BuildRule
@Nullable public SourcePath getSourcePathToOutput()
getSourcePathToOutput
in interface BuildRule
public boolean doesPythonPackageDisallowOmnibus(PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, ActionGraphBuilder graphBuilder)
PythonPackagable
doesPythonPackageDisallowOmnibus
in interface PythonPackagable
PythonPackagable
's transitive deps must be excluded from omnibus
linking.