{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/1087","labels_url":"https://api.github.com/repos/pypa/pip/issues/1087/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/1087/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/1087/events","html_url":"https://github.com/pypa/pip/issues/1087","id":17236595,"number":1087,"title":"Impossible to install old versions of pip via get-pip","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},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-07-25T21:30:04Z","updated_at":"2016-01-02T22:32:33Z","closed_at":"2016-01-02T21:59:57Z","body":"Hi,\r\n\r\nI distribute a number of Python packages, and I try to make sure that these packages work with old versions of Python, going back to 2.5. Your move to drop 2.5 broke all my automated tests (thanks!), but what's worse is that I was unable to install an old version of pip reliably to maintain my ability to test on 2.5. [get-pip](https://raw.github.com/pypa/pip/1.3.1/contrib/get-pip.py) for version 1.3.1 (which nominally should support 2.5) produces this:\r\n\r\n```\r\nDownloading/unpacking pip\r\n  Running setup.py egg_info for package pip\r\n    warning: no files found matching '*.html' under directory 'docs'\r\n    warning: no previously-included files matching '*.rst' found under directory 'docs/_build'\r\n    no previously-included directories found matching 'docs/_build/_sources'\r\nInstalling collected packages: pip\r\n  Running setup.py install for pip\r\n    /var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/lib/python2.5/site-packages/pip/download.py:582: Warning: 'with' will become a reserved keyword in Python 2.6\r\n      File \"/var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/lib/python2.5/site-packages/pip/download.py\", line 582\r\n        with open(cache_content_type_file) as fp:\r\n                ^\r\n    SyntaxError: invalid syntax\r\n<SNIP>\r\n    SyntaxError: ('future feature unicode_literals is not defined',)\r\n    \r\n    warning: no files found matching '*.html' under directory 'docs'\r\n    warning: no previously-included files matching '*.rst' found under directory 'docs/_build'\r\n    no previously-included directories found matching 'docs/_build/_sources'\r\n    Installing pip script to /var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/bin\r\n    Installing pip-2.5 script to /var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/bin\r\nSuccessfully installed pip\r\n```\r\n\r\nSuccessfully? No, not quite:\r\n\r\n```\r\n+ pip install pytest\r\nTraceback (most recent call last):\r\n  File \"/var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/bin/pip\", line 9, in <module>\r\n    load_entry_point('pip==1.4', 'console_scripts', 'pip')()\r\n  File \"build/bdist.linux-x86_64/egg/pkg_resources.py\", line 346, in load_entry_point\r\n  File \"build/bdist.linux-x86_64/egg/pkg_resources.py\", line 2516, in load_entry_point\r\n  File \"build/bdist.linux-x86_64/egg/pkg_resources.py\", line 2210, in load\r\n  File \"/var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/lib/python2.5/site-packages/pip/__init__.py\", line 10, in <module>\r\n    from pip.util import get_installed_distributions, get_prog\r\n  File \"/var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/lib/python2.5/site-packages/pip/util.py\", line 17, in <module>\r\n    from pip.vendor.distlib import version\r\n  File \"/var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/lib/python2.5/site-packages/pip/vendor/distlib/version.py\", line 13, in <module>\r\n    from .compat import string_types\r\n  File \"/var/lib/jenkins/jobs/pyopencl2/workspace/cl_dev/intel/node/master/py_version/2.5/.env/lib/python2.5/site-packages/pip/vendor/distlib/compat.py\", line 276\r\n    return b''\r\n             ^\r\nSyntaxError: invalid syntax\r\n```\r\n\r\nWhat command will work to reliably install pip across 2.5...3.x the way `get-pip.py` did until two days ago?"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/168435455","html_url":"https://github.com/pypa/pip/issues/1087#issuecomment-168435455","issue_url":"https://api.github.com/repos/pypa/pip/issues/1087","id":168435455,"user":{"login":"coderanger","id":128243,"avatar_url":"https://avatars.githubusercontent.com/u/128243?v=3","gravatar_id":"","url":"https://api.github.com/users/coderanger","html_url":"https://github.com/coderanger","followers_url":"https://api.github.com/users/coderanger/followers","following_url":"https://api.github.com/users/coderanger/following{/other_user}","gists_url":"https://api.github.com/users/coderanger/gists{/gist_id}","starred_url":"https://api.github.com/users/coderanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderanger/subscriptions","organizations_url":"https://api.github.com/users/coderanger/orgs","repos_url":"https://api.github.com/users/coderanger/repos","events_url":"https://api.github.com/users/coderanger/events{/privacy}","received_events_url":"https://api.github.com/users/coderanger/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T22:32:33Z","updated_at":"2016-01-02T22:32:33Z","body":"@xavfernandez Pretty sure a solution that involves \"edit your own custom installer system\" is not a good solution given that this will happen again with _every_ major version of Python. Fix it once as discussed #2393 and it is at least done for the future. Closing this as a dup of 2393 is fine, but it is still a problem to be solved."}}