Skip to content

Commit 1cd2823

Browse files
committed
test py35 build for os x
1 parent 3731016 commit 1cd2823

File tree

2 files changed

+14
-70
lines changed

2 files changed

+14
-70
lines changed

.travis.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,8 @@ matrix:
2626
include:
2727
- os: osx
2828
language: generic
29-
env:
30-
- MB_PYTHON_VERSION=2.7
31-
- os: osx
32-
language: generic
33-
env:
34-
- MB_PYTHON_VERSION=3.4
35-
- os: linux
36-
env:
37-
- MB_PYTHON_VERSION=2.7
38-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
39-
- os: linux
40-
env:
41-
- MB_PYTHON_VERSION=2.7
42-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
43-
- UNICODE_WIDTH=16
44-
- os: linux
45-
env:
46-
- MB_PYTHON_VERSION=2.7
47-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
48-
- PLAT=i686
49-
- os: linux
50-
env:
51-
- MB_PYTHON_VERSION=2.7
52-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
53-
- PLAT=i686
54-
- UNICODE_WIDTH=16
55-
- os: linux
56-
env:
57-
- MB_PYTHON_VERSION=3.3
58-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
59-
- os: linux
60-
env:
61-
- MB_PYTHON_VERSION=3.3
62-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
63-
- PLAT=i686
64-
- os: linux
65-
env:
66-
- MB_PYTHON_VERSION=3.4
67-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
68-
- os: linux
69-
env:
70-
- MB_PYTHON_VERSION=3.4
71-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
72-
- PLAT=i686
73-
- os: linux
74-
env:
75-
- MB_PYTHON_VERSION=3.5
76-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
77-
- os: linux
7829
env:
7930
- MB_PYTHON_VERSION=3.5
80-
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
81-
- PLAT=i686
8231

8332
before_install:
8433
- source multibuild/common_utils.sh

travis/build-wheels-osx.sh

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,11 @@ set +e
33
echo 'Begin build-wheel OSX ...'
44

55
export PYTHON_VERSION=${MB_PYTHON_VERSION/./}
6-
echo 'MB_PYTHON_VERSION: 'MB_PYTHON_VERSION
6+
echo 'MB_PYTHON_VERSION: ' $MB_PYTHON_VERSION
77
echo 'PYTHON_VERSION: '$PYTHON_VERSION
88

99
echo 'PIP and brew installs'
1010

11-
brew install cmake pkg-config
12-
brew install jpeg libpng libtiff openexr
13-
brew install eigen tbb
14-
15-
if [[ $PYTHON_VERSION == 3* ]]; then
16-
brew install python3
17-
pip3 install numpy
18-
fi
19-
20-
if [[ $PYTHON_VERSION == 2* ]]; then
21-
pip install numpy
22-
fi
23-
24-
echo 'Begin our build'
25-
ls -lh
26-
2711
pip install -r requirements.txt
2812

2913
echo 'Config make'
@@ -43,8 +27,8 @@ if [[ $PYTHON_VERSION == 2* ]]; then
4327
-D BUILD_EXAMPLES=OFF ..
4428
fi
4529

46-
if [[ $PYTHON_VERSION == 3* ]]; then
47-
echo 'Config for Py3'
30+
if [[ $PYTHON_VERSION == 34 ]]; then
31+
echo 'Config for Py34'
4832
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
4933
-D BUILD_opencv_python2=OFF -D BUILD_opencv_java=OFF -D BUILD_SHARED_LIBS=OFF \
5034
-D PYTHON3_PACKAGES_PATH=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
@@ -54,6 +38,17 @@ if [[ $PYTHON_VERSION == 3* ]]; then
5438
-D BUILD_EXAMPLES=OFF ..
5539
fi
5640

41+
if [[ $PYTHON_VERSION == 35 ]]; then
42+
echo 'Config for Py35'
43+
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
44+
-D BUILD_opencv_python2=OFF -D BUILD_opencv_java=OFF -D BUILD_SHARED_LIBS=OFF \
45+
-D PYTHON3_PACKAGES_PATH=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
46+
-D PYTHON3_LIBRARY=/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/bin \
47+
-D PYTHON3_INCLUDE_DIR=/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m \
48+
-D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF \
49+
-D BUILD_EXAMPLES=OFF ..
50+
fi
51+
5752
echo 'Begin build'
5853
make -j4
5954

0 commit comments

Comments
 (0)