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


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

Python policy about /usr/lib/pythonXY.zip

From Julien Palard <julien@palard.fr>
Newsgroups linux.debian.maint.python
Subject Python policy about /usr/lib/pythonXY.zip
Date 2022-11-04 16:20 +0100
Message-ID <Fo6E9-1mio-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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)

Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web