Code

Changes between Version 4 and Version 5 of DjangoAndPyPy


Ignore:
Timestamp:
07/12/08 02:14:12 (6 years ago)
Author:
hvendelbo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DjangoAndPyPy

    v4 v5  
    1515 
    1616== Build pypy-c == 
    17 Don't try this on a weak machine. It must have at least 1Gb memory or it will do a lot of swapping. 2Gb is plenty. 
     17Don't try this on a weak machine. It must have at least 1Gb memory and a 5Gb swap space or it will do a lot of swapping. 2Gb is plenty. 
    1818Expect it to take 30-60 minutes 
    1919{{{ 
     
    4747== Check out Django == 
    4848 
    49                 Do a subversion checkout of django trunk. Or get version 1.0 that has the signals speedup (ticket 6814) 
    50                 Or if ticket 6814 is not in yet, apply patch ticket 6857 (http://code.djangoproject.com/ticket/6857) 
     49Do a subversion checkout of django trunk.  
     50{{{ 
     51svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk 
     52}}} 
     53 
     54Currently the #6814 ticket is not resolved, so you need to apply the patch from #6857 to make robustapply work. 
     55Without the patch signals will blow up showing obscure import errors. 
     56 
     57Once Django 1.0 is out, it should run on PyPy out of the box. 
    5158 
    5259         
    53 Python 2.4 
     60== Python 2.4 == 
    5461 
    55                 Django only requires Python 2.3. But, be aware that many popular django applications depend on Python 2.5 runtime lib. 
     62PyPy supports the 2.4 runtime library, so you have to be aware of code using 2.5 features. 
    5663 
    57                 * elementtree (from xml.etree import cElementTree as ElementTree) 
    58                 python-openid 
    59                 yadis 
    60                 gdata 
    61                  
    62                 * hashlib 
    63                 python-openid 
    64                 gravatar 
     64Django only requires Python 2.3. So as such Django runs just fine on PyPy. 
     65But, be aware that many popular django applications depend on Python 2.5 runtime lib. 
     66 
     67Getting the Pinax Django Hotclub project running we needed a couple of extra dependencies, 
     68 * elementtree 
     69 * hashlib 
     70But these have now been included in PyPy during the EuroPython sprint (well done hpk & hruske). 
     71 
     72If you try to run Pinax on cPython 2.4 you would have this dependency problem. 
     73 
     74== Pinax Project == 
     75 
     76If you want to get the Pinax project up and running you need to check out the trunk 
     77{{{ 
     78svn checkout http://django-hotclub.googlecode.com/svn/trunk/ django-hotclub 
     79}}} 
     80This checks out pinax and all the associated applications from Google Code. If you want to check out with 
     81git follow the instructions on the project wiki at 
     82 
     83http://code.google.com/p/django-hotclub/wiki/UsingGit 
     84 
     85 
     86== Run Django == 
    6587                 
    6688Make a link to pypy-c in /usr/shared/bin