Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ |
---|
4 | set -euxo pipefail |
---|
5 | |
---|
6 | # The filesystem location of the wheelhouse which we'll populate with wheels |
---|
7 | # for all of our dependencies. |
---|
8 | WHEELHOUSE_PATH="$1" |
---|
9 | shift |
---|
10 | |
---|
11 | # The filesystem location of the root of a virtualenv we can use to get/build |
---|
12 | # wheels. |
---|
13 | BOOTSTRAP_VENV="$1" |
---|
14 | shift |
---|
15 | |
---|
16 | # The filesystem location of the root of the project source. We need this to |
---|
17 | # know what wheels to get/build, of course. |
---|
18 | PROJECT_ROOT="$1" |
---|
19 | shift |
---|
20 | |
---|
21 | # The basename of the Python executable (found on PATH) that will be used with |
---|
22 | # this image. This lets us create a virtualenv that uses the correct Python. |
---|
23 | PYTHON="$1" |
---|
24 | shift |
---|
25 | |
---|
26 | "${PROJECT_ROOT}"/.circleci/fix-permissions.sh "${WHEELHOUSE_PATH}" "${BOOTSTRAP_VENV}" "${PROJECT_ROOT}" |
---|
27 | sudo --set-home -u nobody "${PROJECT_ROOT}"/.circleci/create-virtualenv.sh "${WHEELHOUSE_PATH}" "${BOOTSTRAP_VENV}" "${PYTHON}" |
---|
28 | sudo --set-home -u nobody "${PROJECT_ROOT}"/.circleci/populate-wheelhouse.sh "${WHEELHOUSE_PATH}" "${BOOTSTRAP_VENV}" "${PROJECT_ROOT}" |
---|
Note: See
TracBrowser
for help on using the repository browser.