Class PexStep

  • All Implemented Interfaces:

    public class PexStep
    extends ShellStep
    • Constructor Detail

      • PexStep

        public PexStep​(ProjectFilesystem filesystem,
             <String,​String> environment,
             <String> commandPrefix,
                       Path pythonPath,
                       PythonVersion pythonVersion,
                       Path destination,
                       String entry,
                       com.facebook.buck.features.python.PythonResolvedPackageComponents components,
             <String> preloadLibraries)
    • Method Detail

      • getShortName

        public String getShortName()
        a short name/description for the command, such as "javac". Should fit on one line.
      • getStdin

        protected Optional<String> getStdin​(ExecutionContext context)
                                     throws IOException
        Return the manifest as a JSON blob to write to the pex processes stdin.

        We use stdin rather than passing as an argument to the processes since manifest files can occasionally get extremely large, and surpass exec/shell limits on arguments.

        getStdin in class ShellStep
      • getShellCommandInternal

        protected<String> getShellCommandInternal​(ExecutionContext context)
        Description copied from class: ShellStep
        Implementations of this method should not have any observable side-effects.
        Specified by:
        getShellCommandInternal in class ShellStep
      • getEnvironmentVariables

        public<String,​String> getEnvironmentVariables​(ExecutionContext context)
        Description copied from class: ShellStep
        Returns the environment variables to include when running this ShellStep.

        By default, this method returns an empty map.

        getEnvironmentVariables in class ShellStep
        context - that may be useful when determining environment variables to include.
      • getCommandPrefix

        protected<String> getCommandPrefix()