Mercurial > hg
changeset 45879:5d73d3053d92
pyoxidizer: run buildifier
Differential Revision: https://phab.mercurial-scm.org/D9342
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 19 Nov 2020 14:55:55 -0500 |
parents | f4a218331ff4 |
children | 7a273336d3d3 |
files | rust/hgcli/pyoxidizer.bzl |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hgcli/pyoxidizer.bzl Tue Nov 17 16:23:57 2020 -0800 +++ b/rust/hgcli/pyoxidizer.bzl Thu Nov 19 14:55:55 2020 -0500 @@ -17,6 +17,7 @@ if not IS_WINDOWS: resource.add_location = "in-memory" return + # We use a custom resource routing policy to influence where things are loaded # from. # @@ -39,6 +40,7 @@ def make_exe(dist): """Builds a Rust-wrapped Mercurial binary.""" packaging_policy = dist.make_python_packaging_policy() + # Extension may depend on any Python functionality. Include all # extensions. packaging_policy.extension_module_filter = "all" @@ -50,8 +52,10 @@ config = dist.make_python_interpreter_config() config.raw_allocator = "system" config.run_command = RUN_CODE + # We want to let the user load extensions from the file system config.filesystem_importer = True + # We need this to make resourceutil happy, since it looks for sys.frozen. config.sys_frozen = True config.legacy_windows_stdio = True