-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automationresolution: invalidInvalid issue/PRInvalid issue/PRtype: supportUser SupportUser Support
Description
- Pip version: 8.1.2
- Python version: 2.7.11
- Operating System: OSX 10.11
Description:
You can get the location of header files of an installed package -- e.g. pybind11 -- using
>>> pip.locations.distutils_scheme('pybind11')['headers']
'/virtualenv/include/site/python2.7/pybind11'
However the returned path is only correct if it was installed regularily. When doing an editable install the headers are not copied to that directory and the path is incorrect for editable installs.
What I've run:
$ pip install pybind11
$ python -c "from pip import locations as l; print l.distutils_scheme('pybind11')['headers']"
/virtualenv/include/site/python2.7/pybind11
$ pip uninstall pybind11
$ pip install -e ./pybind11
$ python -c "from pip import locations as l; print l.distutils_scheme('pybind11')['headers']"
/virtualenv/include/site/python2.7/pybind11
The path for both is the same, but for an editable installs no headers are ever copied.
tbenthompson
Metadata
Metadata
Assignees
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automationresolution: invalidInvalid issue/PRInvalid issue/PRtype: supportUser SupportUser Support