{"action":"created","issue":{"url":"https://api.github.com/repos/pybind/pbtest/issues/6","repository_url":"https://api.github.com/repos/pybind/pbtest","labels_url":"https://api.github.com/repos/pybind/pbtest/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/pybind/pbtest/issues/6/comments","events_url":"https://api.github.com/repos/pybind/pbtest/issues/6/events","html_url":"https://github.com/pybind/pbtest/pull/6","id":146539045,"number":6,"title":"query pip for pybind11 include path (fixes compilation for Brew-ed Python on OSX)","user":{"login":"wjakob","id":1203629,"avatar_url":"https://avatars.githubusercontent.com/u/1203629?v=3","gravatar_id":"","url":"https://api.github.com/users/wjakob","html_url":"https://github.com/wjakob","followers_url":"https://api.github.com/users/wjakob/followers","following_url":"https://api.github.com/users/wjakob/following{/other_user}","gists_url":"https://api.github.com/users/wjakob/gists{/gist_id}","starred_url":"https://api.github.com/users/wjakob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjakob/subscriptions","organizations_url":"https://api.github.com/users/wjakob/orgs","repos_url":"https://api.github.com/users/wjakob/repos","events_url":"https://api.github.com/users/wjakob/events{/privacy}","received_events_url":"https://api.github.com/users/wjakob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-07T07:57:36Z","updated_at":"2016-05-04T13:58:13Z","closed_at":"2016-04-07T10:49:37Z","pull_request":{"url":"https://api.github.com/repos/pybind/pbtest/pulls/6","html_url":"https://github.com/pybind/pbtest/pull/6","diff_url":"https://github.com/pybind/pbtest/pull/6.diff","patch_url":"https://github.com/pybind/pbtest/pull/6.patch"},"body":"The ``setup.py`` script does not currently work on OSX when a Brewed Python is used. It searches for the pybind11 includes in ``/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/include/python3.5m``, but  pip actually installs them in ``/usr/local/include/python3.5m``. I changed the ``setup.py`` script so that pip is queried for the actual path to use."},"comment":{"url":"https://api.github.com/repos/pybind/pbtest/issues/comments/216873328","html_url":"https://github.com/pybind/pbtest/pull/6#issuecomment-216873328","issue_url":"https://api.github.com/repos/pybind/pbtest/issues/6","id":216873328,"user":{"login":"SylvainCorlay","id":2397974,"avatar_url":"https://avatars.githubusercontent.com/u/2397974?v=3","gravatar_id":"","url":"https://api.github.com/users/SylvainCorlay","html_url":"https://github.com/SylvainCorlay","followers_url":"https://api.github.com/users/SylvainCorlay/followers","following_url":"https://api.github.com/users/SylvainCorlay/following{/other_user}","gists_url":"https://api.github.com/users/SylvainCorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/SylvainCorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylvainCorlay/subscriptions","organizations_url":"https://api.github.com/users/SylvainCorlay/orgs","repos_url":"https://api.github.com/users/SylvainCorlay/repos","events_url":"https://api.github.com/users/SylvainCorlay/events{/privacy}","received_events_url":"https://api.github.com/users/SylvainCorlay/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T13:58:13Z","updated_at":"2016-05-04T13:58:13Z","body":"Note for self. As per discussion with @takluyver.\r\nThe `sysconfig` standard package has a `get_path` function that takes a string.\r\n`get_path_names` returns the valid strings.\r\n\r\nThe case of 'include' returns the python include directory. \r\n\r\nNo keys seems to correspond to `/usr/local/include/python[...]`"}}