summaryrefslogtreecommitdiff
path: root/dev-python/mkdocstrings-python/mkdocstrings-python-1.16.10.ebuild
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-05-17 10:15:44 +0200
committerMichał Górny <mgorny@gentoo.org>2025-06-04 04:06:28 +0200
commit5b4b5324d444255844a922965fc4a79bd6ccbf31 (patch)
tree070606ab46f800a955cce0df2fb8185800bfc6c3 /dev-python/mkdocstrings-python/mkdocstrings-python-1.16.10.ebuild
parentba973e791948175b1aa13a5c9cc193f6ea80fc61 (diff)
downloadgentoo-5b4b5324d444255844a922965fc4a79bd6ccbf31.tar.gz
gentoo-5b4b5324d444255844a922965fc4a79bd6ccbf31.tar.bz2
gentoo-5b4b5324d444255844a922965fc4a79bd6ccbf31.zip
python-utils-r1.eclass: python_optimize, use sitedir, not sys.path
Default to optimizing the `site-packages` directory rather than the whole `sys.path` when no path is passed to `python_optimize`. Technically, this is a breaking change, but it is unlikely that any ebuilds have been actually relying on the old behavior, and in the worst case our QA checks will note the missing .pyc files. The old logic was assuming that a custom package may install overrides to `sys.path` that we would need to account for. However, this assumes that said overrides would actually start working *before* the package is installed (creating hard-to-reproduce bugs) -- and in these cases, we really prefer listing special paths explicitly anyway. Signed-off-by: Michał Górny <mgorny@gentoo.org> Part-of: https://github.com/gentoo/gentoo/pull/41560 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/mkdocstrings-python/mkdocstrings-python-1.16.10.ebuild')
0 files changed, 0 insertions, 0 deletions