Skip to content

[packaging] using pybind11 in setuptools.setup_requires or pyproject.toml in a dependent project does not work. #1067

Closed
@marscher

Description

@marscher

If pybind11 is dragged in with setuptools.setup_requires, the method to install pybind11 will create an (temporary) egg file, which will not invoke install_headers. IMHO the Python package should contain the headers it self and not install to $INCLUDE_DIR.

By changing the packaging to simply include the headers as package data and let pybind11.get_include() point to this location, we circumvent these problems. However I'm not aware of the implications of this. I guess one would be, that people would have to use get_include to extend the include_dirs of their Extensions, because at the moment $INCLUDE_DIR is included by default.

cc @dean0x7d

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