{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy-helpers/issues/207","labels_url":"https://api.github.com/repos/astropy/astropy-helpers/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy-helpers/issues/207/comments","events_url":"https://api.github.com/repos/astropy/astropy-helpers/issues/207/events","html_url":"https://github.com/astropy/astropy-helpers/issues/207","id":119005270,"number":207,"title":"pip install spawns a lot of build_ext processes","user":{"login":"saimn","id":311639,"avatar_url":"https://avatars.githubusercontent.com/u/311639?v=3","gravatar_id":"","url":"https://api.github.com/users/saimn","html_url":"https://github.com/saimn","followers_url":"https://api.github.com/users/saimn/followers","following_url":"https://api.github.com/users/saimn/following{/other_user}","gists_url":"https://api.github.com/users/saimn/gists{/gist_id}","starred_url":"https://api.github.com/users/saimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saimn/subscriptions","organizations_url":"https://api.github.com/users/saimn/orgs","repos_url":"https://api.github.com/users/saimn/repos","events_url":"https://api.github.com/users/saimn/events{/privacy}","received_events_url":"https://api.github.com/users/saimn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-26T09:35:50Z","updated_at":"2015-11-30T21:56:42Z","closed_at":null,"body":"When trying to run astropy's tests with tox, I got into some weird issue with I can reproduce simply with:\r\n```\r\n$ python setup.py sdist\r\n$ pip install dist/astropy-1.1.dev14145.tar.gz\r\n```\r\nThe `pip install` command will then spawn continuously `build_ext` processes until my system dies /o\\ (See screenshot below). I guess this can be related to astropy's build system which detect than I run pip install with a development version, but the issue also happens if I run the pip install in a fresh virtualenv with only Numpy installed (no Cython or Jinja2).\r\n\r\n![2015-11-25-152956_4800x1800_scrot](https://cloud.githubusercontent.com/assets/311639/11419547/748008a0-9428-11e5-8f8c-cf7367f5521a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/astropy/astropy-helpers/issues/comments/160774086","html_url":"https://github.com/astropy/astropy-helpers/issues/207#issuecomment-160774086","issue_url":"https://api.github.com/repos/astropy/astropy-helpers/issues/207","id":160774086,"user":{"login":"saimn","id":311639,"avatar_url":"https://avatars.githubusercontent.com/u/311639?v=3","gravatar_id":"","url":"https://api.github.com/users/saimn","html_url":"https://github.com/saimn","followers_url":"https://api.github.com/users/saimn/followers","following_url":"https://api.github.com/users/saimn/following{/other_user}","gists_url":"https://api.github.com/users/saimn/gists{/gist_id}","starred_url":"https://api.github.com/users/saimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saimn/subscriptions","organizations_url":"https://api.github.com/users/saimn/orgs","repos_url":"https://api.github.com/users/saimn/repos","events_url":"https://api.github.com/users/saimn/events{/privacy}","received_events_url":"https://api.github.com/users/saimn/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T21:56:42Z","updated_at":"2015-11-30T21:56:42Z","body":"Same after upgrading setuptools and wheel, git clean -fxd, and recompiling.\r\n\r\nOh wait, when trying to build and install with your PR, I got a weird error with astropy_helpers:\r\n```\r\nProcessing ./dist/astropy-1.1.dev14154.tar.gz\r\n    Complete output from command python setup.py egg_info:\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 20, in <module>\r\n      File \"/tmp/simon/pip-2Ym7uD-build/setup.py\", line 52, in <module>\r\n        package_info = get_package_info()\r\n      File \"/tmp/simon/pip-2Ym7uD-build/.eggs/astropy_helpers-0.4.8-py2.7.egg/astropy_helpers/setup_helpers.py\", line 1096, in get_package_info\r\n        for setuppkg in iter_setup_packages(srcdir, packages):\r\n      File \"/tmp/simon/pip-2Ym7uD-build/.eggs/astropy_helpers-0.4.8-py2.7.egg/astropy_helpers/setup_helpers.py\", line 1168, in iter_setup_packages\r\n        module = import_file(setup_package)\r\n      File \"/tmp/simon/pip-2Ym7uD-build/.eggs/astropy_helpers-0.4.8-py2.7.egg/astropy_helpers/setup_helpers.py\", line 1350, in import_file\r\n        return imp.load_module(name, fd, filename, ('.py', 'U', 1))\r\n      File \"astropy/modeling/setup_package.py\", line 14, in <module>\r\n        wcs_setup_package = utils.import_file(join('astropy', 'wcs', 'setup_package.py'))\r\n      File \"/tmp/simon/pip-2Ym7uD-build/.eggs/astropy_helpers-0.4.8-py2.7.egg/astropy_helpers/utils.py\", line 169, in import_file\r\n        if name is None:\r\n    UnboundLocalError: local variable 'name' referenced before assignment\r\n```\r\nIt seems I was using an old version of astropy_helpers via the .egg-info stuff (but I don't know where the astropy_helpers-0.4.8-py2.7.egg came from ??) :\r\n```\r\n(test)❯ l astropy_helpers/astropy_helpers.egg-info\r\ntotal 20K\r\n-rw-r--r-- 1 simon    1 28 nov.   2014 dependency_links.txt\r\n-rw-r--r-- 1 simon    1 28 nov.   2014 not-zip-safe\r\n-rw-r--r-- 1 simon 2,8K 28 nov.   2014 PKG-INFO\r\n-rw-r--r-- 1 simon 2,8K 28 nov.   2014 SOURCES.txt\r\n-rw-r--r-- 1 simon   16 28 nov.   2014 top_level.txt\r\n```\r\n\r\nAfter cleaning this `astropy_helpers/astropy_helpers.egg-info` directory, I can now pip install correctly, with master and with your PR. But I'm still confused by this error: first git clean didn't remove this directory, second why was the .egg-info out of date ? Now that I have deleted it, it has been created again, but I thought astropy_helpers was not installed ?"}}