rust/hgcli/pyoxidizer.bzl
branchstable
changeset 47848 5f2b0d34f24d
parent 47643 11f834e7177d
child 47850 b962a913ee3b
equal deleted inserted replaced
47847:8843de648aed 47848:5f2b0d34f24d
    33 TIME_STAMP_SERVER_URL = VARS.get("TIME_STAMP_SERVER_URL", "http://timestamp.digicert.com")
    33 TIME_STAMP_SERVER_URL = VARS.get("TIME_STAMP_SERVER_URL", "http://timestamp.digicert.com")
    34 
    34 
    35 IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE
    35 IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE
    36 
    36 
    37 # Code to run in Python interpreter.
    37 # Code to run in Python interpreter.
    38 RUN_CODE = "import hgdemandimport; hgdemandimport.enable(); from mercurial import dispatch; dispatch.run()"
    38 RUN_CODE = """
       
    39 import hgdemandimport;
       
    40 hgdemandimport.enable();
       
    41 from mercurial import dispatch;
       
    42 dispatch.run();
       
    43 """
    39 
    44 
    40 set_build_path(ROOT + "/build/pyoxidizer")
    45 set_build_path(ROOT + "/build/pyoxidizer")
    41 
    46 
    42 def make_distribution():
    47 def make_distribution():
    43     return default_python_distribution(python_version = "3.9")
    48     return default_python_distribution(python_version = "3.9")