[Python-ideas] Add appdirs module to stdlib

M.-A. Lemburg mal at egenix.com
Wed Sep 2 13:14:37 CEST 2015


I just commented on the ticket that references this discussion:

http://bugs.python.org/issue7175

In essence, Python already has an installation scheme which is
defined in sysconfig.py (see the top of the file) and has had
this ever since distutils got added to the stdlib.

It just lacks explicit entries for "config" and "cache" files,
so adding those would be more in line with coming up with
yet another standard, e.g. for posix_user:

    'posix_user': {
        'stdlib': '{userbase}/lib/python{py_version_short}',
        'platstdlib': '{userbase}/lib/python{py_version_short}',
        'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
        'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
        'include': '{userbase}/include/python{py_version_short}',
        'scripts': '{userbase}/bin',
        'config': '{userbase}/etc',
        'cache': '{userbase}/var',
        'data': '{userbase}',
        },

({userbase} is set by looking at PYTHONUSERBASE and defaults to
~/.local/)

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Sep 02 2015)
>>> Python Projects, Coaching and Consulting ...  http://www.egenix.com/
>>> mxODBC Plone/Zope Database Adapter ...       http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2015-08-27: Released eGenix mx Base 3.2.9 ...     http://egenix.com/go83

::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/


More information about the Python-ideas mailing list