Advice on distutils and distribution policies



Hi,
I've built a small project (http://eligante.sf.net) which I'm actually
trying to package using distutils.
The directory structure is going to be like this:

eligante/
eligante.py
sitobase.py
personas.py
[...other python files...]
modulos/
mbox.py
gaim.py
[...other python files...]
web/
indice.py
cerca.py
[...other python files...]
stylo.css
testata.html
[and maybe, in the future, other HTML files]

The python files in the eligante/web directory are intended to be called
by a webserver (now Apache, but soon I'll switch to the python
module CGIHTTPServer for simplicity) as CGIs. Currently, these CGIs read
the testata.html file and use it as the beginning of their output, while
the style.css is served by the HTTP server.

However, I don't know if this directory layout is suitable for
site-packages, since at a first glance it looks to me that datafiles might
not be welcome under it. Is it so?
In that case, where should I move the .html files, and how should I access
them from inside python?

If, on the other hand, this layout is OK for site-packages, how do I
instruct distutils to put the .html and .css files under the eligante/web
directory?

Sorry for the long post, and thanks in advance for any help or suggestion.


--
Saluti,
Mardy
http://interlingua.altervista.org

.



Relevant Pages

  • Antwort: Distutil install problem [LBBW: checked]
    ... python 2.3.3 ... distutils module, still ... Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde, ... verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail ...
    (comp.lang.python)
  • Re: distutils and data files
    ... I have a slightly messy python program I wrote that I've historically ... I need something that could work from both the extracted source ... install command. ... maybe the distutils module now incorporates a similar ...
    (comp.lang.python)
  • pyconfig on 64-bit machines with distutils vs 32-bit legacy code
    ... I have a problem compiling legacy C code using distutils on a ... colleague's 64 bit intel machine running linux. ... available to create a DLL as a python module via SWIG. ...
    (comp.lang.python)
  • Re: distutils and data files
    ... I have a slightly messy python program I wrote that I've historically ... files in this folder that this program uses. ... I need something that could work from both the extracted source ... This seems to be a classic distutils question: how a python module can access to data files *after* being installed? ...
    (comp.lang.python)
  • Re: python extensions: including project local headers
    ... I'm working on a python extension wrapper around Rob Hess' ... I can get distutils to compile the extension and install it in the ... Maybe I should compile the sift code as a shared object and link it to ...
    (comp.lang.python)