[Checkins] SVN: zope.tal/branches/pypyzpt/README.txt Installation instructions. Incomplete, as it doesn't quite work for me yet.

Martijn Faassen faassen at infrae.com
Tue Jun 12 17:43:45 EDT 2007


Log message for revision 76649:
  Installation instructions. Incomplete, as it doesn't quite work for me yet.
  

Changed:
  U   zope.tal/branches/pypyzpt/README.txt

-=-
Modified: zope.tal/branches/pypyzpt/README.txt
===================================================================
--- zope.tal/branches/pypyzpt/README.txt	2007-06-12 20:43:15 UTC (rev 76648)
+++ zope.tal/branches/pypyzpt/README.txt	2007-06-12 21:43:43 UTC (rev 76649)
@@ -13,3 +13,44 @@
 TALES (see the 'zope.tales' package for more).
 
 See: http://www.zope.org/Wikis/DevSite/Projects/ZPT/TAL%20Specification%201.4
+
+Getting PyPy
+------------
+
+Check out the latest version of PyPy:
+
+  http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#svn-check-out-run-the-latest-pypy-as-a-two-liner
+
+Also make sure ctypes is available for your Python.
+
+Running the tests
+-----------------
+
+To run the tests:
+
+  $ python2.4 bootstrap.py
+  $ bin/buildout
+  $ export PYTHONPATH=/path/to/pypy-dist:$PYTHONPATH
+  $ bin/test
+
+Compiling with PyPy's RPython
+-----------------------------
+
+To compile the rpython:
+
+First, you need to set up PYTHONPATH so it has the required packages on the
+path:
+
+  $ export PYTHONPATH=/path/to/buildout/src:/path/to/buildout/eggs/zope.interface:/path/to/buildout/eggs/zope.i18nmessageid:$PYTHONPATH
+
+Now, run the following command to compile::
+
+  $ python /path/to/pypy-dist/pypy/bin/compilemodule.py _talinterpreter zope.tal
+
+The first argument is name of the RPython sub-package you want to
+compile, the second argument is path to the package where this RPython
+sub-package is found.
+
+The compiled module will be placed in
+/tmp/usession-XX/_talinterpreter/_talinterpreter.so. Move this file to
+src/zope/tal and rename _talinterpreter the package to make this work.



More information about the Checkins mailing list