1410
Comment: order the dependencies
|
1733
update per Pylons 0.9.7 work
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
The things/steps needed to get Pylons running on Jython: | #format rst |
Line 3: | Line 3: |
* The ability to install Pylons and all its dependencies: | Pylons on Jython ================ |
Line 5: | Line 6: |
- distutils and setuptools (See SetuptoolsOnJython) | **Status**: Jython is supported as of Pylons 0.9.7. |
Line 7: | Line 8: |
Ensure all dependencies' tests pass: | Pending Improvements ==================== |
Line 9: | Line 11: |
* Paste, PasteDeploy and PasteScript | bdist_war: Need the ability to create .war files from a Pylons project, similar to what django-jython provides. pjenvey is working on this |
Line 11: | Line 13: |
* Mako | Support more of the out of the box optional components, such as: |
Line 13: | Line 15: |
* Beaker | SQLAlchemy ---------- |
Line 15: | Line 18: |
* nose - nose requires the optparse (easy) and the compiler module (sort of easy -- compiler requires the parser module, which isn't easy to get). nose only needs the compiler module to use compiler.consts.CO_GENERATOR, maybe jython could provide a broken compiler module that doesn't import parser. |
* Frank Wierzbicki, Ariane Paoao and others have made some progress making SQLAlchemy work with MySQL via zxJDBC, but no support in SQLAlchemy proper yet. |
Line 18: | Line 20: |
* Routes | * Jonathan Ellis made an Oracle backend for SQLAlchemy via zxJDBC: http://pylonshq.com/pasties/77c3184b14d6936d86d13e4e65df92d2 Some other zxJDBC dialects would likely follow this example |
Line 20: | Line 22: |
- (I actually tested routes on Jython over a year ago and all the tests passed after one small change) | * The `Dialect Refactor II <http://www.sqlalchemy.org/trac/ticket/672>`_ ticket will help properly support using SQLAlchemy via Jython's DBAPI jdbc driver, `zxJDBC <http://jython.org/Project/userguide.html#database-connectivity-in-jython>`_. Jason Kirtland has begun working on this. |
Line 22: | Line 24: |
* WebHelpers | Jinja2 ------ |
Line 24: | Line 27: |
* FormEncode | Jinja2 `may work on Jython now <http://dev.pocoo.org/projects/jinja/ticket/320>`_. Its tests need to be converted to nosetests so the test suite can run on Jython to ensure this |
Line 26: | Line 29: |
* simplejson | Genshi ------ Jim Baker and Ariane Paola have played around with Genshi on Jython. Its use of pyexpat is the biggest roadblock. Jython now includes a pyexpat, but it's not fully compatible with CPython's (and doesn't support all the features Genshi uses). |
Line 28: | Line 33: |
* decorator | Turbogears 2 ------------ |
Line 30: | Line 36: |
- Note: decorators aren't currently supported in Jython, however the decorator module doesn't actually use decorators (works on CPython 2.3) | Ariane Paola made some progress porting TurboGears 2 components to Jython for Google's Summer of Code. Genshi and SQLAlchemy are the most important pieces that need porting |
Line 32: | Line 38: |
Later down the road: * 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]. Frank Wierzbicki has done some preliminary work on using SQLAlchemy with Jython, info [http://groups.google.com/group/sqlalchemy/browse_frm/thread/d60db24fe1683a41/09320033f406d78b?hl=en&lnk=gst here] |
Older details: `PylonsOnJythonOld`_ |
Pylons on Jython
Status: Jython is supported as of Pylons 0.9.7.
Pending Improvements
bdist_war: Need the ability to create .war files from a Pylons project, similar to what django-jython provides. pjenvey is working on this
Support more of the out of the box optional components, such as:
SQLAlchemy
- Frank Wierzbicki, Ariane Paoao and others have made some progress making SQLAlchemy work with MySQL via zxJDBC, but no support in SQLAlchemy proper yet.
- Jonathan Ellis made an Oracle backend for SQLAlchemy via zxJDBC: http://pylonshq.com/pasties/77c3184b14d6936d86d13e4e65df92d2 Some other zxJDBC dialects would likely follow this example
- The Dialect Refactor II ticket will help properly support using SQLAlchemy via Jython's DBAPI jdbc driver, zxJDBC. Jason Kirtland has begun working on this.
Jinja2
Jinja2 may work on Jython now. Its tests need to be converted to nosetests so the test suite can run on Jython to ensure this
Genshi
Jim Baker and Ariane Paola have played around with Genshi on Jython. Its use of pyexpat is the biggest roadblock. Jython now includes a pyexpat, but it's not fully compatible with CPython's (and doesn't support all the features Genshi uses).
Turbogears 2
Ariane Paola made some progress porting TurboGears 2 components to Jython for Google's Summer of Code. Genshi and SQLAlchemy are the most important pieces that need porting
Older details: PylonsOnJythonOld