{"action":"opened","issue":{"url":"https://api.github.com/repos/WojciechMula/pyahocorasick/issues/12","labels_url":"https://api.github.com/repos/WojciechMula/pyahocorasick/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/WojciechMula/pyahocorasick/issues/12/comments","events_url":"https://api.github.com/repos/WojciechMula/pyahocorasick/issues/12/events","html_url":"https://github.com/WojciechMula/pyahocorasick/issues/12","id":101959925,"number":12,"title":"installation under python 2: C compilation is attempted and fails","user":{"login":"RobertoMaurizzi","id":451686,"avatar_url":"https://avatars.githubusercontent.com/u/451686?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertoMaurizzi","html_url":"https://github.com/RobertoMaurizzi","followers_url":"https://api.github.com/users/RobertoMaurizzi/followers","following_url":"https://api.github.com/users/RobertoMaurizzi/following{/other_user}","gists_url":"https://api.github.com/users/RobertoMaurizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertoMaurizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertoMaurizzi/subscriptions","organizations_url":"https://api.github.com/users/RobertoMaurizzi/orgs","repos_url":"https://api.github.com/users/RobertoMaurizzi/repos","events_url":"https://api.github.com/users/RobertoMaurizzi/events{/privacy}","received_events_url":"https://api.github.com/users/RobertoMaurizzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T17:59:15Z","updated_at":"2015-08-19T17:59:15Z","closed_at":null,"body":"Hello!\r\n\r\nI've tried to install pyahocorasick both using pip and by cloning current master and doing a python setup.py install.\r\nUsing python 2.7.9 I see setup trying to conpile the C module and failing with\r\n\r\n```\r\npyahocorasick.c:42:1: error: unknown type name ‘PyModuleDef’\r\n PyModuleDef ahocorasick_module = {\r\n ^\r\npyahocorasick.c:43:2: error: ‘PyModuleDef_HEAD_INIT’ undeclared here (not in a function)\r\n```\r\n\r\nIsn't the module supposed to be compiled only for Python 3?\r\n"}}