diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2019-05-28 09:08:57 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2019-05-28 08:20:44 +0200 |
commit | c744cb5a7d5e872d5aa1f08c39362db632b454b0 (patch) | |
tree | e9393b8937c8ad5a564a9381eef42af87de190ae | |
parent | b9667d7da6f058762edbde293f48ee6e3680fbc9 (diff) |
fix missing importarchive/debian/0.10.1+dfsg-1_exp1
Gbp-Pq: Name 0004-fix-missing-import.patch
-rw-r--r-- | doc/source/ext/snapshotqt_directive.py | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/doc/source/ext/snapshotqt_directive.py b/doc/source/ext/snapshotqt_directive.py index 53508df..ee62e3a 100644 --- a/doc/source/ext/snapshotqt_directive.py +++ b/doc/source/ext/snapshotqt_directive.py @@ -42,6 +42,7 @@ import logging import subprocess import sys import distutils +import distutils.util import shutil from docutils.parsers.rst.directives.images import Image from docutils.parsers.rst import directives @@ -53,27 +54,27 @@ from docutils import nodes # note: conf.py is patching the PATH so this will be the 'current' qt version -def _distutils_dir_name(dname="lib"): - """ - Returns the name of a distutils build directory - """ - platform = distutils.util.get_platform() - architecture = "%s.%s-%i.%i" % (dname, platform, - sys.version_info[0], sys.version_info[1]) - return architecture - -home = os.path.abspath(os.path.join(__file__, "..", "..", "..", '..')) -home = os.path.abspath(home) -LIBPATH = os.path.join(home, 'build', _distutils_dir_name('lib')) - -if not os.path.exists(LIBPATH): - raise RuntimeError("%s is not on the path. Fix your PYTHONPATH and restart sphinx." % project) - -sys.path.append(LIBPATH) -env = os.environ.copy() -env.update( - {"PYTHONPATH": LIBPATH + os.pathsep + os.environ.get("PYTHONPATH", ""), - "PATH": os.environ.get("PATH", "")}) +# def _distutils_dir_name(dname="lib"): +# """ +# Returns the name of a distutils build directory +# """ +# platform = distutils.util.get_platform() +# architecture = "%s.%s-%i.%i" % (dname, platform, +# sys.version_info[0], sys.version_info[1]) +# return architecture + +# home = os.path.abspath(os.path.join(__file__, "..", "..", "..", '..')) +# home = os.path.abspath(home) +# LIBPATH = os.path.join(home, 'build', _distutils_dir_name('lib')) + +# if not os.path.exists(LIBPATH): +# raise RuntimeError("%s is not on the path. Fix your PYTHONPATH and restart sphinx." % project) + +# sys.path.append(LIBPATH) +# env = os.environ.copy() +# env.update( +# {"PYTHONPATH": LIBPATH + os.pathsep + os.environ.get("PYTHONPATH", ""), +# "PATH": os.environ.get("PATH", "")}) if not os.environ.get('DIRECTIVE_SNAPSHOT_QT') == 'True': |