summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-30 12:54:52 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-30 12:54:52 +0530
commit680d61dfdede48cf8947b9772ab5016c4e068efe (patch)
treeca81b2839e2741c3909800b04261e8cfde2c0995
parentc9012cbd4ce9ba1037807ec1b00a6c9c5e1b0d14 (diff)
downloadwallet-core-680d61dfdede48cf8947b9772ab5016c4e068efe.tar.gz
wallet-core-680d61dfdede48cf8947b9772ab5016c4e068efe.tar.bz2
wallet-core-680d61dfdede48cf8947b9772ab5016c4e068efe.zip
node version check in build system
m---------build-system/taler-build-scripts0
-rw-r--r--configure.py15
2 files changed, 10 insertions, 5 deletions
diff --git a/build-system/taler-build-scripts b/build-system/taler-build-scripts
-Subproject d81bbfabc2538932f631d3946bd6a9b95182b4f
+Subproject b2604317980b9cb26f1445dfb6ff82c84f9cbe6
diff --git a/configure.py b/configure.py
index 89d143325..4595aae10 100644
--- a/configure.py
+++ b/configure.py
@@ -4,12 +4,17 @@
# This file is invoked by './configure' and should usually not be invoked
# manually.
-from talerbuildconfig import *
+import talerbuildconfig as tbc
+import sys
-b = BuildConfig()
+if getattr(tbc, "serialversion", 0) < 2:
+ print("talerbuildconfig outdated, please update the build-common submodule and/or bootstrap")
+ sys.exit(1)
+
+b = tbc.BuildConfig()
b.enable_prefix()
b.enable_configmk()
-b.add_tool(PosixTool("find"))
-b.add_tool(NodeJsTool())
-b.add_tool(YarnTool())
+b.add_tool(tbc.PosixTool("find"))
+b.add_tool(tbc.NodeJsTool(version_spec=">=12"))
+b.add_tool(tbc.YarnTool())
b.run()