pyoxidizer: wrap the pyoxidizer script on multiple line stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 18 Aug 2021 16:02:46 +0200
branchstable
changeset 47848 5f2b0d34f24d
parent 47847 8843de648aed
child 47849 f07a00543396
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
rust/hgcli/pyoxidizer.bzl
--- 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")