Skip to content

Commit 70b159b

Browse files
authored
Merge pull request #127 from JohanMabille/xtensor_014
Upgraded to xtensor 0.14.0
2 parents ebcb157 + 900b208 commit 70b159b

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install:
2323
- conda update -q conda
2424
- conda info -a
2525
- conda install gtest cmake -c conda-forge
26-
- conda install xtensor==0.13.1 pytest numpy pybind11==2.2.1 -c conda-forge
26+
- conda install xtensor==0.14.0 pytest numpy pybind11==2.2.1 -c conda-forge
2727
- "set PYTHONHOME=%MINICONDA%"
2828
- cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\Library -D BUILD_TESTS=ON -D PYTHON_EXECUTABLE=%MINICONDA%\\python.exe .
2929
- nmake test_xtensor_python

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ install:
9595
- conda update -q conda
9696
# Useful for debugging any issues with conda
9797
- conda info -a
98-
- conda install xtensor==0.13.1 pytest numpy pybind11==2.2.1 -c conda-forge
98+
- conda install xtensor==0.14.0 pytest numpy pybind11==2.2.1 -c conda-forge
9999
- conda install cmake gtest -c conda-forge
100100
- cmake -D BUILD_TESTS=ON -D CMAKE_INSTALL_PREFIX=$HOME/miniconda .
101101
- make -j2 test_xtensor_python

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ from the `docs` subdirectory.
191191

192192
| `xtensor-python` | `xtensor` | `pybind11` |
193193
|------------------|-----------|------------------|
194-
| master | ^0.13.1 | ~2.1.0 or ~2.2.1 |
194+
| master | ^0.14.0 | ~2.1.0 or ~2.2.1 |
195195
| 0.15.x | ^0.13.1 | ~2.1.0 or ~2.2.1 |
196196
| 0.14.x | ^0.12.0 | ~2.1.0 or ~2.2.1 |
197197
| 0.13.x | ^0.11.0 | ~2.1.0 or ~2.2.1 |

include/xtensor-python/pycontainer.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
2626

2727
#include "numpy/arrayobject.h"
28+
// Required because pyconfig.hpp defines copysign to _copysign
29+
#undef copysign
2830

31+
#include <cmath>
2932
#include "xtensor/xcontainer.hpp"
3033

3134
#include "xtl/xsequence.hpp"

test/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* The full license is in the file LICENSE, distributed with this software. *
77
****************************************************************************/
88

9+
// Required to avoid the error "std does not have memeber copysign"
10+
#include <cmath>
911
#include <Python.h>
1012

1113
#include "pybind11/numpy.h"

test/test_common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define TEST_COMMON_HPP
1111

1212
#include "xtensor/xlayout.hpp"
13-
#include "xtensor/xstridedview.hpp"
13+
#include "xtensor/xstrided_view.hpp"
1414

1515
#include "xtl/xsequence.hpp"
1616

0 commit comments

Comments
 (0)