Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Dmitry Shachnev Newsgroups: linux.debian.maint.python Subject: Re: Installation paths Date: Fri, 03 Jun 2022 13:40:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Jun 3 11:39:32 2022 Old-Return-Path: 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: archive/latest/19959 List-ID: List-URL: 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: X-Original-References: <247e827d-b7ee-8d98-d114-17f23d10e1b0@gmail.com> Xref: csiph.com linux.debian.maint.python:14131 --VlqXQtogZTr7RO27 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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//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 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 --VlqXQtogZTr7RO27 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE5688gqe4PSusUZcLZkYmW1hrg8sFAmKZ8toACgkQZkYmW1hr g8vtAA/+ORr2TAXyL0jbTKtW5uW3rH0O0YK0kZ6yNVV5OfUJiMCDkYFk1PrX/Jwh 3VDxUE7STbwNmMxds+w3FhmrbXhfXvKJRX+jb8fSdIbaVoa/DyZyIfrH2nigSmKJ rsnUQJfnbw0O21gn2sX3rmRFzO+ZRTVCUa7JipgN8fMdBv+0EcYjCKyKkjHSgkbL 51mS4fSMZp1M8TVKruLHDxYGuT1W+KU0QNNdyupjTLkcGM6C/Yoa1rTGobl8MwMi OE+Zh3/zK4BdI0lhoAvATHXpI6BUJM5tH3Vy6riiTt5oFhQssU7yEFyBhLEs0R3q QK0kKmmPl0boG0J/5vu2VMkFgEkbzMDzSDXFB84QDg07tIlfJQ5eeq9Z2TT3aHiz qKD/lKm/CworJ8KdmTacVHIA3e4lkTZ/KbY6bVs/WErpTLgqEN88EzRasQPZHjVr Atis4maaWySsb/F4jMHlo1wZ1ARzAXZUi4E8HRWKXHqCADnR4s+PQ+kGnlEUoVNW vL8kYxuBMrW5aJIHPoTAOMBgcDHHw1hlWZDnfLPnGuMYugBYzRNoeTQ7Tv7LEM4s hbLAnA6FRrzmCWbB1GEgQSgMfoeD+8pqpqIMAB/3l3pgxMqlS7qTECghXZ7BkR1L e4C0NVs0F4DBLNVmpTYImq3EvoV1J+nvOiLSmGz1PC4DUw2NnO8= =fkSW -----END PGP SIGNATURE----- --VlqXQtogZTr7RO27--