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

Re: Help with python-biom-format needed



* Piotr Ożarowski <piotr@debian.org>, 2014-05-21, 11:14:
  svn://anonscm.debian.org/debian-med/trunk/packages/python-biom-format/trunk/

Unfortunately the new version has a problem when it comes to build the documentation. Either does not find the biom Python module or since I adapted the packaging to dh_python using --buildsystem=pybuild in debian/rules I get

   Makefile:50: recipe for target 'singlehtml' failed

I cannot reproduce it. It FTBFS due to "ImportError: No module named biom" while trying to build docs, though.

s/not// :-P The error is:

sphinx-build -b singlehtml -d _build/doctrees  -W . _build/singlehtml
Making output directory...
Running Sphinx v1.2.2

Exception occurred:
 File "conf.py", line 17, in <module>
   import biom
ImportError: No module named biom
The full traceback has been saved in /tmp/sphinx-err-bzenOM.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
Makefile:50: recipe for target 'singlehtml' failed


So, is there a sane way to make pybuild run an arbitrary command with default version of python, and with PYTHONPATH set to the build directory?

One insane way is to abuse the --test option:

pyrun = DEB_BUILD_OPTIONS= pybuild -s custom -p $(shell pyversions -dv) --test --test-args
[...]
	$(pyrun) 'make --directory=doc singlehtml'  # eww!

--
Jakub Wilk


Reply to: