Friday, December 5. 2008Dabbling in Python 3.0Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Just so you know, I'm working on a native Python 3 framework (yet to see the public eye). I've tested it with your FCGI adapter and have had success with both Apache on Linux (via pipes) and LightTPd on Windows (via FastCGI server).
I don't have file upload support in yet and there is a bit of wonkiness in cgi.FieldStorage. Anyway, thanks for the fine adapter!
Your current setup.py does not work with Python 3.2 and is not compatible as far as i can tell with distribute. here is one that works. Using this, ez_setup.py is redundant.
# Bootstrap setuptools from setuptools import setup, find_packages import sys extra = {} if sys.version_info >= (3,): extra['use_2to3'] = False # extra['convert_2to3_doctests'] = ['src/your/module/README.txt'] # extra['use_2to3_fixers'] = ['your.fixers'] setup( name = 'flup', version = '1.0.2', packages = find_packages(), zip_safe = True, entry_points = { 'paste.server_runner' : [ 'ajp = flup.server.paste_factory:run_ajp_thread', 'fcgi = flup.server.paste_factory:run_fcgi_thread', 'scgi = flup.server.paste_factory:run_scgi_thread', 'ajp_thread = flup.server.paste_factory:run_ajp_thread', 'fcgi_thread = flup.server.paste_factory:run_fcgi_thread', 'scgi_thread = flup.server.paste_factory:run_scgi_thread', 'ajp_fork = flup.server.paste_factory:run_ajp_fork', 'fcgi_fork = flup.server.paste_factory:run_fcgi_fork', 'scgi_fork = flup.server.paste_factory:run_scgi_fork', ] } , author = 'Allan Saddi', author_email = 'allan@saddi.com', description = 'Random assortment of WSGI servers', license = 'BSD', url='http://www.saddi.com/software/flup/', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Server', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
I tried to build ajp-wsgi-py3 but it fails with Python 3.2 because the C API was deprecated in 3.1 and removed on favour of capsules. I would have logged it as a bug, but trac wont let me log in with trac/trac1234......
I looked at it to see if i could fix it, but i cant work out the python c api, and cant find any good docs on it, or the changes needed to switch to capsules. sorry, or i would have sent a patch. I am messing with this, because its kind of needed for using cherrypy with apache or lighttpd which now supports Python 3.2
Thanks for the heads up on all of these issues. Looks like I've got a lot of catching up to do on 3.2.
Also, the trac issue is most likely due to the switch to scgi-wsgi. That can't be good... |
Calendar
QuicksearchCategoriesBlog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||