Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Ghislain Vaillant Newsgroups: linux.debian.maint.python Subject: Re: building manpages via setup.py Date: Wed, 02 Aug 2017 11:30:01 +0200 Message-ID: References: X-Original-To: "debian-python@lists.debian.org" X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Aug 2 09:23:16 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-wr0-x22a.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=t4Rpwkx4XM85Xt78CjYRZ0zQFHCwxb3aHWSaqZtlo5c=; b=pjP6uC9V3u/z+hFI/QAi6OE6Hs/sD89e+NM4TmNabvtfjl8veJyDyCf5JLmRXS0UNS EfWiJY7ODxv6lhhVMK7zyPi54F6oEPgnPLItTJtf6VTBIqV4kmhpLYWb8bDJpCq/Sqey E8NmaCjaF8ctI7b9LUaGeC9dC5CXywcf29aBktSF3p4k+osuuJ8RN8yzdg4XyEk3PJ0A i5eTVIhdaFDEywblKmQjR8mrBrLQKGbZH1+CpLv5Jt4XGVHo97qYdirhfgveOiukM/0+ EPmuuk+3mqCvTuj+TvzTU5zmc2R0VCOEkfRK6CVJGwUOa6fARgRXmKPRdtJl4qGwUs4+ 338g== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=t4Rpwkx4XM85Xt78CjYRZ0zQFHCwxb3aHWSaqZtlo5c=; b=LE09bMXoBcr063/Bu6b8xRoTbPySocsYZWPoWBslJhtoRgbZYNPgb/3bGiYnnL04i2 id8OxuyvWqnxX/yMfbXzAXaIc/GLMW3ajIZW9zy6y/xR7aVqo3k/r+GHYIlaQywwh19l 0yo3T8LtZDSfqyk+z5//CfNQuzg8KRNIGMpV0pLDLEjtkVvxvyEqABuzisChdl8fMBjm 3CRv0TwNQANMIA1rI25tbDoIJMswz0kCSmbA7SlS5g7ohIQiDY3FrXHh95yF3BynA8yB zIXFjsWZnB9zadzVYvE2ti0MpwFfc+tMJBM3gJrNiFSFkuXPJIZ2/xTQ85ofoKlN6VJE EYvg== X-Gm-Message-State: AIVw110kxDE4dzgRYgfSvRkyQNaj7U8fB09xaT/U3s3pcXN9e8wVEorQ wMSVudkfNANX66r6toM= X-Received: by 10.223.136.78 with SMTP id e14mr16005564wre.84.1501665779865; Wed, 02 Aug 2017 02:22:59 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Mailing-List: archive/latest/15056 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/5bd26b01-fbcd-631d-13ef-820d1ae218ad@gmail.com Approved: robomod@news.nic.it Lines: 62 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 2 Aug 2017 10:22:58 +0100 X-Original-Message-ID: <5bd26b01-fbcd-631d-13ef-820d1ae218ad@gmail.com> X-Original-References: <20170801153401.6aqaw4syh3pvzchb@sar0.p1otr.com> <20170802072020.3nwvcsvoly4vycit@sar0.p1otr.com> <20170802074408.rpzxgjnd2k52upju@sar0.p1otr.com> <9811c4b7-22a8-b913-86b7-70d61b2ad1ef@gmail.com> <3ee0f234-2668-afb3-8c4b-569b7de1989b@gmail.com> Xref: csiph.com linux.debian.maint.python:9675 On 02/08/17 09:55, PICCA Frederic-Emmanuel wrote: >> PYTHONPATH=. sphinx-build -N -b html > >> One can also use the sphinx-generated Makefile if available: > >> PYTHONPATH=$(CURDIR) $(MAKE) -C html > >> Both are simple one-liners and do not rely on pybuild. > > Yes it works but this is fragile since the organisation of the module can change in the sources. First, that's very speculative. Second, that's upstream's problem. I have not seen many upstream projects playing with the layout of their modules from one version to the next. If that's the case, then there are worst things to be worried about (API breakage for instance) than the docs. > at least the .pybuild directory is under the responsability of pybuild and we should use pybuild instead of relying > on the maintainer snipset. (typo error, change during the time.) The upstream Makefile and conf.py are likely generated by Sphinx itself via sphinx-quickstart. Did your upstream tinker with them that much that they cannot be trusted? > It would be nice if the doc generation in python shold be standardize. Some upstream do use a build_sphinx command, but it is far from common and it does not solve the extension module problem. >> If it does not cost much to build the extension inplace, then the >> simplest option is to prefix one of these calls above with: > >> python3 setup.py build_ext --inplace > > when you have multiple verison of the interpreter you prefer to avoid --inplace. Why? All you need is *one* occurrence of the extension modules somewhere in the PYTHONPATH in order to generate the docs. Chances are that's how upstream generates them. I fail to picture how this is an issue in practice considering your build override will run the isolated pybuilds first and the sphinx call last. >> If the cost is prohibitive, which arguably applies to a very limited set >> of packages (yours included) then you would use pybuild for that, as >> Piotr kindly suggested. > > Yes it depends olsa of the arch. Some are really slow.... That's unfortunate, indeed. >> Considering the rarity of this use case though, I wonder whether it is >> worth adding a separate section to the style guide. > > Found a total of 643 reverse build-depend(s) for python-all-dev. > > not that small How is the ratio over all the Python packages? I suspect very small.