-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim Fulton wrote:
On Jul 2, 2009, at 8:39 PM, Tim Hoffman wrote:
Hi all
Can I make a suggestion that would make a couple of modules more gae friendly ;-) zope.interface and zope.i18nmessageid have 'c' optimisations which obviously don't work under app engine.
When these modules are imported you get the following exception.
gae/1.333250465889549129/zope/i18nmessageid/ _zope_i18nmessageid_message.py", line 6, in __bootstrap__ imp.load_dynamic(__name__,__file__) File "/base/python_dist/lib/python2.5/py_imp.py", line 116, in load_dynamic raise NotImplementedError('This function is not supported on App Engine.')
I think the suggestion to remap the NotImplementedError to an Import error is sensible (in that __bootstrap__ method).
This bootstrapping code is generated by setuptools to deal with loading extension modules in zip files. It does some unholy things to make this work. I'd really like to find a way to suppress this.
In general, I find deploying as zip files to be an anti-feature. In seems especially insane when extension modules are involved.
The only way to deploy *any* non-toy app on GAE is via zip file(s) (I would think a single big one would be best), due to their limit on the number of files. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKTkAH+gerLs4ltQ4RAhazAJ4itN+wO1rPwXPyLIEIaNF6VKSScgCdGyfd OxfF8AUnMYT09/L2B5RF9O0= =RGfd -----END PGP SIGNATURE-----