Skip to content

pyadolc will not build with boost 1.65 ("obsoleted" boost::python::numeric API) #29

@paulrozdeba

Description

@paulrozdeba

The build step of pyadolc, i.e. running
python setup.py build
fails when version 1.65 of boost is installed on the system. The first error message thrown is:

gcc: adolc/src/py_adolc.cpp
In file included from adolc/src/py_adolc.hpp:5:0,
                 from adolc/src/py_adolc.cpp:3:
adolc/src/num_util.h:32:18: error: ‘numeric’ in namespace ‘boost::python’ does not name a type
   boost::python::numeric::array makeNum(boost::python::object x);
                  ^~~~~~~

followed by many similar error messages related to the boost::python::numeric namespace.

According to the boost 1.65.1 release notes:

The boost::python::numeric API has been removed, as it is being obsoleted by boost::python::numpy.

In other words I think the solution may be to change all references to the old namespace to the new numpy namespace. I'm going to try this out and, if it works, submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions