blob: d1cca4af44ebd49a58bc07d3ceb0d57bef973d6c [file] [log] [blame]
Patrick East657cdcd2016-07-01 16:08:15 -07001#!/bin/bash
2#
3# lib/os_brick
4# Install **os-brick** python module from source
5
6# Dependencies:
7#
8# - functions
9# - DEST, DATA_DIR must be defined
10
11# stack.sh
12# ---------
13# - install_os_brick
14
15# Save trace setting
Thiago Paiva79fc9352016-07-14 14:16:20 -030016_XTRACE_OS_BRICK=$(set +o | grep xtrace)
Patrick East657cdcd2016-07-01 16:08:15 -070017set +o xtrace
18
19
20GITDIR["os-brick"]=$DEST/os-brick
21
22# Install os_brick from git only if requested, otherwise it will be pulled from
23# pip repositories by requirements of projects that need it.
24function install_os_brick {
25 if use_library_from_git "os-brick"; then
26 git_clone_by_name "os-brick"
27 setup_dev_lib "os-brick"
28 fi
29}
Thiago Paiva79fc9352016-07-14 14:16:20 -030030
31# Restore xtrace
32$_XTRACE_OS_BRICK