{"action":"created","issue":{"url":"https://api.github.com/repos/pyopencl/pyopencl/issues/74","labels_url":"https://api.github.com/repos/pyopencl/pyopencl/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/pyopencl/pyopencl/issues/74/comments","events_url":"https://api.github.com/repos/pyopencl/pyopencl/issues/74/events","html_url":"https://github.com/pyopencl/pyopencl/pull/74","id":57077553,"number":74,"title":"Work around in setup.py for use of numpy during build","user":{"login":"timrudge","id":7080705,"avatar_url":"https://avatars.githubusercontent.com/u/7080705?v=3","gravatar_id":"","url":"https://api.github.com/users/timrudge","html_url":"https://github.com/timrudge","followers_url":"https://api.github.com/users/timrudge/followers","following_url":"https://api.github.com/users/timrudge/following{/other_user}","gists_url":"https://api.github.com/users/timrudge/gists{/gist_id}","starred_url":"https://api.github.com/users/timrudge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timrudge/subscriptions","organizations_url":"https://api.github.com/users/timrudge/orgs","repos_url":"https://api.github.com/users/timrudge/repos","events_url":"https://api.github.com/users/timrudge/events{/privacy}","received_events_url":"https://api.github.com/users/timrudge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-09T19:29:08Z","updated_at":"2015-02-09T19:39:22Z","closed_at":"2015-02-09T19:39:16Z","pull_request":{"url":"https://api.github.com/repos/pyopencl/pyopencl/pulls/74","html_url":"https://github.com/pyopencl/pyopencl/pull/74","diff_url":"https://github.com/pyopencl/pyopencl/pull/74.diff","patch_url":"https://github.com/pyopencl/pyopencl/pull/74.patch"},"body":"Currently when installing via pip (pip install pyopencl) build fails because numpy cannot be imported. This seems to be a known issue with the way numpy installation is organised (see http://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py). The workaround used in this link is to force numpy visibility using \"\\_\\_builtins\\_\\_.\\_\\_NUMPY_SETUP\\_\\_ = False\".\r\n\r\nI have added this to setup.py, as well as adding numpy to install_requires since it is used when running pyopencl. Tested with \"pip install -e <path to modified source>\"."},"comment":{"url":"https://api.github.com/repos/pyopencl/pyopencl/issues/comments/73575066","html_url":"https://github.com/pyopencl/pyopencl/pull/74#issuecomment-73575066","issue_url":"https://api.github.com/repos/pyopencl/pyopencl/issues/74","id":73575066,"user":{"login":"inducer","id":352067,"avatar_url":"https://avatars.githubusercontent.com/u/352067?v=3","gravatar_id":"","url":"https://api.github.com/users/inducer","html_url":"https://github.com/inducer","followers_url":"https://api.github.com/users/inducer/followers","following_url":"https://api.github.com/users/inducer/following{/other_user}","gists_url":"https://api.github.com/users/inducer/gists{/gist_id}","starred_url":"https://api.github.com/users/inducer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inducer/subscriptions","organizations_url":"https://api.github.com/users/inducer/orgs","repos_url":"https://api.github.com/users/inducer/repos","events_url":"https://api.github.com/users/inducer/events{/privacy}","received_events_url":"https://api.github.com/users/inducer/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T19:39:22Z","updated_at":"2015-02-09T19:39:22Z","body":"Thanks!"}}