Show More
@@ -17,6 +17,7 b' def resource_callback(policy, resource):' | |||
|
17 | 17 | if not IS_WINDOWS: |
|
18 | 18 | resource.add_location = "in-memory" |
|
19 | 19 | return |
|
20 | ||
|
20 | 21 | # We use a custom resource routing policy to influence where things are loaded |
|
21 | 22 | # from. |
|
22 | 23 | # |
@@ -39,6 +40,7 b' def resource_callback(policy, resource):' | |||
|
39 | 40 | def make_exe(dist): |
|
40 | 41 | """Builds a Rust-wrapped Mercurial binary.""" |
|
41 | 42 | packaging_policy = dist.make_python_packaging_policy() |
|
43 | ||
|
42 | 44 | # Extension may depend on any Python functionality. Include all |
|
43 | 45 | # extensions. |
|
44 | 46 | packaging_policy.extension_module_filter = "all" |
@@ -50,8 +52,10 b' def make_exe(dist):' | |||
|
50 | 52 | config = dist.make_python_interpreter_config() |
|
51 | 53 | config.raw_allocator = "system" |
|
52 | 54 | config.run_command = RUN_CODE |
|
55 | ||
|
53 | 56 | # We want to let the user load extensions from the file system |
|
54 | 57 | config.filesystem_importer = True |
|
58 | ||
|
55 | 59 | # We need this to make resourceutil happy, since it looks for sys.frozen. |
|
56 | 60 | config.sys_frozen = True |
|
57 | 61 | config.legacy_windows_stdio = True |
General Comments 0
You need to be logged in to leave comments.
Login now