source: trunk/.circleci/setup-virtualenv.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: 932 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 root of a virtualenv we can use to get/build
7# wheels.
8BOOTSTRAP_VENV="$1"
9shift
10
11# The filesystem location of the root of the project source.  We need this to
12# know what wheels to get/build, of course.
13PROJECT_ROOT="$1"
14shift
15
16# The filesystem location of the wheelhouse which we'll populate with wheels
17# for all of our dependencies.
18WHEELHOUSE_PATH="$1"
19shift
20
21TAHOE_LAFS_TOX_ENVIRONMENT=$1
22shift
23
24TAHOE_LAFS_TOX_ARGS=$1
25shift || :
26
27# Tell pip where it can find any existing wheels.
28export PIP_FIND_LINKS="file://${WHEELHOUSE_PATH}"
29export PIP_NO_INDEX="1"
30
31# Get everything else installed in it, too.
32"${BOOTSTRAP_VENV}"/bin/tox \
33     -c "${PROJECT_ROOT}"/tox.ini \
34     --workdir /tmp/tahoe-lafs.tox \
35     --notest \
36     -e "${TAHOE_LAFS_TOX_ENVIRONMENT}" \
37     ${TAHOE_LAFS_TOX_ARGS}
Note: See TracBrowser for help on using the repository browser.