Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2008-01-13 03:16:48
Size: 2266
Editor: PhilipJenvey
Comment: woohoo optparse
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:
* Paste, PasteDeploy and PasteScript nose
----
Line 14: Line 16:
* Mako Pylons projects require nose, but most packages (including Pylons) use nose as their own test runners.
Line 16: Line 18:
  - 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) requires:
Line 18: Line 20:
* Beaker   * the optparse module **(added in r4018)**
Line 20: Line 22:
* nose   * a fix for the cell variable (variables used in closures) bug here: http://pylonshq.com/pasties/667 **(fixed in r4038)**
Line 22: Line 24:
  requires:   * 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:
  - the optparse module (added in r4018) Routes
------
Pretty much all tests pass: though some tests require Paste's paste.fixture, which is troublesome to import
Line 26: Line 30:
  - 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 28: Line 31:
* Routes Paste, PasteDeploy and PasteScript
----------------------------------
requires:
Line 30: Line 35:
  - 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   * modulefinder module
Line 32: Line 37:
* WebHelpers Mako
----
Line 34: Line 40:
* FormEncode   * 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:
* simplejson Beaker
------

WebHelpers
----------

FormEncode
----------

simplejson
----------
Line 44: Line 60:
* decorator decorator
---------
Line 46: 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 48: Line 65:
Later down the road: Later down the road
===================
Line 50: Line 68:
* SQLAlchemy
Line 52: 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 54: 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)