Skip to content

CMake configuration files missing for PyPi install #1628

Closed
@cklb

Description

@cklb

As it has already surfaced in #1379, when installing pybind11 via pip form the python package index, only the header files of pybind are installed. After browsing a little in the project history, the functionality to add pybind11 as an external cmake package via find_package() has been added in #506.
In #769 the installation of the config files was added / adjusted for conda based builds with this comment stating what can also be seen when looking at the pypi tarball of pybind11 and could maybe be stated somewhere in the docs.

Now, as the conda recipe shows, an installation of the cmake configuration files when performing a pip install seems to be possible. My question now is if nobody did have the time to do it yet or whether there are more serious problems for this case.
Alternatively, many linux distros install the config files in their packaged versions of pybind11. However, as my project targets a multi platform user base I would really like to stick with pip.

Finally, I'm well aware of https://github.com/sdhnshu/pybind_demo which uses a manual build for the pip install and thus requires no cmake dependencies at all.

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