1. Tarek Ziadé
  2. hitchhiker-guide-packaging
  3. Issues
Issue #16 new

About config files ?

Anonymous created an issue

Where should I place configuration files for the package, and how to handle this in setup.py ?

Comments (1)

  1. edthedev

    This is still a relevant issue in 2013.

    Configuration files need to be installed somewhere that the (sometimes non-programmer) user can reasonably find and modify them.

    Since configuration files are not source code, it is not reasonable to expect the non-programmer user to guess /pythonx.x/site-packages/edu.foobazz/foobaz.conf, and in some cases they may have asked a separate user to do ths install, and will not have write access to /pythonx.x/site-packages themselves.

    It would be excellent to document a standard way of handling configuration files for distributed products.

    These references seem to be related, but neither gives a thorough treatment specifically related to configuration files: http://peak.telecommunity.com/DevCenter/PythonEggs#accessing-package-resources http://peak.telecommunity.com/DevCenter/setuptools#non-package-data-files

    I would be happy to assist with updating the documentation on this, if someone in the community can point me to an appropriate best practice.

  2. Log in to comment