{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/215","labels_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/215/comments","events_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/215/events","html_url":"https://github.com/Homebrew/linuxbrew/issues/215","id":52596662,"number":215,"title":"Python 2.7.9 Compiles, but that's about it.","user":{"login":"jlisic","id":3439099,"avatar_url":"https://avatars.githubusercontent.com/u/3439099?v=3","gravatar_id":"","url":"https://api.github.com/users/jlisic","html_url":"https://github.com/jlisic","followers_url":"https://api.github.com/users/jlisic/followers","following_url":"https://api.github.com/users/jlisic/following{/other_user}","gists_url":"https://api.github.com/users/jlisic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlisic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlisic/subscriptions","organizations_url":"https://api.github.com/users/jlisic/orgs","repos_url":"https://api.github.com/users/jlisic/repos","events_url":"https://api.github.com/users/jlisic/events{/privacy}","received_events_url":"https://api.github.com/users/jlisic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/linuxbrew/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-21T14:32:33Z","updated_at":"2015-05-17T09:22:55Z","closed_at":null,"body":"Hi, I am having some issues with Python.  Python itself will compile, but setup.py segfaults and checking the make logs, it appears that readline.h cannot be found.  This is quite odd since readline.h was installed through brew, and I have been able to compile some test programs against it with no issues.\r\n\r\nI've tried forcing python.rb to find the include both through adding '-I' for readline to CFLAGS, but no luck.\r\n\r\n[link to gist with logs]\r\n(https://gist.github.com/jlisic/cc0a444baed0236cd67f)\r\n\r\n```\r\n==> Downloading https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz\r\nAlready downloaded: /home/lisijo/.cache/Homebrew/python-2.7.9.tgz\r\n==> Downloading http://bugs.python.org/file30805/issue10910-workaround.txt\r\nAlready downloaded: /home/lisijo/.cache/Homebrew/python--patch-9926640cb7c8e273e4b451469a2b13d4b9df5ba3.txt\r\n==> Patching\r\npatching file Include/pyport.h\r\nHunk #1 succeeded at 713 (offset 14 lines).\r\nHunk #2 succeeded at 736 (offset 14 lines).\r\n==> ./configure --prefix=/home/lisijo/.linuxbrew/Cellar/python/2.7.9 --enable-ipv6 --datarootdir=/home/lisijo/.linuxbrew/Cellar/python/2.7.9/share --datadir=/home/lisijo/.linuxbrew/Cellar/python/2.7.9/share --en\r\n==> make\r\n==> make install PYTHONAPPSDIR=/home/lisijo/.linuxbrew/Cellar/python/2.7.9\r\n==> Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-8.0.tar.gz\r\nAlready downloaded: /home/lisijo/.cache/Homebrew/python--setuptools-8.0.tar.gz\r\n==> Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz\r\nAlready downloaded: /home/lisijo/.cache/Homebrew/python--pip-1.5.6.tar.gz\r\n==> Caveats\r\nSetuptools and Pip have been installed. To update them\r\n  pip install --upgrade setuptools\r\n  pip install --upgrade pip\r\n\r\nYou can install Python packages with\r\n  pip install <package>\r\n\r\nThey will install into the site-package directory\r\n  /home/lisijo/.linuxbrew/lib/python2.7/site-packages\r\n\r\nSee: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md\r\n==> /home/lisijo/.linuxbrew/Cellar/python/2.7.9/bin/python -s setup.py --no-user-cfg install --force --verbose --install-scripts=/home/lisijo/.linuxbrew/Cellar/python/2.7.9/bin --install-lib=/home/lisijo/.linuxb\r\n--verbose\r\n--install-scripts=/home/lisijo/.linuxbrew/Cellar/python/2.7.9/bin\r\n--install-lib=/home/lisijo/.linuxbrew/lib/python2.7/site-packages\r\n\r\n/home/lisijo/.linuxbrew/Cellar/python/2.7.9/bin/python: can't open file 'setup.py': [Errno 2] No such file or directory\r\nWarning: The post-install step did not complete successfully\r\nYou can try again using `brew postinstall python`\r\n==> Summary\r\n/home/lisijo/.linuxbrew/Cellar/python/2.7.9: 4934 files, 105M, built in 2.2 minutes\r\n```\r\n\r\nStarting python produces:\r\n\r\n```\r\nPython 2.7.9 (default, Dec 21 2014, 09:09:48)\r\n[GCC 4.9.2] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\nTraceback (most recent call last):\r\n  File \"/etc/pythonstart\", line 7, in <module>\r\n    import readline\r\nImportError: No module named readline\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/comments/102771429","html_url":"https://github.com/Homebrew/linuxbrew/issues/215#issuecomment-102771429","issue_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/215","id":102771429,"user":{"login":"bobobo1618","id":707839,"avatar_url":"https://avatars.githubusercontent.com/u/707839?v=3","gravatar_id":"","url":"https://api.github.com/users/bobobo1618","html_url":"https://github.com/bobobo1618","followers_url":"https://api.github.com/users/bobobo1618/followers","following_url":"https://api.github.com/users/bobobo1618/following{/other_user}","gists_url":"https://api.github.com/users/bobobo1618/gists{/gist_id}","starred_url":"https://api.github.com/users/bobobo1618/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobobo1618/subscriptions","organizations_url":"https://api.github.com/users/bobobo1618/orgs","repos_url":"https://api.github.com/users/bobobo1618/repos","events_url":"https://api.github.com/users/bobobo1618/events{/privacy}","received_events_url":"https://api.github.com/users/bobobo1618/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T09:22:55Z","updated_at":"2015-05-17T09:22:55Z","body":"I've been having issues here too. `setup.py` has a ton of `/usr/include/xxxx` hard coded into it and it wreaks havok all over the Python build. `ncurses` also seems to be a requirement for readline for some reason."}}