Show More
@@ -14,6 +14,9 b' def make_distribution_windows():' | |||||
14 | return default_python_distribution(flavor = "standalone_dynamic") |
|
14 | return default_python_distribution(flavor = "standalone_dynamic") | |
15 |
|
15 | |||
16 | def resource_callback(policy, resource): |
|
16 | def resource_callback(policy, resource): | |
|
17 | if not IS_WINDOWS: | |||
|
18 | resource.add_location = "in-memory" | |||
|
19 | return | |||
17 | # We use a custom resource routing policy to influence where things are loaded |
|
20 | # We use a custom resource routing policy to influence where things are loaded | |
18 | # from. |
|
21 | # from. | |
19 | # |
|
22 | # | |
@@ -40,7 +43,8 b' def make_exe(dist):' | |||||
40 | # extensions. |
|
43 | # extensions. | |
41 | packaging_policy.extension_module_filter = "all" |
|
44 | packaging_policy.extension_module_filter = "all" | |
42 | packaging_policy.resources_location = "in-memory" |
|
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 | packaging_policy.register_resource_callback(resource_callback) |
|
48 | packaging_policy.register_resource_callback(resource_callback) | |
45 |
|
49 | |||
46 | config = dist.make_python_interpreter_config() |
|
50 | config = dist.make_python_interpreter_config() |
General Comments 0
You need to be logged in to leave comments.
Login now