source: trunk/misc/build_helpers/_build-wheels.sh

Last change on this file was b24e36b, checked in by Jean-Paul Calderone <exarkun@…>, at 2017-03-01T13:19:45Z

Fetch dependencies outside the container

Disable networking for the container.

The container images run very old, vulnerability-filled software.
(The former is intentional, the latter is somewhat difficult to avoid.)

This allows the containers to do the wheel builds without talking to the
network. This reduces the attack surface somewhat.

  • Property mode set to 100755
File size: 426 bytes
Line 
1#!/bin/bash
2
3# Based on https://github.com/pypa/python-manylinux-demo
4
5set -e -x
6
7# Compile wheels
8for PYBIN in /opt/python/cp2*/bin; do
9    "${PYBIN}/pip" wheel --no-index --find-links file:///io/wheelhouse/ /io/ -w /wheelhouse/
10done
11
12# Bundle external shared libraries into the wheels and write them to their
13# final location.
14for whl in /wheelhouse/pycryptopp-*.whl; do
15    auditwheel repair "$whl" -w /io/wheelhouse/
16done
Note: See TracBrowser for help on using the repository browser.