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

Path csiph.com!1.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Julien Palard <julien@palard.fr>
Newsgroups linux.debian.maint.python
Subject Python policy about /usr/lib/pythonXY.zip
Date Fri, 04 Nov 2022 16:20:01 +0100
Message-ID <Fo6E9-1mio-3@gated-at.bofh.it> (permalink)
X-Original-To "debian-python@lists.debian.org" <debian-python@lists.debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Nov 4 15:14:46 2022
Old-Return-Path <julien@palard.fr>
X-Amavis-Spam-Status No, score=-7.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .palard. - helo: .mail-0201.mail-europe. - helo-domain: .mail-europe.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5
Feedback-ID 1372427:user:proton
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-python@lists.debian.org> archive/latest/20454
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/x5BUXM8IR8TzZEEEvX_djwYUGMcbbgkEVawbSWj7LFjbxCvhW4ARTE6RhB6xVY69BjVg51i1uojnn1yirySAXEFFVMGyV7FKAv6wh75CXys=@palard.fr
Approved robomod@news.nic.it
Lines 19
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 04 Nov 2022 15:13:54 +0000
X-Original-Message-ID <x5BUXM8IR8TzZEEEvX_djwYUGMcbbgkEVawbSWj7LFjbxCvhW4ARTE6RhB6xVY69BjVg51i1uojnn1yirySAXEFFVMGyV7FKAv6wh75CXys=@palard.fr>
Xref csiph.com linux.debian.maint.python:14602

Show key headers only | 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