Skip to content

Commit 0b2861e

Browse files
authored
Merge pull request #3 from russkel/update-pybind
Update pybind, fix deprecated calls
2 parents dd2ade7 + f8e948c commit 0b2861e

197 files changed

Lines changed: 25568 additions & 8189 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,16 @@ python bindings for [MOOS](https://github.com/themoos/core-moos)
99
|Windows |[![Build status](https://ci.appveyor.com/api/projects/status/ad0jwpij0xhikh5f?svg=true)](https://ci.appveyor.com/project/msis/python-moos)|
1010

1111
# Build Instructions
12-
(TODO, for now please refer to the `.travis.yml` file for Linux/OSX and `appveyor.yml` file for Windows.)
12+
Clone the repository:
13+
14+
```
15+
git clone https://github.com/msis/python-moos.git python-moos
16+
```
17+
18+
Build and install python-moos:
19+
20+
```
21+
cd python-moos
22+
python setup.py build
23+
python setup.py install
24+
```

pybind11/.appveyor.yml

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,70 @@
11
version: 1.0.{build}
2-
os: Visual Studio 2015
2+
image:
3+
- Visual Studio 2017
4+
- Visual Studio 2015
35
test: off
6+
skip_branch_with_pr: true
7+
build:
8+
parallel: true
49
platform:
5-
- x86
610
- x64
11+
- x86
712
environment:
813
matrix:
9-
- CONDA: 27
10-
- CONDA: 35
14+
- PYTHON: 36
15+
CPP: 14
16+
CONFIG: Debug
17+
- PYTHON: 27
18+
CPP: 14
19+
CONFIG: Debug
20+
- CONDA: 36
21+
CPP: latest
22+
CONFIG: Release
23+
matrix:
24+
exclude:
25+
- image: Visual Studio 2015
26+
platform: x86
27+
- image: Visual Studio 2015
28+
CPP: latest
29+
- image: Visual Studio 2017
30+
CPP: latest
31+
platform: x86
1132
install:
1233
- ps: |
1334
if ($env:PLATFORM -eq "x64") { $env:CMAKE_ARCH = "x64" }
35+
if ($env:APPVEYOR_JOB_NAME -like "*Visual Studio 2017*") {
36+
$env:CMAKE_GENERATOR = "Visual Studio 15 2017"
37+
$env:CMAKE_INCLUDE_PATH = "C:\Libraries\boost_1_64_0"
38+
$env:CXXFLAGS = "-permissive-"
39+
} else {
40+
$env:CMAKE_GENERATOR = "Visual Studio 14 2015"
41+
}
1442
if ($env:PYTHON) {
1543
if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
1644
$env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
17-
pip install --disable-pip-version-check --user --upgrade pip wheel
18-
pip install pytest numpy scipy
45+
python -W ignore -m pip install --upgrade pip wheel
46+
python -W ignore -m pip install pytest numpy --no-warn-script-location
1947
} elseif ($env:CONDA) {
2048
if ($env:CONDA -eq "27") { $env:CONDA = "" }
2149
if ($env:PLATFORM -eq "x64") { $env:CONDA = "$env:CONDA-x64" }
2250
$env:PATH = "C:\Miniconda$env:CONDA\;C:\Miniconda$env:CONDA\Scripts\;$env:PATH"
51+
$env:PYTHONHOME = "C:\Miniconda$env:CONDA"
52+
conda --version
2353
conda install -y -q pytest numpy scipy
2454
}
2555
- ps: |
26-
Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.3.0.zip'
27-
7z x 3.3.0.zip -y > $null
28-
$env:CMAKE_INCLUDE_PATH = "eigen-eigen-26667be4f70b"
56+
Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.3.3.zip'
57+
7z x 3.3.3.zip -y > $null
58+
$env:CMAKE_INCLUDE_PATH = "eigen-eigen-67e894c6cd8f;$env:CMAKE_INCLUDE_PATH"
2959
build_script:
30-
- cmake -A "%CMAKE_ARCH%" -DPYBIND11_WERROR=ON
60+
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%"
61+
-DPYBIND11_CPP_STANDARD=/std:c++%CPP%
62+
-DPYBIND11_WERROR=ON
63+
-DDOWNLOAD_CATCH=ON
64+
-DCMAKE_SUPPRESS_REGENERATION=1
65+
.
3166
- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
32-
- cmake --build . --config Release --target pytest -- /v:m /logger:%MSBuildLogger%
33-
- cmake --build . --config Release --target test_install -- /v:m /logger:%MSBuildLogger%
67+
- cmake --build . --config %CONFIG% --target pytest -- /m /v:m /logger:%MSBuildLogger%
68+
- cmake --build . --config %CONFIG% --target cpptest -- /m /v:m /logger:%MSBuildLogger%
69+
- if "%CPP%"=="latest" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /v:m /logger:%MSBuildLogger%)
70+
on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log*

pybind11/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ MANIFEST
2727
*.py[co]
2828
*.egg-info
2929
*~
30+
.*.swp
3031
.DS_Store
3132
/dist
3233
/build

pybind11/.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "tools/clang"]
22
path = tools/clang
3-
url = https://github.com/wjakob/clang-cindex-python3
3+
url = ../../wjakob/clang-cindex-python3

pybind11/.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python:
2+
version: 3
3+
requirements_file: docs/requirements.txt

0 commit comments

Comments
 (0)