Re: building manpages via setup.py

2017-08-02 Thread Ghislain Vaillant
On 02/08/17 10:45, PICCA Frederic-Emmanuel wrote: First, that's very speculative. Second, that's upstream's problem. # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root,

Re: building manpages via setup.py

2017-08-02 Thread Ghislain Vaillant
On 02/08/17 09:55, PICCA Frederic-Emmanuel wrote: PYTHONPATH=. sphinx-build -N -b html One can also use the sphinx-generated Makefile if available: PYTHONPATH=$(CURDIR) $(MAKE) -C html Both are simple one-liners and do not rely on pybuild. Yes it works but this is fragile since th

Re: building manpages via setup.py

2017-08-02 Thread Ghislain Vaillant
On 02/08/17 09:19, PICCA Frederic-Emmanuel wrote: At the end of the day, it is just a matter of providing an appropriate PYTHONPATH, regardless of whether pybuild is used or not. Yes but to avoid the multiplications of way to provide this PYTHONPATH. For the vast majority of packages, the cur

Re: building manpages via setup.py

2017-08-02 Thread Ghislain Vaillant
On 02/08/17 09:03, PICCA Frederic-Emmanuel wrote: Perhaps the LibraryStyleGuide should be updated to reflect on this change? I believe we are still advising explicit http_proxy / https_proxy exports prior to running sphinx-build. And running sphinx-build does not work expecially if there is ext

Re: building manpages via setup.py

2017-08-02 Thread Ghislain Vaillant
On 02/08/17 08:44, Piotr Ożarowski wrote: [PICCA Frederic-Emmanuel, 2017-08-02] you can drop it, PYTHONPATH and http_proxy should be set by pybuild Is it true for jessie I need to support jessie and stretch And even debian7... I didn't test it even for unstable, but IIRC pybuild exports

Re: building manpages via setup.py

2017-08-02 Thread Piotr Ożarowski
[PICCA Frederic-Emmanuel, 2017-08-02] > > you can drop it, PYTHONPATH and http_proxy should be set by pybuild > > Is it true for jessie > > I need to support jessie and stretch > > And even debian7... I didn't test it even for unstable, but IIRC pybuild exports those in all steps since a long

Re: building manpages via setup.py

2017-08-02 Thread Piotr Ożarowski
[PICCA Frederic-Emmanuel, 2017-08-02] > > if you want to test all requested Python interpreters: > > I prefer this solution in order to check that the built extensions are > working for all the python interpreters. > The doc use autodoc so it is nice to have this functionnality > > | override_dh

Re: building manpages via setup.py

2017-08-01 Thread Piotr Ożarowski
[PICCA Frederic-Emmanuel, 2017-08-01] > This pacakge contain one module with extensions (the important point) > > The new upstream version 0.14.0 provide a build_man target via the setup.py > > So in ordert to generate the doc I need to do > > python setup.py build_man > [...] > So what should

Re: building manpages via setup.py

2017-08-01 Thread Ghislain Vaillant
On 01/08/17 15:15, PICCA Frederic-Emmanuel wrote: Hello, I am working on the pyfai package. This pacakge contain one module with extensions (the important point) The new upstream version 0.14.0 provide a build_man target via the setup.py So in ordert to generate the doc I need to do python se

building manpages via setup.py

2017-08-01 Thread PICCA Frederic-Emmanuel
Hello, I am working on the pyfai package. This pacakge contain one module with extensions (the important point) The new upstream version 0.14.0 provide a build_man target via the setup.py So in ordert to generate the doc I need to do python setup.py build_man Now if I look at this target, I ca