comparison rust/hgcli/pyoxidizer.bzl @ 47848:5f2b0d34f24d stable

pyoxidizer: wrap the pyoxidizer script on multiple line This is clearer and will help with future edition of the script. Differential Revision: https://phab.mercurial-scm.org/D11300
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 18 Aug 2021 16:02:46 +0200
parents 11f834e7177d
children b962a913ee3b
comparison
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")