Class PythonInPlaceBinary

    • Method Detail

      • outputFileCanBeCopied

        public boolean outputFileCanBeCopied()
        Specified by:
        outputFileCanBeCopied in interface BuildRule
        true if the output of this build rule is compatible with buck build --out. To be compatible, that means (1) BuildRule.getSourcePathToOutput() cannot return null, and (2) the output file works as intended when copied to an arbitrary path (i.e., does not have any dependencies on relative symlinks).
      • getBuildDeps

        public SortedSet<BuildRule> getBuildDeps()
        Specified by:
        getBuildDeps in interface BuildRule
        the set of rules that must be built before this rule. Normally, this matches the value of the deps argument for this build rule in the build file in which it was defined.

        However, there are special cases where other arguments pull in implicit dependencies (e.g., the keystore argument in android_binary). In these cases, the implicit dependencies are also included in the set returned by this method. The value of the original deps argument, as defined in the build file, must be accessed via a custom getter provided by the build rule.