Skip to content
Snippets Groups Projects
Commit f14c33b2e497 authored by Augie Fackler's avatar Augie Fackler
Browse files

pyoxidizer: default to one-file binary on non-Windows platforms

Windows has some extra constraints that require a multi-file install,
but we expect folks to use an MSI or similar installer there so it's
less of a big deal.

Differential Revision: https://phab.mercurial-scm.org/D9289
parent c102b704edb5
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,9 @@
return default_python_distribution(flavor = "standalone_dynamic")
def resource_callback(policy, resource):
if not IS_WINDOWS:
resource.add_location = "in-memory"
return
# We use a custom resource routing policy to influence where things are loaded
# from.
#
......@@ -40,7 +43,8 @@
# extensions.
packaging_policy.extension_module_filter = "all"
packaging_policy.resources_location = "in-memory"
packaging_policy.resources_location_fallback = "filesystem-relative:lib"
if IS_WINDOWS:
packaging_policy.resources_location_fallback = "filesystem-relative:lib"
packaging_policy.register_resource_callback(resource_callback)
config = dist.make_python_interpreter_config()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment