Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: PICCA Frederic-Emmanuel Newsgroups: linux.debian.maint.python Subject: how to build sphinx doc when there is extension Date: Tue, 30 Aug 2016 09:40:02 +0200 Message-ID: X-Original-To: debian-python X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Aug 30 07:33:08 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-0.548 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, RP_MATCHES_RCVD=-0.548, 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 11D3C7000E2 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1472541295; bh=cpHBq75bM4VhdgQuvR5cmppX6y2vDquBRBVXEcACIjQ=; h=From:To:Subject:Date:From; b=ZRoFIjASXlHYsYjokIsh7qvrzg15JQEMCPJvFjE9KIDKziGU4N5l4mNI4Xnkz06dn C5G71IHUjEL3MOawrAMontjUhkLuYHX9GcH6uKV147zWyAAyo4+zwLR0cNS694GuR6 5i4SHIwicq3UvuMJ+XvCR2m2yhyU/dH7k47ow0XU= Dkim-Filter: OpenDKIM Filter v2.10.3 brouette.synchrotron-soleil.fr 6151470007F Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1472541294; bh=cpHBq75bM4VhdgQuvR5cmppX6y2vDquBRBVXEcACIjQ=; h=From:To:Subject:Date:From; b=Zq2gRvCaIsLQB2/wTBSHgo7zluOLe+tXKRx/UA2NkI6dVYqRmeeSmRV47fyVI1Dys 9ma2Ik4esNasgE3DE9VlY/S5aZarKDoC80+z0scm5XWApePQeVvlcu9HDCHZrGgOe+ tx/1dAmoS62A8GfJN3NvKwYZb1MXCQjeqNLGyYXM= Thread-Topic: how to build sphinx doc when there is extension Thread-Index: AdICjjSie4mBbJQMSH6CcC2KCwA2rA== 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/14165 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/A2A20EC3B8560D408356CAC2FC148E53BB2C8491@SUN-DAG3.synchrotron-soleil.fr Approved: robomod@news.nic.it Lines: 25 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 30 Aug 2016 07:14:53 +0000 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:8825 Hello I am using this snipset when I want to build the sphinx documentation for a= ll python available. (this is a sort of unit test). Usually the sphinx doc use auto-doc and then it allows to check that all mo= dules can be imported.=20 override_dh_sphinxdoc: ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) PYBUILD_SYSTEM=3Dcustom \ PYBUILD_BUILD_ARGS=3D"cd doc && PYTHONPATH=3D{build_dir} http_proxy=3D'127= .0.0.1:9' {interpreter} -c \"import sys;from sphinx import main;sys.exit(ma= in(sys.argv))\" -N -bhtml source build/html" dh_auto_build # HTML generato= r dh_installdocs "doc/build/html" -p python-pyfai-doc dh_sphinxdoc -O--buildsystem=3Dpybuild endif I would like your opinion about this and if there is better way to do this = ? thanks Frederic=