[python-fabio] 06/08: 0001-fix-the-documentation-build-process.patch
Frédéric-Emmanuel Picca
picca at moszumanska.debian.org
Tue Jan 5 11:34:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
picca pushed a commit to branch toto
in repository python-fabio.
commit d66fdfeb6a8d401d413c372d11538843f8cc5d03
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date: Mon Jan 4 14:12:50 2016 +0100
0001-fix-the-documentation-build-process.patch
---
.../0001-fix-the-documentation-build-process.patch | 35 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 36 insertions(+)
diff --git a/debian/patches/0001-fix-the-documentation-build-process.patch b/debian/patches/0001-fix-the-documentation-build-process.patch
new file mode 100644
index 0000000..0558d7c
--- /dev/null
+++ b/debian/patches/0001-fix-the-documentation-build-process.patch
@@ -0,0 +1,35 @@
+From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?=
+ <picca at synchrotron-soleil.fr>
+Date: Mon, 4 Jan 2016 14:12:29 +0100
+Subject: fix the documentation build process
+
+---
+ doc/source/conf.py | 15 +--------------
+ 1 file changed, 1 insertion(+), 14 deletions(-)
+
+diff --git a/doc/source/conf.py b/doc/source/conf.py
+index ce0c421..696b421 100644
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -21,20 +21,7 @@ import subprocess
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
+ # sys.path.insert(0, os.path.abspath('.'))
+
+-root_dir = os.path.abspath("../..")
+-build_dir = [os.path.abspath(i) for i in glob.glob('../../build/lib*')]
+-# if (not build_dir) or ("__init__.py" not in os.listdir(os.path.join(build_dir[0], "fabio"))):
+-curr_dir = os.path.abspath(os.getcwd())
+-os.chdir(root_dir)
+-errno = subprocess.call([sys.executable, 'setup.py', 'build'])
+-if errno != 0:
+- print("Unable to build FabIO, needed for the documentation")
+- raise SystemExit(errno)
+-os.chdir(curr_dir)
+-build_dir = glob.glob('../../build/lib*')
+-sys.path.insert(0, build_dir[0])
+-os.environ["PATH"] = os.path.join(root_dir, "scripts") + os.pathsep + os.environ.get("PATH", "")
+-os.environ["PYTHONPATH"] = build_dir[0] + os.pathsep + os.environ.get("PYTHONPATH", "")
++sys.path.insert(0, os.path.join(os.pardir, os.pardir))
+
+ # -- General configuration -----------------------------------------------------
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..baeb2c1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-fix-the-documentation-build-process.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-fabio.git
More information about the debian-science-commits
mailing list