I implemented PyPI as a WSGI application. It's fairly trivial, and doesn't effect anything except pypi.cgi (actually doesn't effect that file, but is an alternative to that code). The WSGI version is here:

  http://lonelylion.com/chipy/pypi/pypi_wsgi.py

And the CGI version I based it on (only slightly different from CVS):

  http://lonelylion.com/chipy/pypi/pypi_cgi.py

I'm not 100% sure if PyPI is threadsafe, or serves multiple requests from a single process properly, but I haven't seen anything that would make me expect a problem. So this should be sufficient to get it to run under mod_python or Twisted or whatever.

--
Ian Bicking  /  [EMAIL PROTECTED]  / http://blog.ianbicking.org
_______________________________________________
Catalog-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/catalog-sig

Reply via email to