Skip to content

Commit e7e64de

Browse files
authored
Merge pull request #12 from ejohnstown/build-update
Build Update
2 parents 9bef875 + f398057 commit e7e64de

3 files changed

Lines changed: 15 additions & 22 deletions

File tree

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ target/
6464
.python-version
6565

6666
# pyenv dist build
67-
venv_2.7
68-
venv_3.4
69-
venv_3.5
70-
venv_3.6
67+
venv_*
7168

7269
# code editor preferences
7370
.vscode

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ matrix:
99
script:
1010
- ./make/manylinux1/build_wheels.sh
1111
- os: osx
12-
osx_image: xcode9.4
12+
osx_image: xcode8.3
1313
script:
1414
- ./make/osx/build_wheels.sh
1515

make/osx/build_wheels.sh

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
set -e
22
set +x
33

4-
for PYVERSION in 2.7 3.4 3.5 3.6; do
5-
PYTHONBIN=/Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin
6-
PYTHONEXE=${PYTHONBIN}/python${PYVERSION}
7-
export PATH="${PYTHONBIN}":$PATH
4+
for VER in 2.7 3.4 3.5 3.6 3.7; do
5+
PIP="pip${VER}"
6+
PYTHON="python${VER}"
7+
VENV="venv_${VER}"
88

99
# update pip for newer TLS support
10-
curl https://bootstrap.pypa.io/get-pip.py | ${PYTHONEXE}
11-
"${PYTHONBIN}/pip" install --upgrade pip
10+
curl https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
11+
${PIP} install -r requirements/setup.txt
1212

1313
# update virtualenv
14-
${PYTHONEXE} -m pip install virtualenv
14+
${PIP} install --upgrade virtualenv
15+
virtualenv -p ${PYTHON} ${VENV}
16+
. ./${VENV}/bin/activate
1517

16-
virtualenv -p ${PYTHONEXE} venv_${PYVERSION}
17-
. ./venv_${PYVERSION}/bin/activate
18-
19-
# install cffi module
20-
${PYTHONEXE} -m pip install cffi
21-
22-
${PYTHONEXE} setup.py bdist_wheel
23-
"${PYTHONBIN}/pip" install -r requirements/test.txt
18+
${PYTHON} setup.py bdist_wheel
19+
${PIP} install -r requirements/test.txt
2420
set +e
25-
"${PYTHONBIN}/pip" uninstall -y wolfssl
21+
${PIP} uninstall -y wolfssl
2622
set -e
27-
"${PYTHONBIN}/pip" install wolfssl --no-index -f dist
23+
${PIP} install wolfssl --no-index -f dist
2824
rm -rf tests/__pycache__
2925
py.test tests
3026
deactivate

0 commit comments

Comments
 (0)