File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ platform:
6
6
environment :
7
7
global :
8
8
DISTUTILS_USE_SDK : 1
9
+ PYTHONWARNINGS : ignore:DEPRECATION
9
10
MSSdk : 1
10
11
matrix :
11
12
- PYTHON : 27
@@ -32,9 +33,12 @@ build_script:
32
33
- ps : |
33
34
if ($env:PYTHON) {
34
35
python setup.py sdist
35
- pip install --verbose dist\python_example-0.0.1.tar.gz
36
+ python -m pip install 'pybind11>=2.3'
37
+ python -m pip install --verbose dist\python_example-0.0.1.tar.gz
36
38
} else {
39
+ echo "conda build conda.recipe"
37
40
conda build conda.recipe
41
+ echo "conda install --use-local python_example"
38
42
conda install --use-local python_example
39
43
}
40
44
test_script :
Original file line number Diff line number Diff line change 5
5
- os : linux
6
6
env : PYTHON=2.7
7
7
- os : linux
8
- env : PYTHON=3.5
8
+ env : PYTHON=3.6
9
9
- os : linux
10
10
env : CONDA=2.7
11
11
- os : linux
@@ -22,11 +22,14 @@ before_install:
22
22
- |
23
23
if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX=g++-4.8 CC=gcc-4.8; fi
24
24
if [ -n "$PYTHON" ]; then
25
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "${PYTHON:0:1}" = "3" ]; then
26
- brew update; brew install python3;
25
+ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
26
+ export PATH="/Users/travis/Library/Python/2.7/bin:$PATH"
27
+ if [ "${PYTHON:0:1}" = "3" ]; then
28
+ brew update; brew install python3;
29
+ fi
27
30
fi
28
- pip install --user --upgrade pip virtualenv
29
- virtualenv -p python$PYTHON venv
31
+ pip install --user virtualenv
32
+ virtualenv -p python${ PYTHON:0:1} venv
30
33
source venv/bin/activate
31
34
elif [ -n "$CONDA" ]; then
32
35
if [ "$TRAVIS_OS_NAME" = "linux" ]; then OS=Linux-x86_64; else OS=MacOSX-x86_64; fi
Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ def build_extensions(self):
106
106
description = 'A test project using pybind11' ,
107
107
long_description = '' ,
108
108
ext_modules = ext_modules ,
109
- install_requires = ['pybind11>=2.2' ],
109
+ install_requires = ['pybind11>=2.3' ],
110
+ setup_requires = ['pybind11>=2.3' ],
110
111
cmdclass = {'build_ext' : BuildExt },
111
112
zip_safe = False ,
112
113
)
You can’t perform that action at this time.
0 commit comments