google / subpar

Subpar is a utility for creating self-contained python executables. It is designed to work well with Bazel.
Apache License 2.0
567 stars 69 forks source link

Added exclude_prefixes attribute #124

Open fughilli opened 4 years ago

fughilli commented 4 years ago

This PR adds an "exclude_prefixes" attribute to the par_binary rule, such that files referenced in the runfiles manifest can be excluded from the final archive. This is useful for cross-compilation scenarios, where the runfiles may include the sysroot used for cross compilation. Since these files will be present in the execution environment of the cross-compilation target, there is no need to include them in the archive.