[Python-modules-commits] r19753 - in packages/celery/trunk/debian/patches (2 files)
fladi-guest at users.alioth.debian.org
fladi-guest at users.alioth.debian.org
Tue Dec 27 12:08:01 UTC 2011
Date: Tuesday, December 27, 2011 @ 12:07:58
Author: fladi-guest
Revision: 19753
Add patch use local intersphinx mappings.
Added:
packages/celery/trunk/debian/patches/intersphinx.patch
Modified:
packages/celery/trunk/debian/patches/series
Added: packages/celery/trunk/debian/patches/intersphinx.patch
===================================================================
--- packages/celery/trunk/debian/patches/intersphinx.patch (rev 0)
+++ packages/celery/trunk/debian/patches/intersphinx.patch 2011-12-27 12:07:58 UTC (rev 19753)
@@ -0,0 +1,37 @@
+Description: use local objects.inv where possible
+ Upstream uses intersphinx mappings that fetch the objects.inv for python,
+ kombu and django-celery by HTTP from a remote host. Using the local
+ objects.inv from python and kombu enables the package to build without
+ network connection.
+Author: Fladischer Michael <FladischerMichael at fladi.at>
+Forwarded: not-needed
+Last-Update: 2011-12-27
+
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -66,11 +66,20 @@
+ # If true, '()' will be appended to :func: etc. cross-reference text.
+ add_function_parentheses = True
+
+-intersphinx_mapping = {
+- "http://docs.python.org/dev": None,
+- "http://kombu.readthedocs.org/en/latest/": None,
+- "http://django-celery.readthedocs.org/en/latest": None,
+-}
++def check_object_path(key, url, path):
++ if os.path.isfile(path):
++ return {key: (url, path)}
++ return {}
++
++intersphinx_mapping = {}
++intersphinx_mapping.update(check_object_path('python',
++ 'http://docs.python.org/',
++ '/usr/share/doc/python'
++ + '.'.join([str(x) for x in sys.version_info[0:2]])
++ + '/html/objects.inv'))
++intersphinx_mapping.update(check_object_path('kombu',
++ 'http://kombu.readthedocs.org/en/latest/',
++ '/usr/share/doc/python-kombu-doc/html/objects.inv'))
+
+ # The name of the Pygments (syntax highlighting) style to use.
+ pygments_style = 'trac'
Modified: packages/celery/trunk/debian/patches/series
===================================================================
--- packages/celery/trunk/debian/patches/series 2011-12-27 00:47:41 UTC (rev 19752)
+++ packages/celery/trunk/debian/patches/series 2011-12-27 12:07:58 UTC (rev 19753)
@@ -1 +1,2 @@
fix_dependencies.patch
+intersphinx.patch
More information about the Python-modules-commits
mailing list