Re: distutils as an application installer?



En Mon, 31 Mar 2008 08:32:15 -0300, PurpleServerMonkey <PurpleServerMonkey@xxxxxxxxx> escribió:

Was hoping someone could take a quick look at my distutils problem and
give it a quick sanity check.

Basically I have a server application (for Linux) that I want to
install to /usr/local/<server directory>, this location would have
subdirectories for the daemon scripts, log files, plugins etc.

After reading a bunch of distutils documentation it appears that the
only good way out of this is to have my packages install to the system
wide site-packages directory. Then using the data_files command in
setup.py have it copy across an initial skeleton copy of the server
directory and finally install the startup scripts.

Does this sound correct, any other suggestions?

I'd use instead a standard setup script, and install it with --prefix or --home. You may want to provide a setup.cfg file with some defaults.

The distutils documentation doesn't cover this scenario and I've spent
days searching for information so any assistance is greatly
appreciated.

It is in the "Installing" part, not in "Distributing". After all, you (as the developer) should only provide "what" to install; but "where" those parts get actually installed is decided by soemone else when the app is installed ("someone else" might even be yourself)

--
Gabriel Genellina

.



Relevant Pages

  • Re: Cant install components on 2003 SP1 R2 upgrade
    ... drive for .log files relating to R2 and there weren't any at all. ... The install appears to have gone smoothly, ... passive server within a 2 server active/passive cluster. ... Microsoft MVP: Windows Server ...
    (microsoft.public.windows.server.setup)
  • Re: Cant install components on 2003 SP1 R2 upgrade
    ... It's really strange that the log files were not created and the registry key ... Microsoft MVP: Windows Server ... I watched the last 10 minutes of the install which appeared to go ...
    (microsoft.public.windows.server.setup)
  • Re: OWA security/hacking
    ... There are also some Microsoft security patches for OWA itself that need to ... be run on the OWA server but not the Exchange server. ... Review the log files daily. ... Install anti-virus on the server and set it to get new definitions daily. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Cant install components on 2003 SP1 R2 upgrade
    ... It's really strange that the log files were not created and the registry key ... Did they upgrade or clean install? ... Microsoft MVP: Windows Server ...
    (microsoft.public.windows.server.setup)
  • Log files on server, data on SAN drive ?
    ... I need to install SQL server on my MOM 2005 box. ... It is recommended to split log files disk location from ...
    (microsoft.public.windows.server.general)