| 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 | # For convenience. |
|---|
| 22 | PIP="${BOOTSTRAP_VENV}/bin/pip" |
|---|
| 23 | |
|---|
| 24 | # Tell pip where it can find any existing wheels. |
|---|
| 25 | export PIP_FIND_LINKS="file://${WHEELHOUSE_PATH}" |
|---|
| 26 | |
|---|
| 27 | # Populate the wheelhouse, if necessary. zfec 1.5.3 can only be built with a |
|---|
| 28 | # UTF-8 environment so make sure we have one, at least for this invocation. |
|---|
| 29 | LANG="en_US.UTF-8" "${PIP}" \ |
|---|
| 30 | wheel \ |
|---|
| 31 | --wheel-dir "${WHEELHOUSE_PATH}" \ |
|---|
| 32 | "${PROJECT_ROOT}"[testenv] \ |
|---|
| 33 | "${PROJECT_ROOT}"[test] |
|---|
Note: See
TracBrowser
for help on using the repository browser.