jiahuili430 commented on code in PR #4835:
URL: https://github.com/apache/couchdb/pull/4835#discussion_r1389437909


##########
dev/run:
##########
@@ -504,6 +512,119 @@ def boot_nouveau(ctx):
     )
 
 
+CLOUSEAU_DIR = "clouseau"
+JAVA_VERSION_RE = re.compile('"(\d+\.\d+).*"')
+
+
+def get_java_version(java):
+    output = sp.check_output([java, "-version"], 
stderr=sp.STDOUT).decode("utf-8")
+    if output:
+        matches = JAVA_VERSION_RE.search(output)
+        if matches:
+            return float(matches.groups()[0])
+
+
+@log("Start Clouseau node clouseau{idx}")
+def boot_clouseau(ctx, idx):
+    def warn(reason):
+        print("Warning: " + reason)
+
+    if not os.path.isdir(CLOUSEAU_DIR):
+        warn(
+            "Clouseau deployment cannot be found, please run ./configure with 
--enable-clouseau"

Review Comment:
   Shall we highlight the command?
   "Clouseau deployment cannot be found, please run `./configure 
--enable-clouseau`"
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to