Unix applications in python: production install questions

Neil Zanella nzanella at cs.mun.ca
Thu Aug 19 19:43:15 CEST 2004


What is the best way to install a python application under Unix. Since python
modules are platform independent I would guess these should be placed under an
application specific directory under either /usr/share or /usr/local/share with
a corresponding link to the main module(s) under /usr/bin or /usr/local/bin for
user applications and /usr/sbin or /usr/local/sbin for system applications.
Assuming this is done, should .pyc and .pyo files also be placed under
/usr/share or /usr/local/share? These are platform independent byte
code so they definitely go there if anywhere. The question is
whether the installer should install these files or not.
Provided the installer is to install these files, then
how can they be generated. Usually these are created
automatically each time the user runs python on a
given module, but is there another way to generate
them and should they really be installed separately
in a production scenario or not?



More information about the Python-list mailing list