Differences between revisions 6 and 7
Revision 6 as of 2008-01-15 23:36:09
Size: 2476
Editor: PhilipJenvey
Comment: update nose
Revision 7 as of 2008-01-16 05:20:10
Size: 2821
Editor: PhilipJenvey
Comment: updates/cleanup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Getting Pylons (0.9.6.1) to run on Jython
=========================================
Pylons (0.9.6.1) on Jython Requirements/TODO
============================================
Line 6: Line 6:
* The ability to install Pylons and all its dependencies: Installing Pylons and its dependencies
--------------------------------------
Line 8: Line 9:
  * distutils and setuptools (Mostly finished, See `SetuptoolsOnJython`_)   * distutils and setuptools **(Mostly finished, See** `SetuptoolsOnJython`_ **)**
Line 10: Line 11:
Ensure all dependencies' tests pass:   * Ensure all dependencies' tests pass
Line 12: Line 13:
* nose. Pylons projects require nose, but most packages (including Pylons) use nose as their own test runners. nose
----
Line 14: Line 16:
  requires: Pylons projects require nose, but most packages (including Pylons) use nose as their own test runners.
Line 16: Line 18:
  - the optparse module (added in r4018) requires:
Line 18: Line 20:
  - compiler modules (compiler requires the parser module which Jython lacks). nose only needs the compiler module to use compiler.consts.CO_GENERATOR; until there's a parser, maybe jython could provide a broken compiler module that doesn't import parser   * the optparse module **(added in r4018)**
Line 20: Line 22:
  - a fix for the cell variable (variables used in closures) bug here: http://pylonshq.com/pasties/667   * a fix for the cell variable (variables used in closures) bug here: http://pylonshq.com/pasties/667 **(fixed in r4038)**
Line 22: Line 24:
* Paste, PasteDeploy and PasteScript   * compiler modules (compiler requires the parser module which Jython lacks). nose only needs the compiler module to use compiler.consts.CO_GENERATOR; until there's a parser, maybe jython could provide a broken compiler module that doesn't import parser
Line 24: Line 26:
* Mako Routes
------
Pretty much all tests pass: though some tests require Paste's paste.fixture, which is troublesome to import
Line 26: Line 30:
  - mako uses the compiler module to parse Python code into AST. The compiler module is mostly pure Python code, but its guts are really the native parser module (which Jython lacks)
Line 28: Line 31:
* Beaker Paste, PasteDeploy and PasteScript
----------------------------------
requires:
Line 30: Line 35:
* Routes   * modulefinder module
Line 32: Line 37:
  - I got all of routes' tests to pass on Jython well over a year ago so I don't expect too much trouble here -pjenvey Mako
----
Line 34: Line 40:
* WebHelpers   * mako uses the compiler module to parse Python code into AST. The compiler module is mostly pure Python code, but its guts are really the native parser module (which Jython lacks)
Line 36: Line 42:
* FormEncode Beaker
------
Line 38: Line 45:
* simplejson WebHelpers
----------

FormEncode
----------

simplejson
----------
Line 46: Line 60:
* decorator decorator
---------
Line 48: Line 63:
  - Note: decorators aren't currently supported in Jython, however the decorator module doesn't actually use decorators (works on CPython 2.3)   * Note: decorators aren't currently supported in Jython, however the decorator module doesn't actually use decorators (works on CPython 2.3)
Line 50: Line 65:
Later down the road: Later down the road
===================
Line 52: Line 68:
* SQLAlchemy
Line 54: Line 69:
  - The [http://www.sqlalchemy.org/trac/ticket/672 Dialect Refactor II] ticket will need to be implemented to properly support using SQLAlchemy via Jython's DBAPI jdbc driver, [http://jython.org/Project/userguide.html#database-connectivity-in-jython zxJDBC].  SQLAlchemy
----------

- The [http://www.sqlalchemy.org/trac/ticket/672 Dialect Refactor II] ticket will need to be implemented to properly support using SQLAlchemy via Jython's DBAPI jdbc driver, [http://jython.org/Project/userguide.html#database-connectivity-in-jython zxJDBC].
Line 56: Line 74:

.. |svn| replace:: http://fisheye3.cenqua.com/changelog/jython/?cs=
.. _svn: http://fisheye3.cenqua.com/changelog/jython/?cs=

Pylons (0.9.6.1) on Jython Requirements/TODO

Installing Pylons and its dependencies

  • distutils and setuptools (Mostly finished, See SetuptoolsOnJython )
  • Ensure all dependencies' tests pass

nose

Pylons projects require nose, but most packages (including Pylons) use nose as their own test runners.

requires:

  • the optparse module (added in r4018)
  • a fix for the cell variable (variables used in closures) bug here: http://pylonshq.com/pasties/667 (fixed in r4038)
  • compiler modules (compiler requires the parser module which Jython lacks). nose only needs the compiler module to use compiler.consts.CO_GENERATOR; until there's a parser, maybe jython could provide a broken compiler module that doesn't import parser

Routes

Pretty much all tests pass: though some tests require Paste's paste.fixture, which is troublesome to import

Paste, PasteDeploy and PasteScript

requires:

  • modulefinder module

Mako

  • mako uses the compiler module to parse Python code into AST. The compiler module is mostly pure Python code, but its guts are really the native parser module (which Jython lacks)

Beaker

WebHelpers

FormEncode

simplejson

  • SetuptoolsOnJython currently has trouble installing simplejson, because it attempts to compile its optional C extensions (that help performance). It expects to catch a distutils.errors.CCompilerError if the compilation fails, but Jython dies much earlier:

File "/Users/pjenvey/src/java/jython-trunk/dist/Lib/distutils/command/build_ext.py", line 598, in get_ext_filename

TypeError: cannot concatenate 'str' and 'NoneType' objects

decorator

  • Note: decorators aren't currently supported in Jython, however the decorator module doesn't actually use decorators (works on CPython 2.3)

Later down the road

SQLAlchemy

PylonsOnJython (last edited 2009-09-14 22:04:24 by PhilipJenvey)