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


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

RE:how to build sphinx doc when there is extension

From PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Newsgroups linux.debian.maint.python
Subject RE:how to build sphinx doc when there is extension
Date 2016-08-30 10:40 +0200
Message-ID <sbMKl-2qE-9@gated-at.bofh.it> (permalink)
References <sbMKl-2qE-11@gated-at.bofh.it> <sbMqZ-2gM-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> how about doing it outside pybuild? Do you really need to build it for
> each interpreter / version?


It is a sort of unit test during the build that auto-doc works for all versions of the interpreter.
th eunit test is

try to import all the modules provided by a packages.

Is there something whcih can be automatise at the autodep8 level for python ?


> If you need the build dir:

> override_dh_sphinxdoc:
> ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
>         PYTHONPATH=$(pybuild --system=custom -i python3 --build --build-args="echo {build_dir}") \
>        cd doc && http_proxy='127.0.0.1:9' sphinx-build -N -bhtml source build/html

the problem with sphinx-build is that it use python2

#!/usr/bin/python

this is why I extract the content of sphinx-build directly nthe rules file.

but this is ugly since I have no garantie that this snipset willnot chang ein the near futur.


cheers

Frederic

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


Thread

how to build sphinx doc when there is extension PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2016-08-30 09:40 +0200
  Re: how to build sphinx doc when there is extension Piotr Ożarowski <piotr@debian.org> - 2016-08-30 10:20 +0200
    RE:how to build sphinx doc when there is extension PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2016-08-30 10:40 +0200
      Re: how to build sphinx doc when there is extension Ben Finney <ben+debian@benfinney.id.au> - 2016-08-30 23:10 +0200
  Re: how to build sphinx doc when there is extension Dmitry Shachnev <mitya57@debian.org> - 2016-08-31 20:10 +0200
    RE:how to build sphinx doc when there is extension PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2016-08-31 21:00 +0200

csiph-web