Closed yungyuc closed 6 years ago
Thanks @yungyuc this looks good!
Looking at what is done in pybind11, it seems that we replacing with auto
should be sufficient. What do you think?
It works for pybind11 master branch but not v2.2 stable branch. v2.3 changes npy_format_descriptor::name
to constexpr auto but it's still a function in v2.2. To support both v2.2 and master, the other approach I thought of was to move away from pybind11 internal.
Merging!
Maybe we should ask the pybind11 to make some of that API truly public.
The macro
PYBIND11_DESCR
is removed from pybind11 master (it happened more than a year ago). This is a hack to allow xtensor-python to build.For testing I tweaked the
.travis.yml
. Set PYBIND11_VERSION=master environment variable in Travis CI to enable pybind11 master branch.