Documentation ¶
Overview ¶
Package pex implements construction of .pex files in Go. For performance reasons we've ultimately abandoned doing this in Python; we were ultimately not using pex for much at construction time and we already have most of what we need in Go via jarcat.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildProperties ¶
type BuildProperties struct { Class string `json:"class"` Platform string `json:"platform"` Version []int `json:"version"` }
A BuildProperties represents the BuildProperties entry in a Info.
type Info ¶
type Info struct { BuildProperties BuildProperties `json:"build_properties"` CodeHash string `json:"code_hash"` EntryPoint string `json:"entry_point"` ZipSafe bool `json:"zip_safe"` PexRoot string `json:"pex_root"` }
A Info describes the PEX-INFO file written into the root of the .zip file.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
A Writer implements writing a .pex file in various steps.
func NewWriter ¶
NewWriter constructs a new Writer.
func (*Writer) SetShebang ¶
SetShebang sets the leading shebang that will be written to the file.
func (*Writer) SetTest ¶
SetTest sets this Writer to write tests using the given sources. This overrides the entry point given earlier.