diff options
author | Alexandre Marie <alexandre.marie@synchrotron-soleil.fr> | 2019-07-09 10:20:39 +0200 |
---|---|---|
committer | Alexandre Marie <alexandre.marie@synchrotron-soleil.fr> | 2019-07-09 10:20:39 +0200 |
commit | 032cc0bed452e96456cdc499f98ccaf473416978 (patch) | |
tree | 514f4532d1ab4dcbea0495488e6dd30bc422a94b /doc/source/ext | |
parent | 8ff15764a99df31a5d75e1e19a89b413408cfcc2 (diff) | |
parent | 654a6ac93513c3cc1ef97cacd782ff674c6f4559 (diff) |
Update upstream source from tag 'upstream/0.11.0+dfsg'
Update to upstream version '0.11.0+dfsg'
with Debian dir 711605a3a57c11c3b5d699da5819c94403f8ac62
Diffstat (limited to 'doc/source/ext')
-rw-r--r-- | doc/source/ext/snapshotqt_directive.py | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/doc/source/ext/snapshotqt_directive.py b/doc/source/ext/snapshotqt_directive.py index 53508df..81305e0 100644 --- a/doc/source/ext/snapshotqt_directive.py +++ b/doc/source/ext/snapshotqt_directive.py @@ -1,7 +1,7 @@ # coding: utf-8 # /*########################################################################## # -# Copyright (c) 2004-2018 European Synchrotron Radiation Facility +# Copyright (c) 2004-2019 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -39,41 +39,14 @@ __date__ = "07/12/2018" import os import logging -import subprocess import sys -import distutils -import shutil from docutils.parsers.rst.directives.images import Image from docutils.parsers.rst import directives -from docutils.parsers.rst import Directive -from docutils.nodes import fully_normalize_name -from docutils import nodes # from docutils.par # 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", "")}) if not os.environ.get('DIRECTIVE_SNAPSHOT_QT') == 'True': |