Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14602 > unrolled thread

Python policy about /usr/lib/pythonXY.zip

Started byJulien Palard <julien@palard.fr>
First post2022-11-04 16:20 +0100
Last post2022-11-04 16:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python


Contents

  Python policy about /usr/lib/pythonXY.zip Julien Palard <julien@palard.fr> - 2022-11-04 16:20 +0100

#14602 — Python policy about /usr/lib/pythonXY.zip

FromJulien Palard <julien@palard.fr>
Date2022-11-04 16:20 +0100
SubjectPython policy about /usr/lib/pythonXY.zip
Message-ID<Fo6E9-1mio-3@gated-at.bofh.it>
The Python Policy document [1] states:

> For all supported Debian releases, sys.path does not include a /usr/lib/pythonXY.zip entry.

I may not understand the sentence, or something, because it looks wrong to me as pythonXY looks to be in sys.path, at least on my Debian bookworm:

    $ /usr/bin/python3.10 -c 'print(__import__("sys").path)'
    ['', '/usr/lib/python310.zip', ...

    $ /usr/bin/python3.10 -S -c 'print(__import__("sys").path)'
    ['', '/usr/lib/python310.zip', ...

Any idea of what's wrong here?

[1]: https://www.debian.org/doc/packaging-manuals/python-policy/
-- 
[Julien Palard](https://mdk.fr)

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web