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