Changeset View
Changeset View
Standalone View
Standalone View
rust/hgcli/pyoxidizer.bzl
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | def make_exe(dist): | ||||
# extensions. | # extensions. | ||||
packaging_policy.extension_module_filter = "all" | packaging_policy.extension_module_filter = "all" | ||||
packaging_policy.resources_location = "in-memory" | packaging_policy.resources_location = "in-memory" | ||||
if IS_WINDOWS: | if IS_WINDOWS: | ||||
packaging_policy.resources_location_fallback = "filesystem-relative:lib" | packaging_policy.resources_location_fallback = "filesystem-relative:lib" | ||||
packaging_policy.register_resource_callback(resource_callback) | packaging_policy.register_resource_callback(resource_callback) | ||||
config = dist.make_python_interpreter_config() | config = dist.make_python_interpreter_config() | ||||
config.raw_allocator = "system" | config.allocator_backend = "default" | ||||
config.run_command = RUN_CODE | config.run_command = RUN_CODE | ||||
# We want to let the user load extensions from the file system | # We want to let the user load extensions from the file system | ||||
config.filesystem_importer = True | config.filesystem_importer = True | ||||
# We need this to make resourceutil happy, since it looks for sys.frozen. | # We need this to make resourceutil happy, since it looks for sys.frozen. | ||||
config.sys_frozen = True | config.sys_frozen = True | ||||
config.legacy_windows_stdio = True | config.legacy_windows_stdio = True | ||||
Show All 29 Lines |