Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: PICCA Frederic-Emmanuel Newsgroups: linux.debian.maint.python Subject: RE:building manpages via setup.py Date: Wed, 02 Aug 2017 12:10:01 +0200 Message-ID: References: X-Original-To: Ghislain Vaillant , "debian-python@lists.debian.org" X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Aug 2 10:03:13 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-0.1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, THREADTOPIC=2] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Dkim-Filter: OpenDKIM Filter v2.10.3 brouette.synchrotron-soleil.fr C70787000D6 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1501667159; bh=ekenkXu6MdON+e/04ki59mS93bXF+TaGT6Yn2rm2XYs=; h=From:To:Subject:Date:References:In-Reply-To:From; b=dr4p8q5TYw2JON9nQ7PUQPgyhoQQGiEHcx99SCWtB853iEBz7CDUJG6QoaPT7qoRI YTEY5yv65LpHZovpoTtkD+cEaqCDP6ck+JZFWLPm5tHNdsqyhw7o/QoD6ULHl1Xa8L n/kgr+JxmLYpExWHuQqgK8EKJUwbOUTf+7sk6+JE= Dkim-Filter: OpenDKIM Filter v2.10.3 brouette.synchrotron-soleil.fr 061FF7000D2 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1501667159; bh=ekenkXu6MdON+e/04ki59mS93bXF+TaGT6Yn2rm2XYs=; h=From:To:Subject:Date:References:In-Reply-To:From; b=dr4p8q5TYw2JON9nQ7PUQPgyhoQQGiEHcx99SCWtB853iEBz7CDUJG6QoaPT7qoRI YTEY5yv65LpHZovpoTtkD+cEaqCDP6ck+JZFWLPm5tHNdsqyhw7o/QoD6ULHl1Xa8L n/kgr+JxmLYpExWHuQqgK8EKJUwbOUTf+7sk6+JE= Thread-Topic: building manpages via setup.py Thread-Index: AdMKnYeNbtHGA2ChRMa/5+FgMHXlSAALU42AACRWRyD//+WzAIAAIkd1///kXwCAAAEXAIAAJXaV///iEoCAACJ29f//4toAAAS5p7UAAwPEAAABSiC/ Accept-Language: fr-FR, en-US Content-Language: fr-FR X-Originating-IP: [195.221.0.171] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailing-List: archive/latest/15057 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/A2A20EC3B8560D408356CAC2FC148E53BB3F9D7B@SUN-DAG3.synchrotron-soleil.fr Approved: robomod@news.nic.it Lines: 52 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 2 Aug 2017 09:45:57 +0000 X-Original-Message-ID: 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> ,<5bd26b01-fbcd-631d-13ef-820d1ae218ad@gmail.com> <5bd26b01-fbcd-631d-13ef-820d1ae218ad@gmail.com> Xref: csiph.com linux.debian.maint.python:9676 > First, that's very speculative. Second, that's upstream's problem. > 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? No this is just that does not fit well with extension. > Some upstream do use a build_sphinx command, but it is far from common > and it does not solve the extension module problem. Yes this is what they are doing. extension are part of the python ec-system= but it seems thaht this is not well suported out of the box by sphinx. # If extensions (or modules to document with autodoc) are in another direct= ory, # add these directories to sys.path here. If the directory is relative to t= he # documentation root, use os.path.abspath to make it absolute, like shown h= ere. # # import os # import sys # sys.path.insert(0, os.path.abspath('.')) You need to customize the sys.path in order to find the extensions. This path can change depending on the setup.py build options so this is not= reliable. > 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. Because by experience I find issue in the build system and the python code = when building the doc for multiple interpreter (python2/python3 differences...) > > 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. Found a total of 1968 reverse build-depend(s) for python-all. not that small 32 % ;) Cheers Fred