Changes between Version 2 and Version 3 of DjangoAndPyPy
- Timestamp:
- Jul 12, 2008, 3:04:32 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DjangoAndPyPy
v2 v3 2 2 For now you can get a project like Pinax from Django Hotclub up and running with a bit of extra work. 3 3 4 Check out PyPy 4 == Check out PyPy == 5 {{{ 6 svn co http://codespeak.net/svn/pypy/dist pypy-dist 7 }}} 8 This checks out a pypy package and a py package(has py.test and other neat Python code) 9 If you are using git to check out, check out the py repository separately or install py using easy_install. 5 10 6 svn co http://codespeak.net/svn/pypy/dist pypy-dist 11 PyPy runs on 12 * Windows 32bit 13 * Mac OS X Intel and PPC 14 * Linux 32bit and 64bit 7 15 8 For Mac: 16 == 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. 18 Expect it to take 30-60 minutes 19 {{{ 20 cd pypy/translator/goals 21 ./translate.py --thread --gc=hybrid --batch targetpypystandalone --faassen --allworkingmodules --oldstyle 22 }}} 23 This will create a pypy-c executable in the current directory. The generated interpreter will use the modified 24 and 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 29 To 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 9 40 Install Developer Tools 10 41 Install MacPorts 11 Install libffi42 Install python25 and libffi via MacPorts 12 43 13 14 Build pypy-c 15 16 Magic translation command (example): 17 ./translate.py --thread --gc=hybrid targetpypystandalone --faassen --allworkingmodules --oldstyle 44 And you should be good to go 18 45 19 46 20 Check out Django 47 == Check out Django == 21 48 22 49 Do a subversion checkout of django trunk. Or get version 1.0 that has the signals speedup (ticket 6814) … … 39 66 Make a link to pypy-c in /usr/shared/bin 40 67 41 68 {{{ 42 69 pypy-c ./manage.py runserver --noreload 70 }}