Source: python-django-registration
Version: 0.8-1
Severity: serious
Justification: fails to build from source
If python3-sphinx is installed, but python-sphinx is not,
python-django-registration FTBFS:
| cd docs && /usr/bin/make html
| make[2]: Entering directory
`/build/python-django-registration-105ATe/python-django-registration-0.8/docs'
| sphinx-build -b html -d _build/doctrees . _build/html
| Running Sphinx v1.1.3
| loading pickled environment... done
| building [html]: targets for 11 source files that are out of date
| updating environment: 0 added, 0 changed, 0 removed
| looking for now-outdated files... none found
| preparing documents... done
| writing output... [ 9%] backend-api
| Making output directory...
|
| Exception occurred:
| File "/usr/lib/python3/dist-packages/sphinx/cmdline.py", line 189, in main
| app.build(force_all, filenames)
| File "/usr/lib/python3/dist-packages/sphinx/application.py", line 204, in
build
| self.builder.build_update()
| File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line
196, in build_update
| 'out of date' % len(to_build))
| File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line
252, in build
| self.write(docnames, list(updated_docnames), method)
| File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line
291, in write
| doctree = self.env.get_and_resolve_doctree(docname, self)
| File "/usr/lib/python3/dist-packages/sphinx/environment.py", line 1230, in
get_and_resolve_doctree
| doctree = self.get_doctree(docname)
| File "/usr/lib/python3/dist-packages/sphinx/environment.py", line 1215, in
get_doctree
| doctree = pickle.load(f)
| AttributeError: 'str' object has no attribute '__dict__'
This happens because the source package includes doctree pickles (in
which parsed rST sources are cached) were generated by Python 2.X, and
cannot be loaded by Python 3.X. Please ask upstream to exclude the
doctrees/ subdirectory from their tarballs. Meanwhile please use the
attached patch as a work-around.
--
Jakub Wilk
--- python-django-registration-0.8/debian/rules 2012-07-10 15:50:02.000000000 +0200
+++ python-django-registration-0.8/debian/rules 2013-01-08 22:04:03.000000000 +0100
@@ -6,11 +6,12 @@
dh $@ --with python2,sphinxdoc
override_dh_auto_clean:
- rm -rf docs/_build/html
+ rm -rf docs/_build/
dh_auto_clean
override_dh_auto_build:
cd registration && /usr/bin/django-admin compilemessages
+ rm -rf docs/_build/doctrees/
cd docs && $(MAKE) html
dh_auto_build
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team