[issue17727] document that some distributions change site.py defaults
Georg Brandl added the comment: Matthias and I agreed this isn't necessary since on the relevant distribution it's already documented. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17727 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17727] document that some distributions change site.py defaults
New submission from Georg Brandl: From the docs@ list: Dear all, the first paragraph of the documentation for the site module states that site.py constructs four directories using a head and tail part, and that one of the tail parts would be lib/pythonX.Y/site-packages on UNIX/Mac. However, in my Python 3.2 installation on Ubuntu 12.04 this is actually lib/python3/dist-packages (so no .Y and a different subdirectory) ! This is also stated in the module’s doc string. I don’t know why the Python documentation says something else, but that should be fixed. Attached a patch to explain why the defaults may look different on some distributions. Please review. -- assignee: docs@python components: Documentation files: site-patch.diff keywords: patch messages: 186897 nosy: barry, docs@python, doko, georg.brandl priority: normal severity: normal stage: patch review status: open title: document that some distributions change site.py defaults type: enhancement versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file29849/site-patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17727] document that some distributions change site.py defaults
Matthias Klose added the comment: the local patch adds as documentation on Debian/Ubuntu: For Debian and derivatives, this sys.path is augmented with directories for packages distributed within the distribution. Local addons go into /usr/local/lib/pythonversion/dist-packages, Debian addons install into /usr/lib/python3/dist-packages. /usr/lib/pythonversion/site-packages is not used. I can improve the local information, but I'm not sure how much should be added/changed in the upstream documentation. So maybe we should add an option for python-config to get the site dirs, or the list of site dirs too? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com