Chuck Esterbrook wrote:
Is there really a standard for Python *applications*? I know there's
distutils which works great for libraries, but afaik it doesn't really
address anything about hooking into web servers like IIS and Apache,
or whether or not ports are accessible, etc. I've also never found
distutils options for listing what was installed, uninstalling,
upgrading, etc.
Application installation is one of the things I'm working on in Paste,
using related functions in setuptools. Setuptools still lacks some
functions like uninstallation, but they are taken into consideration,
there's just no actual script for doing the actions.
With a Paste-enabled application what I'm shooting for is an
installation like:
paster make-config PackageName config_file.ini
... then you edit config_file to taste ...
paster setup-app config_file.ini
... calls some hooks to install the app, however it wants to be
installed ...
paster serve config_file.ini
... starts up a server, according to your configuration ...
PasteWebKit implements most of the Webware API (stuff like plugins and
some other AppServer-related parts aren't there, but the bulk of what
makes up an application is implemented: http://pythonpaste.org/webkit/).
In the model I want for Python applications generally, each
application is a distutils-style package, and installed in the regular
ways (I actually want to make that kind of installation more appropriate
for applications, but that's largely a separate issue). You can get a
basic layout with:
paster create --template=webkit NewApplication
cd NewApplication
paster serve docs/devel_config.ini
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss