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


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

Re: building manpages via setup.py

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Ghislain Vaillant <ghisvail@gmail.com>
Newsgroups linux.debian.maint.python
Subject Re: building manpages via setup.py
Date Wed, 02 Aug 2017 11:30:01 +0200
Message-ID <u9Y8x-83f-13@gated-at.bofh.it> (permalink)
References <u9GEH-5cQ-19@gated-at.bofh.it> <u9Hr4-5Jr-23@gated-at.bofh.it> <u9W6J-6Ni-3@gated-at.bofh.it> <u9Wgq-6Qo-9@gated-at.bofh.it> <u9WzL-6Xn-9@gated-at.bofh.it> <u9WzL-6Xn-7@gated-at.bofh.it> <u9WzM-6Xn-25@gated-at.bofh.it> <u9X2O-7mD-23@gated-at.bofh.it> <u9X2O-7mD-21@gated-at.bofh.it> <u9Xmb-7tc-27@gated-at.bofh.it> <u9Xmb-7tc-37@gated-at.bofh.it> <u9XYS-7WK-7@gated-at.bofh.it>
X-Original-To "debian-python@lists.debian.org" <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 <ghisvail@gmail.com>
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 <debian-python@lists.debian.org> archive/latest/15056
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
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 <A2A20EC3B8560D408356CAC2FC148E53BB3F8A26@SUN-DAG3.synchrotron-soleil.fr> <20170801153401.6aqaw4syh3pvzchb@sar0.p1otr.com> <A2A20EC3B8560D408356CAC2FC148E53BB3F9C43@SUN-DAG3.synchrotron-soleil.fr> <20170802072020.3nwvcsvoly4vycit@sar0.p1otr.com> <A2A20EC3B8560D408356CAC2FC148E53BB3F9C98@SUN-DAG3.synchrotron-soleil.fr> <20170802074408.rpzxgjnd2k52upju@sar0.p1otr.com> <9811c4b7-22a8-b913-86b7-70d61b2ad1ef@gmail.com> <A2A20EC3B8560D408356CAC2FC148E53BB3F9CDD@SUN-DAG3.synchrotron-soleil.fr> <3ee0f234-2668-afb3-8c4b-569b7de1989b@gmail.com> <A2A20EC3B8560D408356CAC2FC148E53BB3F9CF8@SUN-DAG3.synchrotron-soleil.fr> <d296913d-ed6f-4836-9fc1-e5db693b690d@gmail.com> <A2A20EC3B8560D408356CAC2FC148E53BB3F9D23@SUN-DAG3.synchrotron-soleil.fr>
Xref csiph.com linux.debian.maint.python:9675

Show key headers only | View raw



On 02/08/17 09:55, PICCA Frederic-Emmanuel wrote:
>> PYTHONPATH=. sphinx-build -N -b html <docs_dir> <build_dir>
> 
>> One can also use the sphinx-generated Makefile if available:
> 
>> PYTHONPATH=$(CURDIR) $(MAKE) -C <docs_dir> 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.

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-01 16:50 +0200
  Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-01 17:00 +0200
    RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-01 17:50 +0200
  Re: building manpages via setup.py Piotr Ożarowski <piotr@debian.org> - 2017-08-01 17:40 +0200
    RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 09:20 +0200
      Re: building manpages via setup.py Piotr Ożarowski <piotr@debian.org> - 2017-08-02 09:30 +0200
        Re: building manpages via setup.py Piotr Ożarowski <piotr@debian.org> - 2017-08-02 09:50 +0200
          Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 09:50 +0200
            Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 10:20 +0200
              RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 10:40 +0200
                Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 10:40 +0200
                RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 11:20 +0200
                Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 11:30 +0200
                RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 12:10 +0200
                Re: building manpages via setup.py Ghislain Vaillant <ghisvail@gmail.com> - 2017-08-02 12:50 +0200
                RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 14:30 +0200
            RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 10:30 +0200
        RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-02 09:50 +0200
        RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-03 12:20 +0200
          RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-03 15:50 +0200
            RE:building manpages via setup.py PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2017-08-03 16:20 +0200

csiph-web