Changes between Version 2 and Version 3 of DjangoAndPyPy


Ignore:
Timestamp:
Jul 12, 2008, 3:04:32 AM (16 years ago)
Author:
Henrik Vendelbo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DjangoAndPyPy

    v2 v3  
    22For now you can get a project like Pinax from Django Hotclub up and running with a bit of extra work.
    33
    4 Check out PyPy
     4== Check out PyPy ==
     5{{{
     6svn co http://codespeak.net/svn/pypy/dist pypy-dist
     7}}}
     8This checks out a pypy package and a py package(has py.test and other neat Python code)
     9If you are using git to check out, check out the py repository separately or install py using easy_install.
    510
    6 svn co http://codespeak.net/svn/pypy/dist pypy-dist
     11PyPy runs on
     12 * Windows 32bit
     13 * Mac OS X Intel and PPC
     14 * Linux 32bit and 64bit
    715
    8 For Mac:
     16== Build pypy-c ==
     17Don'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.
     18Expect it to take 30-60 minutes
     19{{{
     20cd pypy/translator/goals
     21./translate.py --thread --gc=hybrid --batch targetpypystandalone --faassen --allworkingmodules --oldstyle
     22}}}
     23This will create a pypy-c executable in the current directory. The generated interpreter will use the modified
     24and standard Python libraries bundled with the PyPy source code if a runtime library is not already on the PYTHONPATH.
     25
     26
     27== Platform prerequisites ==
     28
     29To compile PyPy you need a couple of developer tools. Essentially,
     30 * Python 2.5 or 2.4 with ctypes
     31 * C Compiler (gcc or equivalent)
     32 * C Libraries
     33 * libbz2-dev
     34 * zlib-dev
     35 * libffi
     36 * python-dev
     37
     38=== For Mac ===
     39
    940Install Developer Tools
    1041Install MacPorts
    11 Install libffi
     42Install python25 and libffi via MacPorts
    1243
    13 
    14 Build pypy-c
    15 
    16 Magic translation command (example):
    17 ./translate.py --thread --gc=hybrid targetpypystandalone --faassen --allworkingmodules --oldstyle
     44And you should be good to go
    1845
    1946       
    20 Check out Django
     47== Check out Django ==
    2148
    2249                Do a subversion checkout of django trunk. Or get version 1.0 that has the signals speedup (ticket 6814)
     
    3966Make a link to pypy-c in /usr/shared/bin
    4067
    41 
     68{{{
    4269pypy-c ./manage.py runserver --noreload
     70}}
Back to Top