[Python-modules-commits] r15115 - in packages/sphinx/branches/1.0/debian (2 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Sat Dec 18 14:10:58 UTC 2010
Date: Saturday, December 18, 2010 @ 14:10:53
Author: jwilk
Revision: 15115
Don't try to use system-wide static files.
Added:
packages/sphinx/branches/1.0/debian/sphinx-build-local.py
Modified:
packages/sphinx/branches/1.0/debian/rules
Modified: packages/sphinx/branches/1.0/debian/rules
===================================================================
--- packages/sphinx/branches/1.0/debian/rules 2010-12-18 13:24:04 UTC (rev 15114)
+++ packages/sphinx/branches/1.0/debian/rules 2010-12-18 14:10:53 UTC (rev 15115)
@@ -12,7 +12,7 @@
build-stamp:
dh_testdir
mkdir -p _build/html
- python sphinx-build.py doc _build/html
+ PYTHONPATH=. python debian/sphinx-build-local.py doc _build/html
touch build-stamp
clean:
Added: packages/sphinx/branches/1.0/debian/sphinx-build-local.py
===================================================================
--- packages/sphinx/branches/1.0/debian/sphinx-build-local.py (rev 0)
+++ packages/sphinx/branches/1.0/debian/sphinx-build-local.py 2010-12-18 14:10:53 UTC (rev 15115)
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+# Like /usr/bin/sphinx-build, but don't try to use system-wide static files.
+
+import os
+import sys
+import sphinx
+
+if __name__ == '__main__':
+ sphinx.package_dir = os.path.abspath(os.path.dirname(sphinx.__file__))
+ sys.exit(sphinx.main(sys.argv))
+
+# vim:ts=4 sw=4 et
Property changes on: packages/sphinx/branches/1.0/debian/sphinx-build-local.py
___________________________________________________________________
Added: svn:mime-type
+ text/x-python
More information about the Python-modules-commits
mailing list