From b2adc5cbc503fa6fa4f4499bbbee1e3b20afe1c6 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Jul 31 2012 05:23:55 +0000 Subject: And add the patch too# with '#' will be ignored, and an empty message aborts the commit. --- diff --git a/docutils-0.9.1-pyxml.patch b/docutils-0.9.1-pyxml.patch new file mode 100644 index 0000000..97092c3 --- /dev/null +++ b/docutils-0.9.1-pyxml.patch @@ -0,0 +1,18 @@ +diff -up docutils-0.10/docutils/__init__.py.bak docutils-0.10/docutils/__init__.py +--- docutils-0.10/docutils/__init__.py.bak 2012-07-30 21:10:28.157575978 -0700 ++++ docutils-0.10/docutils/__init__.py 2012-07-30 21:15:54.367394309 -0700 +@@ -63,6 +63,14 @@ __version_details__ = 'repository' + """Extra version details (e.g. 'snapshot 2005-05-29, r3410', 'repository', + 'release'), modified automatically & manually.""" + ++# Work around broken PyXML and dubious python stdlib behaviour (The stdlib ++# replaces its own xml module with PyXML if PyXML is installed.) ++# This reverses the order that the xml module and submodules are searched -- ++# it finds the stdlib modules first if they exist and then the PyXML modules ++# if they didn't exist in the stdlib. ++import xml ++xml.__path__.reverse() # If both are available, prefer stdlib over PyXML ++ + import sys + + class ApplicationError(StandardError):