Article View: linux.debian.maint.python
Article #62Re: Interrogate PyBuild for build directory of *only* the current Python interpreter version
From: Ben Finney
Date: Fri, 06 Nov 2026 04:10
Date: Fri, 06 Nov 2026 04:10
39 lines
3769 bytes
3769 bytes
Stuart Prescott <stuart@debian.org> writes: > To answer your last question first, I think your mental model of what > is going on here is likely back to front. (Using codesearch.d.n to > spot that this is towncrier so that I can better understand your > context..) Thank you. In case anyone wants to see my fumbling, I'm attempting to resolve Debian bug#1152592 <URL: https://bugs.debian.org/1152592>. > However, we don't normally want to rebuild the documentation for each > supported version of the interpreter - we'd only ship one version of > the docs. We normally only build the documentation against the default > interpreter (i.e. py3versions -d). That's the key, thank you. I thought DebHelper magic was performing the loop through the installed Python interpreters. That PyBuild magic does that loop is something I had not gleaned from its documentation. Probably by the time I need that again, I will have forgotten, and then fail again to understand PyBuild's operation from its documentation. But thank you for this time. > But even easier, all of the pipeline can be replaced with > > pybuild --print build_dir --interpreter python3 > > The execution of sphinx is most often run as a > `execute_after_dh_auto_build` step. After implementing both of these suggestions, the package builds; thank you for helping me resolve the bug. I've assigned you as the author in Git for those commits. -- \ βThe industrial system is profoundly dependent on commercial | `\ television and could not exist in its present form without it.β | _o__) βJohn Kenneth Galbraith, _The New Industrial State_, 1967 | Ben Finney
Technical Details
Message-ID:
<NWjr4-a7fU-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<NWg09-a5eH-3@gated-at.bofh.it> <NWibD-a6mp-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!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomod From: Ben Finney <bignose@debian.org> Newsgroups: linux.debian.maint.python Subject: Re: Interrogate PyBuild for build directory of *only* the current Python interpreter version Date: Fri, 06 Nov 2026 05:10:02 +0100 Message-ID: <NWjr4-a7fU-3@gated-at.bofh.it> References: <NWg09-a5eH-3@gated-at.bofh.it> <NWibD-a6mp-1@gated-at.bofh.it> X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Nov 6 04:02:37 2026 Old-Return-Path: <debian-python@m.gmane-mx.org> X-Amavis-Spam-Status: No, score=-1.75 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Injected-Via-Gmane: http://gmane.org/ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:7B0EybQzeWscbMuE3+iaXstHAok= X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney <bignose+hates-spam@benfinney.id.au> X-Mailing-List: <debian-python@lists.debian.org> archive/latest/24182 List-ID: <debian-python.lists.debian.org> List-URL: <https://lists.debian.org/debian-python/> List-Archive: https://lists.debian.org/msgid-search/87mrrmppz5.fsf@benfinney.id.au Approved: robomod@news.nic.it Lines: 39 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 06 Nov 2026 15:02:06 +1100 X-Original-Message-ID: <87mrrmppz5.fsf@benfinney.id.au> X-Original-References: <87se1eq0hm.fsf@benfinney.id.au> <75e9d39b-a45b-46f0-a33b-c3ac9c9f910f@debian.org>