Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #12934
| Path | csiph.com!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Paul Wise <pabs@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Update PYTHONPATH after install |
| Date | Thu, 08 Oct 2020 03:10:02 +0200 |
| Message-ID | <AXsBr-5uI-1@gated-at.bofh.it> (permalink) |
| References | <AXsBs-5uI-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Thu Oct 8 01:09:32 2020 |
| Old-Return-Path | <paul.is.wise@gmail.com> |
| X-Amavis-Spam-Status | No, score=-5.729 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5.5 |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:cc; bh=wHoB3fWHHnmnO9MAdqbRaHgsbi3kyxjlU7OuQlRXX2Y=; b=J3l/vIKUqG/+bQ/Ggf6551eTowQhac52U/EdhvSGnfT5/WYPnDYzOOIkZhlrAoF4MD 0z3EsRalIncA2bLW8oNzt8+Qgz7Jty+V0yMq5yctKRT+7wXXDvdKOzTTi0iU68JRDkk3 G6k9zdgziegR717hEsfgjaL6caUZUsEhjgkt/FGnAnmZWFvneWPPOn1EfSlqQ5w/uqy/ f1SKSv++IWIIApkup8rtJKYtCut5lvkFnRlkwfw+in7nYd+mR5K9vzB6cs0DS65LsswO ZuoBDOfEKw34wiQjX9D0aK2YLoqWuxIBxAy+4iHVGDoCK8KdTXgcwlBlbZgMq9yfoRM/ SKiA== |
| X-Gm-Message-State | AOAM530jjHpze0O7eY8XwE8DuaYdivTV8uuSN5ycGKaN8WLv+N5fhiFn 1yy0OJwv0XHtdqNiMo0LeZyyvdacoUDPyVAPByjVjnLkdAQ= |
| X-Google-SMTP-Source | ABdhPJyH6kRBKWwjPkVhDuhYHD0tKIY6ZDWZ95viUqRnQGGbzvf7bv18xPXyPNM1FuXLgQUHD21v6usuKEcPE079tcw= |
| X-Received | by 2002:adf:df07:: with SMTP id y7mr6846642wrl.347.1602119356955; Wed, 07 Oct 2020 18:09:16 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/18694 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/CAKTje6EcdFvih64b3apbGjK+r18YVvNRcGBWSRvCfbYgaUvHSA@mail.gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 29 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | debian-python <debian-python@lists.debian.org> |
| X-Original-Date | Thu, 8 Oct 2020 01:09:04 +0000 |
| X-Original-Message-ID | <CAKTje6EcdFvih64b3apbGjK+r18YVvNRcGBWSRvCfbYgaUvHSA@mail.gmail.com> |
| X-Original-References | <DB8PR08MB5244740D99CFA002B58AD99CF70A0@DB8PR08MB5244.eurprd08.prod.outlook.com> |
| Xref | csiph.com linux.debian.maint.python:12934 |
Show key headers only | View raw
On Wed, Oct 7, 2020 at 5:56 PM Francis Murtagh wrote:
> My understanding of Debian policy means python3 modules should be installed in /usr/lib/python3/dist-packages/
Correct.
> Once the package installs there how is the PYTHONPATH meant to be updated so that user can import the module into the python3 interpreter?
This is not necessary...
> As the PYTHONPATH would normally look in /usr/local/ rather than /usr/lib/
... since the default import path includes /usr/lib:
$ unset PYTHONPATH
$ python3 -c 'import sys ; print("\n".join(sys.path))'
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages
/usr/lib/python3.8/dist-packages
--
bye,
pabs
https://wiki.debian.org/PaulWise
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Re: Update PYTHONPATH after install Paul Wise <pabs@debian.org> - 2020-10-08 03:10 +0200
csiph-web