Skip to content

Fix setup.py detail headers and add pip install tests to Travis #1026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 24, 2017

Conversation

dean0x7d
Copy link
Member

The default install_headers from distutils flattens all the headers into a single directory -- the detail subdirectory was lost. This commit fixes this by overriding the setup with a custom header installer.

Tests are added to Travis to make sure setup.py sdist and pip install do not miss any headers and that the directory structure is preserved.

@dean0x7d dean0x7d modified the milestone: v2.2 Aug 23, 2017
@dean0x7d dean0x7d mentioned this pull request Aug 23, 2017
6 tasks
The default `install_headers` from `distutils` flattens all the headers
into a single directory -- `detail` subdirectory was lost. This commit
fixes this by overriding the setup with a custom header installer.

Tests are added to Travis to make sure `setup.py sdist` and `pip install`
do not miss any headers and that the directory structure is preserved.

[skip appveyor]
For the case of `pip install --user`, the header include dirs must
also include `pybind11.get_include(True)`.

[skip appveyor]
@dean0x7d dean0x7d merged commit 3d8df5a into pybind:master Aug 24, 2017
@dean0x7d dean0x7d deleted the test-pip-install branch August 24, 2017 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant