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

Last change on this file was ab9ccae, checked in by Jean-Paul Calderone <exarkun@…>, at 2020-08-03T21:02:15Z

try doing the pip wheel with the right LANG

  • Property mode set to 100755
File size: 1.7 KB
Line 
1#!/bin/bash
2
3# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
4set -euxo pipefail
5
6# Basic Python packages that you just need to have around to do anything,
7# practically speaking.
8BASIC_DEPS="pip wheel"
9
10# Python packages we need to support the test infrastructure.  *Not* packages
11# Tahoe-LAFS itself (implementation or test suite) need.
12TEST_DEPS="tox codecov"
13
14# Python packages we need to generate test reports for CI infrastructure.
15# *Not* packages Tahoe-LAFS itself (implement or test suite) need.
16REPORTING_DEPS="python-subunit junitxml subunitreporter"
17
18# The filesystem location of the wheelhouse which we'll populate with wheels
19# for all of our dependencies.
20WHEELHOUSE_PATH="$1"
21shift
22
23# The filesystem location of the root of a virtualenv we can use to get/build
24# wheels.
25BOOTSTRAP_VENV="$1"
26shift
27
28# The filesystem location of the root of the project source.  We need this to
29# know what wheels to get/build, of course.
30PROJECT_ROOT="$1"
31shift
32
33# For convenience.
34PIP="${BOOTSTRAP_VENV}/bin/pip"
35
36# Tell pip where it can find any existing wheels.
37export PIP_FIND_LINKS="file://${WHEELHOUSE_PATH}"
38
39# Populate the wheelhouse, if necessary.  zfec 1.5.3 can only be built with a
40# UTF-8 environment so make sure we have one, at least for this invocation.
41LANG="en_US.UTF-8" "${PIP}" \
42    wheel \
43    --wheel-dir "${WHEELHOUSE_PATH}" \
44    "${PROJECT_ROOT}"[test] \
45    ${BASIC_DEPS} \
46    ${TEST_DEPS} \
47    ${REPORTING_DEPS}
48
49# Not strictly wheelhouse population but ... Note we omit basic deps here.
50# They're in the wheelhouse if Tahoe-LAFS wants to drag them in but it will
51# have to ask.
52"${PIP}" \
53    install \
54    ${TEST_DEPS} \
55    ${REPORTING_DEPS}
Note: See TracBrowser for help on using the repository browser.