{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/5191","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/5191/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/5191/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/5191/events","html_url":"https://github.com/pypa/pip/issues/5191","id":312295556,"number":5191,"title":"[10.0.0beta] pip.locations removed from public API and moved to pip._internal.locations","user":{"login":"SylvainCorlay","id":2397974,"avatar_url":"https://avatars0.githubusercontent.com/u/2397974?v=4","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},"labels":[{"id":729243948,"url":"https://api.github.com/repos/pypa/pip/labels/kind%20-%20feature","name":"kind - feature","color":"f4e23d","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pypa/pip/milestones/26","html_url":"https://github.com/pypa/pip/milestone/26","labels_url":"https://api.github.com/repos/pypa/pip/milestones/26/labels","id":3232863,"number":26,"title":"10.1","description":"","creator":{"login":"dstufft","id":145979,"avatar_url":"https://avatars3.githubusercontent.com/u/145979?v=4","gravatar_id":"","url":"https://api.github.com/users/dstufft","html_url":"https://github.com/dstufft","followers_url":"https://api.github.com/users/dstufft/followers","following_url":"https://api.github.com/users/dstufft/following{/other_user}","gists_url":"https://api.github.com/users/dstufft/gists{/gist_id}","starred_url":"https://api.github.com/users/dstufft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstufft/subscriptions","organizations_url":"https://api.github.com/users/dstufft/orgs","repos_url":"https://api.github.com/users/dstufft/repos","events_url":"https://api.github.com/users/dstufft/events{/privacy}","received_events_url":"https://api.github.com/users/dstufft/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2018-03-31T19:35:56Z","updated_at":"2018-04-08T19:15:40Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2018-04-08T10:57:02Z","updated_at":"2018-04-09T07:58:02Z","closed_at":null,"author_association":"NONE","body":"* Pip version: 10.0.0b1\r\n* Python version: any\r\n* Operating system: any\r\n\r\nIt appears that the `locations` submodule which was public API until `9.x` has moved to `pip._internal.locations` and is becoming private API in `10.0`.\r\n\r\nUsing `pip.locations` is the only API available to know the `distutils_scheme` for the current installation prefix.\r\n\r\nIt is used by a number of extension modules to determine where distutils' `install_headers` directive places the headers that are passed to it. For example pybind11's `get_include()` function returns `locations.distutils_scheme('pybind11')['headers'])`.\r\n\r\nHence, I would like to argue that it should remain public API.\r\n\r\nWe cannot just rely on the sys prefix as certain installations such as homebrew's python have exotic distutil schemes and place headers in non-standard directories."},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/379667179","html_url":"https://github.com/pypa/pip/issues/5191#issuecomment-379667179","issue_url":"https://api.github.com/repos/pypa/pip/issues/5191","id":379667179,"user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars1.githubusercontent.com/u/156838?v=4","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T07:58:02Z","updated_at":"2018-04-09T07:58:02Z","author_association":"CONTRIBUTOR","body":"given that it wa documented since years that pip has no official api, a deprecation is entirely unwarranted, from my pov its just that the people that cut effort short in the beginning by simply ignoring all details and doing what works at best by accident are now bitten\r\n\r\nfrom my pov that sting is well deserved - if you make something you need to rely on - its due diligence to check if the building blocks are something you can rely on, and using the pip api is not something you can rely on in general as a 3rd party"}}
{"actor":{"display_login":"RonnyPfannschmidt"}}