wolfcrypt-py/make/osx/build_wheels.sh

29 lines
705 B
Bash
Executable File

set -e
set +x
for VER in 3.7 3.8; do
PIP="pip${VER}"
PYTHON="python${VER}"
VENV="venv_${VER}"
PATH="/Library/Frameworks/Python.framework/Versions/${VER}/bin:$PATH"
# update pip for newer TLS support
curl https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
${PIP} install -r requirements/setup.txt
# update virtualenv
${PIP} install --upgrade virtualenv
virtualenv -p ${PYTHON} ${VENV}
. ./${VENV}/bin/activate
${PYTHON} setup.py bdist_wheel
${PIP} install -r requirements/test.txt
set +e
${PIP} uninstall -y wolfcrypt
set -e
${PIP} install wolfcrypt --no-index -f dist
rm -rf tests/__pycache__
py.test tests
deactivate
done