#!/bin/bash -xe

# Working variables
WHEELHOUSE_DIR=$1
PROJECT=openstack/requirements
WORKING_DIR=`pwd`/$PROJECT

# Extract and iterate over all the branch names.
BRANCHES=`git --git-dir=$WORKING_DIR/.git branch -r | grep '^  origin/[^H]'`
for BRANCH in $BRANCHES; do
    git --git-dir=$WORKING_DIR/.git show $BRANCH:upper-constraints.txt \
        2>/dev/null > /tmp/upper-constraints.txt  || true
    pip --verbose wheel -r /tmp/upper-constraints.txt -w $WHEELHOUSE_DIR || true
done

#!/bin/bash -xe

# Working variables
WHEELHOUSE_DIR=$1
PROJECT=openstack/requirements
WORKING_DIR=`pwd`/$PROJECT

# Extract and iterate over all the branch names.
BRANCHES=`git --git-dir=$WORKING_DIR/.git branch -r | grep '^  origin/[^H]'`
for BRANCH in $BRANCHES; do
    git --git-dir=$WORKING_DIR/.git show $BRANCH:upper-constraints.txt \
        2>/dev/null > /tmp/upper-constraints.txt  || true
    pip --verbose wheel -r /tmp/upper-constraints.txt -w $WHEELHOUSE_DIR || true
    pip3 --verbose wheel -r /tmp/upper-constraints.txt -w $WHEELHOUSE_DIR || true
done

Build also wheel packages for Python 3
Build also wheel packages for Python 3

Currently, tox gets many prebuilt wheel packages on Python 2 which
make the creation of the Python 2 virtual environments fast. But
Python 3 requires to build much more dependencies and so the creation
of the Python 3 virtual environments is slower.

This change builds also wheel packages on Python 3.

Change-Id: I60c5b2c55eaf3145c3028ede1cf93a76e766b587
Related-Bug: 1582257
