{"action":"created","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1651","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1651/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1651/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1651/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1651","id":103171170,"number":1651,"title":"Make install.py work on Arch Linux","user":{"login":"Valloric","id":919444,"avatar_url":"https://avatars.githubusercontent.com/u/919444?v=3","gravatar_id":"","url":"https://api.github.com/users/Valloric","html_url":"https://github.com/Valloric","followers_url":"https://api.github.com/users/Valloric/followers","following_url":"https://api.github.com/users/Valloric/following{/other_user}","gists_url":"https://api.github.com/users/Valloric/gists{/gist_id}","starred_url":"https://api.github.com/users/Valloric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valloric/subscriptions","organizations_url":"https://api.github.com/users/Valloric/orgs","repos_url":"https://api.github.com/users/Valloric/repos","events_url":"https://api.github.com/users/Valloric/events{/privacy}","received_events_url":"https://api.github.com/users/Valloric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-26T04:21:25Z","updated_at":"2015-08-26T05:00:24Z","closed_at":null,"body":"It currently doesn't ([see comment](https://github.com/Valloric/YouCompleteMe/issues/1330#issuecomment-134637107)) because it uses `!#/usr/bin/env python` as the shebang, which on Arch uses python3. The old `install.sh` script worked around it like this:\r\n\r\n```sh\r\nPYTHON_BINARY=python\r\nif command_exists python2; then\r\n  PYTHON_BINARY=python2\r\nfi\r\n```\r\n\r\nIt might be possible to use this logic _inside_ the `install.py` script (so that `build.py` is correctly invoked with a Python 2 process) while making the `install.py` script itself run on both python2 and python3.\r\n\r\n@micbou Thoughts?"},"comment":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/comments/134832076","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1651#issuecomment-134832076","issue_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1651","id":134832076,"user":{"login":"micbou","id":10026824,"avatar_url":"https://avatars.githubusercontent.com/u/10026824?v=3","gravatar_id":"","url":"https://api.github.com/users/micbou","html_url":"https://github.com/micbou","followers_url":"https://api.github.com/users/micbou/followers","following_url":"https://api.github.com/users/micbou/following{/other_user}","gists_url":"https://api.github.com/users/micbou/gists{/gist_id}","starred_url":"https://api.github.com/users/micbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micbou/subscriptions","organizations_url":"https://api.github.com/users/micbou/orgs","repos_url":"https://api.github.com/users/micbou/repos","events_url":"https://api.github.com/users/micbou/events{/privacy}","received_events_url":"https://api.github.com/users/micbou/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T05:00:24Z","updated_at":"2015-08-26T05:00:24Z","body":"What we could do is remove the following check in the `build.py` script:\r\n```\r\nmajor, minor = sys.version_info[ 0 : 2 ]\r\nif major != 2 or minor < 6:\r\n  sys.exit( 'The build script requires Python version >= 2.6 and < 3.0; '\r\n            'your version of Python is ' + sys.version )\r\n```\r\nand make the `install.py`, `build.py`, and `run_tests.py` scripts python3-compatible which, from my tests, is already the case.\r\n"}}