rust/hgcli/pyoxidizer.bzl
branchstable
changeset 45749 f95b16796688
parent 45685 57b5452a55d5
child 45752 d270b9b797a7
equal deleted inserted replaced
45748:661f1e3b07af 45749:f95b16796688
    37     """Builds a Rust-wrapped Mercurial binary."""
    37     """Builds a Rust-wrapped Mercurial binary."""
    38     packaging_policy = dist.make_python_packaging_policy()
    38     packaging_policy = dist.make_python_packaging_policy()
    39     # Extension may depend on any Python functionality. Include all
    39     # Extension may depend on any Python functionality. Include all
    40     # extensions.
    40     # extensions.
    41     packaging_policy.extension_module_filter = "all"
    41     packaging_policy.extension_module_filter = "all"
    42     packaging_policy.resources_policy = "prefer-in-memory-fallback-filesystem-relative:lib"
    42     packaging_policy.resources_location = "in-memory"
       
    43     packaging_policy.resources_location_fallback = "filesystem-relative:lib"
    43     packaging_policy.register_resource_callback(resource_callback)
    44     packaging_policy.register_resource_callback(resource_callback)
    44 
    45 
    45     config = PythonInterpreterConfig(
    46     config = dist.make_python_interpreter_config()
    46         raw_allocator = "system",
    47     config.raw_allocator = "system"
    47         run_eval = RUN_CODE,
    48     config.run_mode = "eval:%s" % RUN_CODE
    48         # We want to let the user load extensions from the file system
    49     # We want to let the user load extensions from the file system
    49         filesystem_importer = True,
    50     config.filesystem_importer = True
    50         # We need this to make resourceutil happy, since it looks for sys.frozen.
    51     # We need this to make resourceutil happy, since it looks for sys.frozen.
    51         sys_frozen = True,
    52     config.sys_frozen = True
    52         legacy_windows_stdio = True,
    53     config.legacy_windows_stdio = True
    53     )
       
    54 
    54 
    55     exe = dist.to_python_executable(
    55     exe = dist.to_python_executable(
    56         name = "hg",
    56         name = "hg",
    57         packaging_policy = packaging_policy,
    57         packaging_policy = packaging_policy,
    58         config = config,
    58         config = config,
   102 # END OF COMMON USER-ADJUSTED SETTINGS.
   102 # END OF COMMON USER-ADJUSTED SETTINGS.
   103 #
   103 #
   104 # Everything below this is typically managed by PyOxidizer and doesn't need
   104 # Everything below this is typically managed by PyOxidizer and doesn't need
   105 # to be updated by people.
   105 # to be updated by people.
   106 
   106 
   107 PYOXIDIZER_VERSION = "0.8.0-pre"
   107 PYOXIDIZER_VERSION = "0.9.0"
   108 PYOXIDIZER_COMMIT = "4697fb25918dfad6dc73288daeea501063963a08"
   108 PYOXIDIZER_COMMIT = "1fbc264cc004226cd76ee452e0a386ffca6ccfb1"