Re: pybuild sphinxdoc and extensions

2016-02-27 Thread Christoph Groth
Piotr Ożarowski wrote: > binary-indep (or build-indep or override_dh_auto_build-indep) is the > right target: -indep targets will be ignored when only architecture specific > files are build OK, I see. Unfortunately, I didn’t succeed to use any other target than dh_installdocs for building the d

Re: pybuild sphinxdoc and extensions

2016-02-25 Thread Piotr Ożarowski
[Christoph Groth, 2016-02-25] > • In order to create the doc package only when building for > binary-indep, Piotr’s suggestion of using the clause ifeq (,$(filter > nodoc,$(DEB_BUILD_OPTIONS))) does not work: the doc package gets built > always. nodoc is just a flag that developer can use to

Re: pybuild sphinxdoc and extensions

2016-02-25 Thread Christoph Groth
Piotr Ożarowski wrote: > last one, I promise: > > override_dh_auto_build: > dh_auto_build > pybuild --build -i python3 -s custom --build-args 'make -C {dir}/doc > html' Piotr, thanks for all the funny versions… Unfortunately, most of Piotr’s suggestions do not seem to work (I trie

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Lennart Sorensen
On Fri, Oct 23, 2015 at 04:41:56PM +0100, Dimitri John Ledkov wrote: > i knew it! there are three identical twins of Piotr. No wonder they > get so much done! If it is three, wouldn't that be identical triplets? -- Len Sorensen

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Dimitri John Ledkov
i knew it! there are three identical twins of Piotr. No wonder they get so much done! On 23 October 2015 at 15:22, Piotr Ożarowski wrote: > [Piotr Ożarowski, 2015-10-23] >> [Piotr Ożarowski, 2015-10-23] >> > override_dh_auto_build: >> > dh_auto_build >> > PYTHONPATH=$(CURDIR)/.pybuild/b

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Piotr Ożarowski
[Piotr Ożarowski, 2015-10-23] > override_dh_auto_build: > dh_auto_build > PYTHONPATH=`pybuild --build -i python3 -s custom --build-args 'echo > {build_dir}'`\ > $(MAKE) -C doc html last one, I promise: override_dh_auto_build: dh_auto_build pybuild --build -i

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Piotr Ożarowski
[Piotr Ożarowski, 2015-10-23] > [Piotr Ożarowski, 2015-10-23] > > override_dh_auto_build: > > dh_auto_build > > PYTHONPATH=$(CURDIR)/.pybuild/build_cpython3/ $(MAKE) -C doc html > > > > no matter which Python 3.X version is the default one > > (it still hardcodes ".pybuild" which I don't

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Piotr Ożarowski
[Piotr Ożarowski, 2015-10-23] > override_dh_auto_build: > dh_auto_build > PYTHONPATH=$(CURDIR)/.pybuild/build_cpython3/ $(MAKE) -C doc html > > no matter which Python 3.X version is the default one > (it still hardcodes ".pybuild" which I don't like, though) which leads back to `pyb

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Piotr Ożarowski
[Piotr Ożarowski, 2015-10-23] > override_dh_auto_install: > dh_auto_install > PYTHONPATH=$(CURDIR)/debian/python3-kwant/usr/lib/python3/dist-packages > \ > $(MAKE) -C doc html you might even need to do it later: dh_python3 is not called yet, so some files might not be moved to

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Piotr Ożarowski
[please don't CC me on a mailing list if you don't want to end up in SPAM] [Christoph Groth, 2015-10-22] > With “install target”, do you mean dh_installdocs? In our debian/rules, we I meat override_dh_auto_install or {install,binary}-{arch,indep} > have now > > # Make documentation only if nee

Re: pybuild sphinxdoc and extensions

2015-10-23 Thread Christoph Groth
I found this thread while trying to update the Debian packaging for a Python library that I maintain. The library has Sphinx documentation that is quite complex to build: First, the library needs to be built (it contains C extensions), then figures are generated by scripts, and finally Sphinx

Re: pybuild sphinxdoc and extensions

2015-10-22 Thread Christoph Groth
Cześć Piotr, I found this thread while trying to update the Debian packaging for a Python library that I maintain. The library has Sphinx documentation that is quite complex to build: First, the library needs to be built (it contains C extensions), then figures are generated by scripts, and

Re: pybuild sphinxdoc and extensions

2014-04-09 Thread Thomas Goirand
On 04/07/2014 03:39 PM, picca wrote: >> As for http_proxy='localhost', it's much better to write >> http_proxy='127.0.0.1:9', as there really could be a web proxy running >> on localhost, and you don't really want to use it, do you? > > I just used the snipset of the wiki page explaining the libra

Re: pybuild sphinxdoc and extensions

2014-04-07 Thread picca
On Sun, Apr 06, 2014 at 11:47:43PM +0800, Thomas Goirand wrote: > > override_dh_sphinxdoc: > ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) > sphinx-build -b html doc/source \ > $(CURDIR)/debian/$$PKG/usr/share/doc/$$PKG/html > dh_sphinxdoc -O--buildsystem=python_

Re: pybuild sphinxdoc and extensions

2014-04-06 Thread Piotr Ożarowski
[PICCA Frederic-Emmanuel, 2014-04-06] > so I would like to know how to change this snipset to use the > {build_dir} for the PYTHONPATH. you cannot really use pybuild for this, it will invoke your command after or before each interpreter/version call. If you hardcode pybuild's internal paths on the

Re: pybuild sphinxdoc and extensions

2014-04-06 Thread Thomas Goirand
On 04/06/2014 03:32 PM, PICCA Frederic-Emmanuel wrote: > Hello > > I try to find a way to teach my rules files how to generate the documentation > using pybuild > > I found the classique > > override_dh_auto_build-indep: > dh_auto_build > PYTHONPATH=. http_proxy='localhost' sphi

pybuild sphinxdoc and extensions

2014-04-06 Thread PICCA Frederic-Emmanuel
Hello I try to find a way to teach my rules files how to generate the documentation using pybuild I found the classique override_dh_auto_build-indep: dh_auto_build PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml doc/source build/html # HTML generator but is does n