Adding Django 1.8 + Python 3 support

Stephen Finucane stephenfinucane at hotmail.com
Wed Apr 8 19:53:23 AEST 2015


> Just a data point: Debian Stable (Wheezy) has python-django version
> 1.4.5, whereas Testing (Jessie) (which will become Stable soon(?)) has
> 1.7.7. So Stable is already unsupported by patchwork.
> 
> Debian Stable has python version 2.7.3 and python3 version 3.2.3, while
> Testing has 2.7.9 and 3.4.2 respectively.
> 
> Its probably also worth considering what is in the latest Ubuntu LTS,
> RHEL and SLES releases.

Summary of findings below. Long story short: Python 2.6 is likely in use for any systems running RHEL6 or SLES11, but the supported versions of Ubuntu LTS only use Python 2.7 or Python 3.x. I've no idea how widespread RHEL6 and SLES11 are so perhaps Python 2.6 support is a necessity? We could probably accomplish Python 2.6-3.x compatibility but it'd need extensive use of the 'six' library (available since Django 1.5).

    https://docs.djangoproject.com/en/1.8/topics/python3/

The versions of Django bundled, if any, seem to fall within the range of unsupported or hopefully soon-to-be-dropped versions (i.e. 1.5, 1.6). I'm no sysadmin, but installing the latest version with 'pip' seems an appropriate option.

# Ubuntu LTS

Lucid (10.04) comes with 2.6.5:

    http://packages.ubuntu.com/lucid/python

Precise (12.04) adds support for Python 2.7:

    http://packages.ubuntu.com/precise/python

However, Lucid is also approaching five years old and support for it has just ended so I feel we don't need to support this:

    https://wiki.ubuntu.com/LTS
    https://wiki.ubuntu.com/LTS?action=AttachFile&do=get&target=ubuntu-release-cycle-2.png

Both Lucid and Precise comes with unsupported versions of Django (1.1 and 1.3 respectively):

    http://packages.ubuntu.com/lucid/python-django
    http://packages.ubuntu.com/precise/python-django

However, both have 'pip' and 'virtualenv':

    http://packages.ubuntu.com/lucid/python-pip
    http://packages.ubuntu.com/precise/python-pip
    http://packages.ubuntu.com/lucid/python-virtualenv
    http://packages.ubuntu.com/precise/python-virtualenv

# RHEL

RHEL 6 comes with Python 2.6 alone, though it is possible to upgrade to Python 2.7/Python 3 with RHSCL:

    http://developerblog.redhat.com/2014/02/18/migrate-to-python3-w-rhscl/

RHEL 7 comes with Python 2.7, though once again RHSCL makes addition of other versions a cinch:

    https://lwn.net/Articles/601835/

RHEL 6 comes with Django 1.5 and RHEL comes with Django 1.6:

    http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/python-django15.html
    http://dl.fedoraproject.org/pub/epel/7/x86_64/repoview/python-django.html

Once again, 'pip' and 'virtualenv' are available in both environments:

    http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/python-pip.html
    http://dl.fedoraproject.org/pub/epel/7/x86_64/repoview/python-pip.html
    http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/python-virtualenv.html
    http://dl.fedoraproject.org/pub/epel/7/x86_64/repoview/python-virtualenv.html

# SLES

NOTE: SLES is the hardest distro to find documentation for. Any advice here?

SLES 11 appears to support variations of 2.6:

    https://www.suse.com/releasenotes/x86_64/SUSE-SLES/11-SP2/
    https://www.suse.com/releasenotes/x86_64/SUSE-SLES/11-SP3/#fate-313238
    https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&architecture=i386&package_name=index_all

SLES 12 appears to support 2.7 and some version of 3:

    https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/

I couldn't find any references to versions of Django bundled with SLES and it does not appear as though 'pip' or 'virtualenv' are available. These need to be installed from source/additional repos apparently:

    https://coderwall.com/p/djpcxa/how-to-install-ansible-on-sles-11

# Fedora

Python 2.7 appears to be the standard in Fedora since Fedora 14. Per the release notes:

    http://docs.fedoraproject.org/en-US/Fedora/14/html/Release_Notes/sect-Release_Notes-Changes_for_Developers.html

Fedora 21 still includes Python 2.7.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20150408/93a237b1/attachment.html>


More information about the Patchwork mailing list