Show More
@@ -33,7 +33,8 b' SIGNING_SUBJECT_NAME = VARS.get("SIGNING' | |||||
33 | TIME_STAMP_SERVER_URL = VARS.get("TIME_STAMP_SERVER_URL", "http://timestamp.digicert.com") |
|
33 | TIME_STAMP_SERVER_URL = VARS.get("TIME_STAMP_SERVER_URL", "http://timestamp.digicert.com") | |
34 |
|
34 | |||
35 | IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE |
|
35 | IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE | |
36 | IS_MACOS = "darwin" in BUILD_TARGET_TRIPLE |
|
36 | ||
|
37 | USE_IN_MEMORY_RESOURCES = False | |||
37 |
|
38 | |||
38 | # Code to run in Python interpreter. |
|
39 | # Code to run in Python interpreter. | |
39 | RUN_CODE = """ |
|
40 | RUN_CODE = """ | |
@@ -84,7 +85,7 b' def make_distribution():' | |||||
84 | return default_python_distribution(python_version = "3.9") |
|
85 | return default_python_distribution(python_version = "3.9") | |
85 |
|
86 | |||
86 | def resource_callback(policy, resource): |
|
87 | def resource_callback(policy, resource): | |
87 | if not (IS_WINDOWS or IS_MACOS): |
|
88 | if USE_IN_MEMORY_RESOURCES: | |
88 | resource.add_location = "in-memory" |
|
89 | resource.add_location = "in-memory" | |
89 | return |
|
90 | return | |
90 |
|
91 | |||
@@ -115,7 +116,7 b' def make_exe(dist):' | |||||
115 | # extensions. |
|
116 | # extensions. | |
116 | packaging_policy.extension_module_filter = "all" |
|
117 | packaging_policy.extension_module_filter = "all" | |
117 | packaging_policy.resources_location = "in-memory" |
|
118 | packaging_policy.resources_location = "in-memory" | |
118 | if IS_WINDOWS or IS_MACOS: |
|
119 | if not USE_IN_MEMORY_RESOURCES: | |
119 | packaging_policy.resources_location_fallback = "filesystem-relative:lib" |
|
120 | packaging_policy.resources_location_fallback = "filesystem-relative:lib" | |
120 | packaging_policy.register_resource_callback(resource_callback) |
|
121 | packaging_policy.register_resource_callback(resource_callback) | |
121 |
|
122 |
General Comments 0
You need to be logged in to leave comments.
Login now