[pyfai] 09/22: fix for the documentation

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Wed Jun 8 14:33:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to annotated tag debian/0.12.0+dfsg-1
in repository pyfai.

commit 8a02dbef772d9e0d245f3000c33dd73a95c0d249
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Tue Jun 7 15:39:18 2016 +0200

    fix for the documentation
---
 .../0001-remove-useless-logic-in-conf.py.patch     | 43 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 44 insertions(+)

diff --git a/debian/patches/0001-remove-useless-logic-in-conf.py.patch b/debian/patches/0001-remove-useless-logic-in-conf.py.patch
new file mode 100644
index 0000000..fbb0660
--- /dev/null
+++ b/debian/patches/0001-remove-useless-logic-in-conf.py.patch
@@ -0,0 +1,43 @@
+From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?=
+ <picca at synchrotron-soleil.fr>
+Date: Tue, 7 Jun 2016 15:38:36 +0200
+Subject: remove useless logic in conf.py
+
+---
+ doc/source/conf.py | 23 -----------------------
+ 1 file changed, 23 deletions(-)
+
+diff --git a/doc/source/conf.py b/doc/source/conf.py
+index 8dd2f77..e08ccdc 100644
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -19,29 +19,6 @@ import os
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
+ # sys.path.insert(0, os.path.abspath('.'))
+ 
+-import glob
+-import shutil
+-root_dir = os.path.abspath("../..")
+-build_dir = glob.glob('../../build/lib*')
+-if (not build_dir) or ("__init__.py" not in os.listdir(os.path.join(build_dir[0],"pyFAI"))):
+-    import subprocess
+-    curr_dir = os.getcwd()
+-    os.chdir(root_dir)
+-    errno = subprocess.call([sys.executable, 'setup.py', 'build'])
+-    if errno != 0:
+-        raise SystemExit(errno)
+-    else:
+-        os.chdir(curr_dir)
+-    build_dir = glob.glob('../../build/lib*')
+-    calib_dir = os.path.join(build_dir[0],"pyFAI","calibration")
+-    if not os.path.exists(calib_dir):
+-        print(root_dir,calib_dir)
+-        shutil.copytree(os.path.join(root_dir,"calibration"), calib_dir)
+-sys.path.insert(1, 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","")
+-
+-
+ # -- General configuration -----------------------------------------------------
+ 
+ # If your documentation needs a minimal Sphinx version, state it here.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c33acb0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-remove-useless-logic-in-conf.py.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfai.git



More information about the debian-science-commits mailing list