Skip to content

Commit

Permalink
Install pre-built client by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 3, 2024
1 parent 72d9e06 commit cfeb7da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions planemo/galaxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
9 changes: 8 additions & 1 deletion planemo/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
)


Expand Down Expand Up @@ -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(),
)
Expand Down

0 comments on commit cfeb7da

Please sign in to comment.