fixes and inclusion of naive first time setup script

This commit is contained in:
Michael Shaw 2022-09-29 15:43:43 -04:00
parent b1ee021115
commit 27009ba16f
4 changed files with 12 additions and 3 deletions

3
.gitignore vendored
View File

@ -3,4 +3,5 @@ venv
.vscode
laconic-so
laconic_stack_orchestrator.egg-info
__pycache__
__pycache__
*~

View File

@ -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"))

View File

@ -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"))

8
first_time_setup.sh Executable file
View File

@ -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