##// END OF EJS Templates
pyoxidizer: default to one-file binary on non-Windows platforms...
Augie Fackler -
r46435:f14c33b2 default
parent child Browse files
Show More
@@ -14,6 +14,9 b' def make_distribution_windows():'
14 14 return default_python_distribution(flavor = "standalone_dynamic")
15 15
16 16 def resource_callback(policy, resource):
17 if not IS_WINDOWS:
18 resource.add_location = "in-memory"
19 return
17 20 # We use a custom resource routing policy to influence where things are loaded
18 21 # from.
19 22 #
@@ -40,7 +43,8 b' def make_exe(dist):'
40 43 # extensions.
41 44 packaging_policy.extension_module_filter = "all"
42 45 packaging_policy.resources_location = "in-memory"
43 packaging_policy.resources_location_fallback = "filesystem-relative:lib"
46 if IS_WINDOWS:
47 packaging_policy.resources_location_fallback = "filesystem-relative:lib"
44 48 packaging_policy.register_resource_callback(resource_callback)
45 49
46 50 config = dist.make_python_interpreter_config()
General Comments 0
You need to be logged in to leave comments. Login now