From cfeb7da0f7de083d1dca7fb2816f664099b63ec2 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 3 May 2024 14:51:38 +0200 Subject: [PATCH] Install pre-built client by default --- planemo/galaxy/config.py | 2 ++ planemo/options.py | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/planemo/galaxy/config.py b/planemo/galaxy/config.py index caf0c768c..1704b484b 100644 --- a/planemo/galaxy/config.py +++ b/planemo/galaxy/config.py @@ -357,6 +357,8 @@ def config_join(*args): install_env = {} if kwds.get("galaxy_skip_client_build", True): install_env["GALAXY_SKIP_CLIENT_BUILD"] = "1" + elif kwds.get("galaxy_install_prebuilt_client", True): + install_env["GALAXY_INSTALL_PREBUILT_CLIENT"] = "1" if galaxy_root is None: galaxy_root = config_join("galaxy-dev") if not os.path.isdir(galaxy_root): diff --git a/planemo/options.py b/planemo/options.py index da8a4ca90..435f22dd5 100644 --- a/planemo/options.py +++ b/planemo/options.py @@ -36,7 +36,13 @@ def skip_venv_option(): def skip_client_build_option(): """Annotate click command as consume the --skip_client_build option.""" return planemo_option( - "--skip_client_build", dest="galaxy_skip_client_build", is_flag=True, default=False, help=("Do not build Galaxy client when serving Galaxy.") + "--skip_client_build", "galaxy_skip_client_build", is_flag=True, default=False, help=("Do not build Galaxy client when serving Galaxy.") + ) + + +def install_prebuilt_client_option(): + return planemo_option( + "--install_prebuilt_client/--no_install_prebuilt_client", "galaxy_install_prebuilt_client", is_flag=True, default=True, help=("Install a pre-built client from npm. Turn this off you need access to visualizations.") ) @@ -1268,6 +1274,7 @@ def galaxy_serve_options(): daemon_option(), pid_file_option(), ignore_dependency_problems_option(), + install_prebuilt_client_option(), skip_client_build_option(), shed_install_option(), )