Changeset View
Changeset View
Standalone View
Standalone View
rust/hgcli/pyoxidizer.bzl
ROOT = CWD + "/../.." | ROOT = CWD + "/../.." | ||||
IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE | IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE | ||||
# Code to run in Python interpreter. | # Code to run in Python interpreter. | ||||
RUN_CODE = "import hgdemandimport; hgdemandimport.enable(); from mercurial import dispatch; dispatch.run()" | RUN_CODE = "import hgdemandimport; hgdemandimport.enable(); from mercurial import dispatch; dispatch.run()" | ||||
set_build_path(ROOT + "/build/pyoxidizer") | set_build_path(ROOT + "/build/pyoxidizer") | ||||
def make_distribution(): | def make_distribution(): | ||||
return default_python_distribution() | return default_python_distribution(python_version = "3.8") | ||||
def make_distribution_windows(): | def make_distribution_windows(): | ||||
return default_python_distribution(flavor = "standalone_dynamic") | return default_python_distribution(flavor = "standalone_dynamic") | ||||
def resource_callback(policy, resource): | def resource_callback(policy, resource): | ||||
if not IS_WINDOWS: | if not IS_WINDOWS: | ||||
resource.add_location = "in-memory" | resource.add_location = "in-memory" | ||||
return | return | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |