Article View: linux.debian.maint.python
Article #47Re: Setuptools incorrectly overrides ‘packages.find.exclude’, causes ‘dh_python3’ to complain “[…] includes a common build direc...
From: Colin Watson
Date: Sun, 25 Oct 2026 21:30
Date: Sun, 25 Oct 2026 21:30
26 lines
3186 bytes
3186 bytes
On Sat, Oct 24, 2026 at 02:40:20PM +1100, Ben Finney wrote: >Recently, ‘dh_python3’ detects a “common build directory name” in the >built package, and then exits with error. Example: > >===== > dh_python3 -O--buildsystem=pybuild >E: dh_python3 fs:312: [yourpackage] includes a common build directory name 'test' as a module. Likely due to a mis-configured build system installing things it shouldn't. >===== > >This is a good check. But why does that directory get installed? [...] >That lengthy issue comment also offers some options to work around the >bug. Which of them, or what other workaround, can we expect to work in >Debian packages? In my experience, using "include" rather than "exclude" is almost always the correct fix. "exclude" goes wrong as soon as anything else is present in the build tree that looks vaguely like a Python package; I commonly see it accidentally including such directories as "build", "debian", and "docs". I've generally had good luck upstreaming patches to use "include" instead. -- Colin Watson (he/him) [cjwatson@debian.org]
Technical Details
Message-ID:
<NSdWV-7RiO-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<NRAVz-7wuE-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Colin Watson <cjwatson@debian.org> Newsgroups: linux.debian.maint.python Subject: Re: Setuptools incorrectly overrides ‘packages.find.exclude’, causes ‘dh_python3’ to complain “[…] includes a common build directory name” Date: Sun, 25 Oct 2026 22:30:01 +0100 Message-ID: <NSdWV-7RiO-9@gated-at.bofh.it> References: <NRAVz-7wuE-1@gated-at.bofh.it> X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Oct 25 21:24:03 2026 Old-Return-Path: <cjwatson@debian.org> X-Amavis-Spam-Status: No, score=-4.739 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no Mail-Followup-To: debian-python@lists.debian.org, Ben Finney <bignose@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Debian-User: cjwatson X-Mailing-List: <debian-python@lists.debian.org> archive/latest/24155 List-ID: <debian-python.lists.debian.org> List-URL: <https://lists.debian.org/debian-python/> List-Archive: https://lists.debian.org/msgid-search/at5zWJld4e4imrbG@riva.ucam.org Approved: robomod@news.nic.it Lines: 26 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Ben Finney <bignose@debian.org> X-Original-Date: Sun, 25 Oct 2026 21:23:36 +0000 X-Original-Message-ID: <at5zWJld4e4imrbG@riva.ucam.org> X-Original-References: <atwolcobEap0cH0K@benfinney.id.au>