Skip to content

"'pybind11/pybind11.h' file not found" with PyPy (and does PyPy 5.7 exist?) #596

Closed
@gcamp

Description

@gcamp

First of all, I'm using PyPy version 5.6. The read me says the requirements is PyPy version 5.7 but as far as know 5.6 is the latest version.

I've done a small package where I can reproduce the problem on a homebrew-installed PyPy.

 pypy -m pip install utf8proc

I can install without problem on Python.

PyPy get_include() :

Python 2.7.12 (aff251e543859ce4508159dd9f1a82a2f553de00, Nov 13 2016, 01:57:41)
[PyPy 5.6.0 with GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>> import pybind11
>>>> pybind11.get_include()
'/usr/local/Cellar/pypy/5.6.0/libexec'
>>>> pybind11.get_include(True)
'/Users/gcamp/.local/include/python2.7'
>>>>

And indeed /usr/local/Cellar/pypy/5.6.0/libexec doesn't include the pybind11 headers.

Python get_include() :

Python 2.7.13 (default, Dec 18 2016, 07:03:39)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pybind11
>>> pybind11.get_include()
'/usr/local/include/python2.7'
>>> pybind11.get_include(True)
'/Users/gcamp/Library/Python/2.7/include/python2.7'

Here /usr/local/include/python2.7 includes the pybind11 headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions