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


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

Question regarding binaries in /usr/lib/python3/dist-packages/

Path csiph.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Soren Stoutner <soren@debian.org>
Newsgroups linux.debian.maint.python
Subject Question regarding binaries in /usr/lib/python3/dist-packages/
Date Thu, 23 Apr 2026 20:30:01 +0200
Message-ID <MN6Yh-hrqS-3@gated-at.bofh.it> (permalink)
X-Original-To Debian Python <debian-python@lists.debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Apr 23 18:22:46 2026
Old-Return-Path <soren@debian.org>
X-Amavis-Spam-Status No, score=-114.41 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no
Organization Debian
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWIg4F7bGiws7ReTkyy kYoXFRrd6/4yMA0PAAACaklEQVQ4y22TwXabMBBFJaPuNZGSNZZp1uhM6BpkJeu4VFk3bsL/f0Lf CHC6qHyOgbl68zTDoIwaVfh3tUopTUGpbFToDiFnY9IY2oMAZYMiS4R9SfbSXepSS5EcFAa/muIU aRj8mkoUqrEraFzhYegBmqig0LyCIyM8DAwPlpBqmJVYaD2UeWZ3abVjsqKIojg+hY4omsyIcNSi qIBM6jJWOveS6kvBeVvHJ+VYzJUW88RmA12UiBx3HEcUMRuzIZI6tBQovTrPclNB3AuUXoXvs0XY C3B2baJpW4Dn2ZpVMInCirkxoyhM1qpK5nFrO65QvCrCqql2DyPgvm94iMQz5/PmISuEotxQGMD5 M5G1N9CjXJ5HQH96BZG2xx6AzejYZccxT4Re3Zr4bPKkCcGcz5Or3dVEABkAUY/znnVcQVVkrXVU vomoEJFe7x4nQuaZmZELL6qnXZGIB5YV/Q2IogtSmyNybEcBX2+QCLOAQYm+gmoORUrYzV7dc6R2 T1WPm45oVEQqsjtoIovHyTmcyxMhVVxTqapomZyLlAmTKC9AmjgamXXGZo+epNrXO3wGGiPRHbKL FnMy2RRgRb1gzFXXGjhICp8wqaTtdtyQH6nWTfkatJvJJoUCbOjSC7wR9/naEVognxrOFdLh7Ugx QpA/0QT4pRV0+u2dqsXD5y9EBDjVAJS3ZZLxmZblgmsU8x7mBeCKg48Py7WU2IiH1epbEbC8K9Ms y0cpcySVUcdQVrBY+rEsv+XpYgFKXT8B3v2yATxv8fKK2EfC358tsIMLYqfD401xA0j1EY4P/wWf IbhlOWyBv4OQsywBM8MAAAAAAElFTkSuQmCC
MIME-Version 1.0
Content-Type multipart/signed; boundary="nextPart149914994.Wml5K2mHLk"; micalg="pgp-sha512"; protocol="application/pgp-signature"
X-Debian-User soren
X-Mailing-List <debian-python@lists.debian.org> archive/latest/23748
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/6743094.KJgs85P2H9@soren-desktop
Approved robomod@news.nic.it
Lines 94
Sender robomod@news.nic.it
X-Original-Date Thu, 23 Apr 2026 11:09:57 -0700
X-Original-Message-ID <6743094.KJgs85P2H9@soren-desktop>
Xref csiph.com linux.debian.maint.python:17471

Show key headers only | View raw


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

Pyinstaller ships two executables in /usr/lib/python3/dist-packages/.  There 
is an experimental tag that suggests these should be moved to /usr/libexec/.

X: python3-pyinstaller: executable-in-usr-lib [usr/lib/python3/dist-packages/
PyInstaller/bootloader/Linux-64bit-intel/run]
N: 
N:   The package ships an executable file in /usr/lib.
N:   
N:   Please move the file to /usr/libexec.
N:   
N:   With policy revision 4.1.5, Debian adopted the Filesystem Hierarchy 
Specification (FHS) version 3.0.
N:   
N:   The FHS 3.0 describes /usr/libexec. Please use that location for 
executables.
N: 
N:   Please refer to File System Structure (Section 9.1.1) in the Debian 
Policy Manual, filesystem-hierarchy, https://refspecs.linuxfoundation.org/
FHS_3.0/fhs/ch04s07.html, and Bug#954149 for details.
N: 
N:   Visibility: pedantic
N:   Show-Always: no
N:   Check: files/permissions/usr-lib
N:   This tag is experimental.
N: 
N:   Screen: emacs/elpa/scripts
N:     Advocates: "David Bremner" <bremner@debian.org>
N:     Reason: The emacsen-common package places installation and removal 
scripts, which for ELPA packages are executable, in the folder /usr/lib/
emacsen-common/packages.
N:             
N:             About four hundred installation packages are affected. All of 
them declare emacsen-common as an installation prerequisite.
N:             
N:             Read more in Bug#974175 and Bug#954149.
N: 
N:   Screen: web/cgi/scripts
N:     Advocates: "Andrius Merkys" <merkys@debian.org>
N:     Reason: The folder /usr/lib/cgi-bin/ is designated for scripts in the 
Common Gateway Interface (CGI). They require the executable bit so the server 
can run them.
N:             
N:             Read more in https://en.wikipedia.org/wiki/
Common_Gateway_Interface, https://datatracker.ietf.org/doc/html/rfc3875.html, 
and Bug#1003941.
N: 
N:
X: python3-pyinstaller: executable-in-usr-lib [usr/lib/python3/dist-packages/
PyInstaller/bootloader/Linux-64bit-intel/run_d]

I do not know how easy it would be to relocate these files.  Before reaching 
out to the Pyinstaller upstream to see of what it would take to relocate these 
files, I wanted to ask the Debian Python Team how this is generally handled 
with Python packages.  Are executables typically relocated to /usr/libexec/?  
If so, does this require much modification of the upstream code to locate 
them?  Or is it generally considered wiser to just leave the executables in /
usr/lib/ and ignore these lintian tags?

-- 
Soren Stoutner
soren@debian.org

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar


Thread

Question regarding binaries in  /usr/lib/python3/dist-packages/ Soren Stoutner <soren@debian.org> - 2026-04-23 20:30 +0200
  Re: Question regarding binaries in  /usr/lib/python3/dist-packages/ Andrey Rakhmatullin <wrar@debian.org> - 2026-04-23 21:00 +0200
    Re: Question regarding binaries in  /usr/lib/python3/dist-packages/ Soren Stoutner <soren@debian.org> - 2026-04-23 21:10 +0200

csiph-web