source: trunk/.circleci/populate-wheelhouse.sh

Last change on this file was 29c0ca5, checked in by Jean-Paul Calderone <exarkun@…>, at 2023-04-28T17:51:22Z

put the tox installation near other software installation

  • Property mode set to 100755
File size: 951 bytes
Line 
1#!/bin/bash
2
3# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
4set -euxo pipefail
5
6# The filesystem location of the wheelhouse which we'll populate with wheels
7# for all of our dependencies.
8WHEELHOUSE_PATH="$1"
9shift
10
11# The filesystem location of the root of a virtualenv we can use to get/build
12# wheels.
13BOOTSTRAP_VENV="$1"
14shift
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.
18PROJECT_ROOT="$1"
19shift
20
21# For convenience.
22PIP="${BOOTSTRAP_VENV}/bin/pip"
23
24# Tell pip where it can find any existing wheels.
25export 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.
29LANG="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.