I have a problem with the setup script.py, after the introduction
of the configuration file: how to install it?
I need some help on this - especially from people involved in the
creation of packages for the various distributions, if possible.
If you know of anyone who can help, please forward this email.

The 'data_files' argument of the distutils.core.setup() function,
at first, looks like the best option.
Wrong.  I can use it this way:
  data_files=[('/etc', ['./configFile.cfg'])]

but there are two distinct problems:
- non-unix systems: I can check sys.platform and change '/etc'
  to something else (sys.prefix ?), but I'm wondering what the
  best check would be.
  "if sys.platform == 'win32'" seems quite a silly test...

- with '/etc', the /etc directory is _always_ used, no matter
  what command-line argument you'll specify: "--prefix", "--install-data"
  and friends _won't_ work and the file will always ends up in /etc.
  That's wrong: it prevents installations by unprivileged users and
  will create problems to packagers, I suppose.

  Oh, specifying just 'etc' won't work either: it will be interpreted
  as a path relative to sys.prefix, and the file will be copied in
  /usr/etc/


Any idea?
I'm ready to switch to easy_install, but I'd prefer to be
sure that it will solve my problems... and by the way a complete
example of a working easy_install setup.py script would be
really appreciated. :-)


Thanks,
-- 
Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to