[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building manpages via setup.py



[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_auto_build:
> |       dh_auto_build -- --after-build '{interpreter} setup.py build_man'
> 
> 
> It is possible to replace this by 
> 
> export PYBUILD_AFTER_BUILD='{interpreter} setup.py build_man'

export PYBUILD_AFTER_BUILD={interpreter} setup.py build_man

(i.e. without quotes if you want to use Make's export)

> > there's no need to prepend --after-build argument with
> > "env PYTHONPATH={build_dir}; " - pybuild sets that to build dir automatically
> 
> Do you mean that I should remove the PYTHONPATH in this ?

you can drop it, PYTHONPATH and http_proxy should be set by pybuild

> override_dh_sphinxdoc
> ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
> 	PYBUILD_SYSTEM=custom \
> 	PYBUILD_BUILD_ARGS="cd doc && PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' {interpreter} -m sphinx -N -bhtml source build/html" dh_auto_build  # HTML generator
> 	dh_installdocs "doc/build/html" -p python-pyfai-doc
> 	dh_sphinxdoc -O--buildsystem=pybuild
> endif
-- 
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


Reply to: