From 27009ba16f43789bcdc9bb547ade8d0ec7288509 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Thu, 29 Sep 2022 15:43:43 -0400 Subject: [PATCH] fixes and inclusion of naive first time setup script --- .gitignore | 3 ++- app/build_containers.py | 2 +- app/setup_repositories.py | 2 +- first_time_setup.sh | 8 ++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 first_time_setup.sh diff --git a/.gitignore b/.gitignore index 6137a646..33e988a5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ venv .vscode laconic-so laconic_stack_orchestrator.egg-info -__pycache__ \ No newline at end of file +__pycache__ +*~ \ No newline at end of file diff --git a/app/build_containers.py b/app/build_containers.py index 8ab3e77f..abe909ac 100644 --- a/app/build_containers.py +++ b/app/build_containers.py @@ -44,7 +44,7 @@ def command(ctx, include, exclude): local_stack = ctx.obj.local_stack if local_stack: - dev_root_path = default=os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")]) + dev_root_path = default=os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")] print(f'Local stack dev_root_path (CERC_REPO_BASE_DIR) overridden to: {dev_root_path}') else: dev_root_path = os.path.expanduser(config("CERC_REPO_BASE_DIR", default="~/cerc")) diff --git a/app/setup_repositories.py b/app/setup_repositories.py index 7861aac8..ead3631d 100644 --- a/app/setup_repositories.py +++ b/app/setup_repositories.py @@ -71,7 +71,7 @@ def command(ctx, check_only, pull, branches_file): local_stack = ctx.obj.local_stack if local_stack: - dev_root_path = default=os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")]) + dev_root_path = default=os.getcwd()[0:os.getcwd().rindex("stack-orchestrator")] print(f'Local stack dev_root_path (CERC_REPO_BASE_DIR) overridden to: {dev_root_path}') else: dev_root_path = os.path.expanduser(config("CERC_REPO_BASE_DIR", default="~/cerc")) diff --git a/first_time_setup.sh b/first_time_setup.sh new file mode 100755 index 00000000..74ebee0d --- /dev/null +++ b/first_time_setup.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +python3 -m venv venv +source ./venv/bin/activate +pip install --editable . +pip install shiv +shiv -c laconic-so -o laconic-so +./laconic-so --verbose --local_stack setup-repositories