Source: python-oslo.policy
Version: 1.33.1-3
Severity: important

Dear maintainer,

I am going to switch Sphinx scripts to using Python 3 by default, when both
python-sphinx and python3-sphinx are installed (see #898009).

During a test build of reverse dependencies, your package failed to build:

     debian/rules override_dh_sphinxdoc
  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  pyversions: missing X(S)-Python-Version in control file, fall back to 
debian/pyversions
  pyversions: missing debian/pyversions file, fall back to supported versions
  py3versions: no X-Python3-Version in control file, using supported versions
  sphinx-build -b html doc/source 
debian/python-oslo.policy-doc/usr/share/doc/python-oslo.policy-doc/html
  Running Sphinx v1.7.5

  Extension error:
  Could not import extension openstackdocstheme (exception: No module named 
'openstackdocstheme')
  debian/rules:21: recipe for target 'override_dh_sphinxdoc' failed
  make[1]: *** [override_dh_sphinxdoc] Error 2

The reason is that only a Python 2 version of openstackdocstheme exists in
Build-Depends-Indep.

Potential solutions to this would be adding Python 3 build-dependencies, or
using “python2 -m sphinx” explicitly instead of “sphinx-build”.

You can test this locally by running this command before package build:

  sudo ln -sf /usr/share/sphinx/scripts/python3/sphinx-build 
/usr/bin/sphinx-build

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to