84172bfbe0
This adds the ansible playbooks required by kayobe to the manifest by using the data_files option in setuptools. When using pip to install kayobe into a virtualenv, these files will be placed in <venv>/kayobe/share/. In an editable install, e.g using `pip install -e .`, data_files are not installed into the virtualenv. Instead, we must follow the egg-link file to find out the actual location. Story: 2004252 Task: 27787 Change-Id: Ibef040eceb547476007f83c0d5dcdb2bc6986d1e
23 lines
450 B
Bash
Executable File
23 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# Install kayobe and its dependencies in a virtual environment.
|
|
|
|
PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
source "${PARENT}/functions"
|
|
|
|
|
|
function main {
|
|
# Don't require kayobe configuration to exist for installation - it is not
|
|
# required for the legacy manual deployment procedure.
|
|
KAYOBE_CONFIG_REQUIRED=0
|
|
config_init
|
|
install_dependencies
|
|
install_kayobe_dev_venv
|
|
}
|
|
|
|
main
|