[Debian-pan-maintainers] Packaging pytango 9.2.0

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Tue Aug 30 07:58:48 BST 2016


during the build I have this

reading sources... [100%] utilities

/<<PKGBUILDDIR>>/doc/client_api/green.rst:18: WARNING: autodoc: failed to import function u'DeviceProxy' from module u'tango.futures'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 519, in import_object
    __import__(self.modname)
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/tango/futures.py", line 35, in <module>
    check_requirements()
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/tango/futures.py", line 30, in check_requirements
    raise ImportError("No module named concurrent. You need to " \
ImportError: No module named concurrent. You need to install the futures backport module to have access to PyTango futures green mode
/<<PKGBUILDDIR>>/doc/client_api/green.rst:20: WARNING: autodoc: failed to import function u'DeviceProxy' from module u'tango.gevent'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 519, in import_object
    __import__(self.modname)
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/tango/gevent.py", line 43, in <module>
    check_requirements()
  File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/tango/gevent.py", line 30, in check_requirements
    raise ImportError("No module named gevent. You need to install " \
ImportError: No module named gevent. You need to install gevent module to have access to PyTango gevent green mode. Consider using the futures green mode instead
looking for now-outdated files... none found


so it seems that the documentaion need python-gevent in orde to build fluently :))


It seems that there is plenty of waning in the c++ code, can you report this to the upstream ?
unused variables, sign unsigned comparison, deprecated, etc...



in the rules files you have

#!/usr/bin/make -f

> export PYBUILD_NAME=tango
> export PYBUILD_INSTALL_ARGS_python2=--install-html=$(CURDIR)/debian/python-tango-doc/usr/share/doc/python-tango-doc/html

> %:
>	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
>
>override_dh_auto_install: $(PYTHON3:%=install-python%)

remove the  $(PYTHON3:%=install-python%)

>	dh_auto_install -O--buildsystem=pybuild
>	dh_numpy
>	dh_numpy3

>override_dh_installdocs:
>	dh_installdocs
>ifneq (,$(filter python-tango-doc, $(shell dh_listpackages)))
>	# add the - for backport where dh_sphinxdoc is not available
>	-dh_sphinxdoc -ppython-tango-doc
>endif

you can remove all this section, it was used only for wheezy

>override_dh_auto_clean:
>	dh_auto_clean
>	rm -rf build
>	rm -rf *.egg-info

ok



Cheers

Fred



More information about the Debian-pan-maintainers mailing list