{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6526","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6526/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6526/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6526/events","html_url":"https://github.com/numpy/numpy/pull/6526","id":112214899,"number":6526,"title":"Fix use of __doc__ in setup.py for -OO mode","user":{"login":"dsanders11","id":5820654,"avatar_url":"https://avatars.githubusercontent.com/u/5820654?v=3","gravatar_id":"","url":"https://api.github.com/users/dsanders11","html_url":"https://github.com/dsanders11","followers_url":"https://api.github.com/users/dsanders11/followers","following_url":"https://api.github.com/users/dsanders11/following{/other_user}","gists_url":"https://api.github.com/users/dsanders11/gists{/gist_id}","starred_url":"https://api.github.com/users/dsanders11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsanders11/subscriptions","organizations_url":"https://api.github.com/users/dsanders11/orgs","repos_url":"https://api.github.com/users/dsanders11/repos","events_url":"https://api.github.com/users/dsanders11/events{/privacy}","received_events_url":"https://api.github.com/users/dsanders11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20build","name":"component: build","color":"e11d21"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Defect","name":"Defect","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-19T19:28:34Z","updated_at":"2015-10-19T19:45:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/6526","html_url":"https://github.com/numpy/numpy/pull/6526","diff_url":"https://github.com/numpy/numpy/pull/6526.diff","patch_url":"https://github.com/numpy/numpy/pull/6526.patch"},"body":"Currently setup will fail when using `pip install numpy` if the `-OO` flag is used (also enabled via `PYTHONOPTIMIZE=2`) because docstrings are stripped (which is the point of the mode).\r\n\r\nVery minor change that allows the docstring to be missing for this case."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/149325358","html_url":"https://github.com/numpy/numpy/pull/6526#issuecomment-149325358","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6526","id":149325358,"user":{"login":"dsanders11","id":5820654,"avatar_url":"https://avatars.githubusercontent.com/u/5820654?v=3","gravatar_id":"","url":"https://api.github.com/users/dsanders11","html_url":"https://github.com/dsanders11","followers_url":"https://api.github.com/users/dsanders11/followers","following_url":"https://api.github.com/users/dsanders11/following{/other_user}","gists_url":"https://api.github.com/users/dsanders11/gists{/gist_id}","starred_url":"https://api.github.com/users/dsanders11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsanders11/subscriptions","organizations_url":"https://api.github.com/users/dsanders11/orgs","repos_url":"https://api.github.com/users/dsanders11/repos","events_url":"https://api.github.com/users/dsanders11/events{/privacy}","received_events_url":"https://api.github.com/users/dsanders11/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T19:45:50Z","updated_at":"2015-10-19T19:45:50Z","body":"Yes, it looks like they only use it when running tests: https://github.com/scipy/scipy/blob/master/.travis.yml#L119.\r\n\r\nI think I can enable it during install, but there's a bit of an inability to test on this PR since the PR has the fix for the problem, so wouldn't be able to tell if it worked..\r\n\r\nI'm going to mess around with rebasing this PR and cause the poor build machine to work over time."}}