{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/3759","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/3759/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/3759/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/3759/events","html_url":"https://github.com/pypa/pip/pull/3759","id":157282701,"number":3759,"title":"fix for #3758; keep python flags in script's first line","user":{"login":"mathieulongtin","id":617359,"avatar_url":"https://avatars.githubusercontent.com/u/617359?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieulongtin","html_url":"https://github.com/mathieulongtin","followers_url":"https://api.github.com/users/mathieulongtin/followers","following_url":"https://api.github.com/users/mathieulongtin/following{/other_user}","gists_url":"https://api.github.com/users/mathieulongtin/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieulongtin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieulongtin/subscriptions","organizations_url":"https://api.github.com/users/mathieulongtin/orgs","repos_url":"https://api.github.com/users/mathieulongtin/repos","events_url":"https://api.github.com/users/mathieulongtin/events{/privacy}","received_events_url":"https://api.github.com/users/mathieulongtin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-27T20:14:24Z","updated_at":"2016-06-02T13:45:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pypa/pip/pulls/3759","html_url":"https://github.com/pypa/pip/pull/3759","diff_url":"https://github.com/pypa/pip/pull/3759.diff","patch_url":"https://github.com/pypa/pip/pull/3759.patch"},"body":"When installing python scripts, keep the flags passed to the Python interpreter"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/223295742","html_url":"https://github.com/pypa/pip/pull/3759#issuecomment-223295742","issue_url":"https://api.github.com/repos/pypa/pip/issues/3759","id":223295742,"user":{"login":"dholth","id":208018,"avatar_url":"https://avatars.githubusercontent.com/u/208018?v=3","gravatar_id":"","url":"https://api.github.com/users/dholth","html_url":"https://github.com/dholth","followers_url":"https://api.github.com/users/dholth/followers","following_url":"https://api.github.com/users/dholth/following{/other_user}","gists_url":"https://api.github.com/users/dholth/gists{/gist_id}","starred_url":"https://api.github.com/users/dholth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dholth/subscriptions","organizations_url":"https://api.github.com/users/dholth/orgs","repos_url":"https://api.github.com/users/dholth/repos","events_url":"https://api.github.com/users/dholth/events{/privacy}","received_events_url":"https://api.github.com/users/dholth/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T13:45:07Z","updated_at":"2016-06-02T13:45:07Z","body":"I didn't consider Python interpreter arguments when writing the wheel spec. The clause 'starts with b\"python\"'... was supposed to mean \"followed by either a Windows or Unix line separator\". Wheel's reference installer 'wheel.install' also replaces the entire shebang line without preserving arguments.\r\n\r\nThis was designed in the context of automatically-generated script wrappers stored in the wheel itself, with the interpreter changed to just 'python' with no path: https://bitbucket.org/pypa/wheel/src/c02b52942cac881ce0bbf6ad204d7160049cfb28/wheel/bdist_wheel.py?at=default&fileviewer=file-view-default#bdist_wheel.py-178\r\n\r\nLater we decided to do all the entry point script wrapper generation at install time and not store that kind of script in the wheel at all, but you can still have non-entry-points scripts if you want or if the script language is not Python.\r\n\r\nI understand that sometimes Python arguments like -bb are important, is there a better way to handle them?"}}
{"actor":{"display_login":"dholth"}}