#28878: "pip install django" is broken on Python 2; can be fixed for most users
with metadata
----------------------------------------------+------------------------
               Reporter:  Zac Hatfield Dodds  |          Owner:  nobody
                   Type:  Bug                 |         Status:  new
              Component:  Packaging           |        Version:  2.0
               Severity:  Release blocker     |       Keywords:
           Triage Stage:  Unreviewed          |      Has patch:  0
    Needs documentation:  0                   |    Needs tests:  0
Patch needs improvement:  0                   |  Easy pickings:  0
                  UI/UX:  0                   |
----------------------------------------------+------------------------
 For users on Python 2, 'pip install django' ''should'' install the latest
 compatible version, which is 1.11.x.

 Unfortunately, it currently tries to install Django 2.0, and setup.py
 throws an error (the details are unimportant, except that it's a terrible
 user experience).  This is unfortunately inevitable for users with very
 old versions of pip, who are therefore out of luck unless they upgrade it.

 For any user with pip 9+ though, we can use the
 [https://packaging.python.org/tutorials/distributing-packages/#python-
 requires python-requires] argument to 'setuptools.setup'.  All users will
 then transparently get the latest version that is compatible with their
 Python, and all will be well.

 [http://www.python3statement.org/practicalities/] has a range of further
 advice on making this process as smooth as possible, including tips about
 setuptools versions and where to insert explicit warnings and errors for
 users who somehow get an incompatible version anyway.

 I'd be happy to review any patches in relation to this, or help write them
 if someone can help with django-specific questions :-)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28878>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.8a758fcb63bc21a6c5fddacffa00cfdb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to