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


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

Re: Installation paths

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Dmitry Shachnev <mitya57@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Installation paths
Date Fri, 03 Jun 2022 13:40:01 +0200
Message-ID <EudON-2gfh-1@gated-at.bofh.it> (permalink)
References <Eudvr-2g91-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Jun 3 11:39:32 2022
Old-Return-Path <mitya57@gmail.com>
X-Amavis-Spam-Status No, score=-11.263 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOAM5337nrSD8/Tjmyvuy/Otwo1Ejbqu9IvrV7QxZKN3di+xYkM5Zykw XAyFR1FK/r8CoTBZvnghWHoyOc3JqUg=
X-Google-SMTP-Source ABdhPJyBx9RIV9XqTWh0mCMQQ2oKZm0/LYnepMAcTMnbmz81ii6RC9d0bba9Yd2mUTUIOHHp1Qn2EQ==
X-Received by 2002:a05:6512:951:b0:478:5c02:44b5 with SMTP id u17-20020a056512095100b004785c0244b5mr47342461lft.565.1654256356087; Fri, 03 Jun 2022 04:39:16 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VlqXQtogZTr7RO27"
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19959
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/Ypny300eJIpCNT2K@mitya57.me
Approved robomod@news.nic.it
Lines 65
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python@lists.debian.org
X-Original-Date Fri, 3 Jun 2022 14:39:11 +0300
X-Original-Message-ID <Ypny300eJIpCNT2K@mitya57.me>
X-Original-References <247e827d-b7ee-8d98-d114-17f23d10e1b0@gmail.com>
Xref csiph.com linux.debian.maint.python:14131

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Alec!

On Fri, Jun 03, 2022 at 12:58:44PM +0200, Alec Leamas wrote:
> Dear list,
>
> This issue was started on debian-devel. However, this list is perhaps a
> better choice (?)
>
> I try handle a package which installs a partly compiled,
> architecture-dependent python module. That is, besides some normal python
> files it also contains a compiled, architecture-dependent so-file which is
> imported by the python files.
>
> Until now  this has been installed in
> /usr/lib/triplet/python3.10/site-packages. This scheme has basically worked
> fine.

The correct installation location depends on whether it's a private or public
module.

If it's a private module of your application (not intended to be used by
other apps), then you should use a private path like described in our Python
Policy:

https://www.debian.org/doc/packaging-manuals/python-policy/#programs-shipping-private-modules

Something like /usr/lib/lirc or /usr/lib/<triplet>/lirc should work. But
then you should also modify the application itself to add that location to
sys.path.

If it's a public module that may be used by other applications, then you
should install to /usr/lib/python3/dist-packages (without the <triplet> part).

You can install to /usr/lib/python3.10/dist-packages if you want, then
dh_python3 will move from python3.10 to python3.

--
Dmitry Shachnev

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


Thread

Installation paths Alec Leamas <leamas.alec@gmail.com> - 2022-06-03 13:20 +0200
  Re: Installation paths Dmitry Shachnev <mitya57@debian.org> - 2022-06-03 13:40 +0200

csiph-web