Build Update
1. Use the same docker image as the wolfSSL python project. 2. Remove the absolute path to the python interpreter. They just need to be in the path. (For example, you might install old versions in /opt and add their subdirs to the path while the latest runs out of its location.) 3. Build the name of python, pip, and venv_ based on the version.pull/9/head
parent
c57c4aeba9
commit
d89a715622
|
@ -6,5 +6,5 @@ docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-v `pwd`:/wolfcrypt-py \
|
-v `pwd`:/wolfcrypt-py \
|
||||||
-w /wolfcrypt-py \
|
-w /wolfcrypt-py \
|
||||||
quay.io/pypa/manylinux1_x86_64 \
|
wolfssl/manylinux1-x86_64 \
|
||||||
bash -c "make/manylinux1/build.sh"
|
bash -c "make/manylinux1/build.sh"
|
||||||
|
|
|
@ -1,17 +1,22 @@
|
||||||
set -e
|
set -e
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
for PYVERSION in 2.7 3.6 3.7; do
|
for VER in 2.7 3.6 3.7; do
|
||||||
virtualenv -p /Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin/python${PYVERSION} venv_${PYVERSION}
|
PIP="pip${VER}"
|
||||||
. ./venv_${PYVERSION}/bin/activate
|
PYTHON="python${VER}"
|
||||||
curl https://bootstrap.pypa.io/get-pip.py | python
|
VENV="venv_${VER}"
|
||||||
pip install -r requirements/setup.txt
|
|
||||||
python setup.py bdist_wheel
|
${PIP} install virtualenv
|
||||||
pip install -r requirements/test.txt
|
virtualenv -p ${PYTHON} ${VENV}
|
||||||
|
. ./${VENV}/bin/activate
|
||||||
|
curl https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||||
|
${PIP} install -r requirements/setup.txt
|
||||||
|
${PYTHON} setup.py bdist_wheel
|
||||||
|
${PIP} install -r requirements/test.txt
|
||||||
set +e
|
set +e
|
||||||
pip uninstall -y wolfcrypt
|
${PIP} uninstall -y wolfcrypt
|
||||||
set -e
|
set -e
|
||||||
pip install wolfcrypt --no-index -f dist
|
${PIP} install wolfcrypt --no-index -f dist
|
||||||
rm -rf tests/__pycache__
|
rm -rf tests/__pycache__
|
||||||
py.test tests
|
py.test tests
|
||||||
deactivate
|
deactivate
|
||||||
|
|
Loading…
Reference in New Issue