Sweet. I find Pybind11 to be infinitely superior so no tears will be she'd
for not building Boost.Python.

Thanks.

On Fri, Oct 12, 2018, 4:20 PM Nathaniel Smith <[email protected]> wrote:

> I guess boost-python uses the Python C API, which means that you can't
> just build it once, but rather have to build is separately for each
> version of Python you want to use it with. Normally when you build a
> Python extension module, distutils/setuptools take care of setting up
> the compiler include path to find pyconfig.h for whichever version of
> Python you're building against.
>
> I guess you could find some way of calling python to query distutils
> to ask it which include path to use, but if you don't actually need
> boost-python now, I would just skip it for now...
>
> On Fri, Oct 12, 2018 at 10:44 AM, Jariullah Safi <[email protected]> wrote:
> > So, I'm trying to put together a base container I can use to build
> > manylinux1 containers for a number of my projects. To do this I need to
> > ensure it contains the dependencies I commonly encounter (e.g. eigen,
> boost,
> > opencv).
> >
> > I can build specific parts of boost just fine, but to create a general
> > purpose container I'd like to build all libraries. Doing so leads me to
> this
> > error:
> >
> > ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No
> > such file or directory
> >  # include <pyconfig.h>
> >
> > when building Boost.Python. Now, I know I can fix that by doing something
> > like
> >
> >
> CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/opt/_internal/cpython-2.7.15-ucs4/include/python2.7/"
> >
> > before running the build, but this leaves me a bit confused. Will this
> cause
> > issues with building python3 wheels? Is there a python-dev type package I
> > should install (for both python2 and 3?).
> >
> > My instinct right now is to leave boost python out since none of my
> projects
> > currently use it, but I could certainly run into something in the future
> > that would use it, so any advice on the matter here would be well
> > appreciated.
> >
> > Thank you all.
> >
> > _______________________________________________
> > Wheel-builders mailing list
> > [email protected]
> > https://mail.python.org/mailman/listinfo/wheel-builders
> >
>
>
>
> --
> Nathaniel J. Smith -- https://vorpus.org
>
_______________________________________________
Wheel-builders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/wheel-builders

Reply via email to