Show More
@@ -33,6 +33,7 b' SIGNING_SUBJECT_NAME = VARS.get("SIGNING' | |||
|
33 | 33 | TIME_STAMP_SERVER_URL = VARS.get("TIME_STAMP_SERVER_URL", "http://timestamp.digicert.com") |
|
34 | 34 | |
|
35 | 35 | IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE |
|
36 | IS_MACOS = "darwin" in BUILD_TARGET_TRIPLE | |
|
36 | 37 | |
|
37 | 38 | # Code to run in Python interpreter. |
|
38 | 39 | RUN_CODE = """ |
@@ -69,7 +70,7 b' def make_distribution():' | |||
|
69 | 70 | return default_python_distribution(python_version = "3.9") |
|
70 | 71 | |
|
71 | 72 | def resource_callback(policy, resource): |
|
72 | if not IS_WINDOWS: | |
|
73 | if not (IS_WINDOWS or IS_MACOS): | |
|
73 | 74 | resource.add_location = "in-memory" |
|
74 | 75 | return |
|
75 | 76 | |
@@ -100,7 +101,7 b' def make_exe(dist):' | |||
|
100 | 101 | # extensions. |
|
101 | 102 | packaging_policy.extension_module_filter = "all" |
|
102 | 103 | packaging_policy.resources_location = "in-memory" |
|
103 | if IS_WINDOWS: | |
|
104 | if IS_WINDOWS or IS_MACOS: | |
|
104 | 105 | packaging_policy.resources_location_fallback = "filesystem-relative:lib" |
|
105 | 106 | packaging_policy.register_resource_callback(resource_callback) |
|
106 | 107 |
General Comments 0
You need to be logged in to leave comments.
Login now