Re: Avoiding download of intersphinx inventories during build
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nikolaus Rath, 2011-07-05 21:01:
> The python module I'm packaging uses intersphinx. Since the debian
> package rebuilds the documentation from the sources, the package needs
> to download the inventories:
>
> Running Sphinx v1.1pre
> loading pickled environment... not yet created
> loading intersphinx inventory from http://docs.python.org/objects.inv...
>
>
> Now, I understand that downloading files during build is a big no, but I
> don't quite know how to handle this.
I've had a similar issue and solved it by conditionally using the local
object.inv files if they are present.
The patch is here:
http://anonscm.debian.org/viewvc/python-modules/packages/sphinx-issuetracker/trunk/debian/patches/intersphinx_mapping.patch?view=co
This way you can add e.g. python-doc to B-D and the objects.inv file
gets picked up. If not (see 12.3) it just throws a warning and sphinx
moves on.
HTH,
- --
Michael Fladischer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4UXjIACgkQeJ3z1zFMUGahAQCggx3nEwQfSQx8Rrx4oCT6Ad2M
/boAoINy2srI5FscuhMkBF/3p0tL/Zvi
=62vh
-----END PGP SIGNATURE-----
Reply to: