changeset 47843: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 8843de648aed
children f07a00543396
files rust/hgcli/pyoxidizer.bzl
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hgcli/pyoxidizer.bzl	Wed Aug 18 15:05:25 2021 +0200
+++ b/rust/hgcli/pyoxidizer.bzl	Wed Aug 18 16:02:46 2021 +0200
@@ -35,7 +35,12 @@
 IS_WINDOWS = "windows" in BUILD_TARGET_TRIPLE
 
 # 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")