[Python-modules-team] Bug#697721: python-django-registration: FTBFS with python3-sphinx: AttributeError: 'str' object has no attribute '__dict__'

Raphael Hertzog hertzog at debian.org
Thu Jan 10 08:43:43 UTC 2013


On Tue, 08 Jan 2013, Jakub Wilk wrote:
> 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.

So if I understand correctly the python-sphinx upstream bug entry, I don't
have to ask upstream to remove the doctrees, sphinx will detect alone that
it's not compatible.

Now a question about your patch:

>  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

Why do you have to remove docs/_build/doctrees/ again in
override_dh_auto_build ? any dpkg-buildpackage call starts with
"debian/rules clean" and thus docs/_build will already have been
removed...

What am I missing ?

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/



More information about the Python-modules-team mailing list