Search code examples
pythonpackagingdistutils

Put configuration files of my python package in /etc/<appname> and log file in /var/log/<appname>


I am working on a python package (linux only) and using distutils. I want to put the configuration files in /etc/ and log files in /var/log/ or another common destination for such files.

Setuptools sort of recommends using a custom script extract and copy data files where necessary. Should I just provide a script or is there a better way of doing this?.


Solution

  • It's better to use your distribution packaging system, e.g. deb or rpm. Because destination of additional data files generally depends of target distribution.