From e70b3084a937b1d15904dd7c3477caa66cdb64a9 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Thu, 9 Apr 2020 04:11:32 +0100 Subject: [PATCH] deb_doc_donotoverride_PYTHONPATH Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH --- doc/make.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/make.py b/doc/make.py index 48febef2..7dbc5efc 100755 --- a/doc/make.py +++ b/doc/make.py @@ -350,8 +350,9 @@ def main(): # external libraries (namely Sphinx) to compile this module and resolve # the import of `python_path` correctly. The latter is used to resolve # the import within the module, injecting it into the global namespace - os.environ["PYTHONPATH"] = args.python_path - sys.path.insert(0, args.python_path) + # Debian: we set it outside + #os.environ["PYTHONPATH"] = args.python_path + #sys.path.insert(0, args.python_path) globals()["pandas"] = importlib.import_module("pandas") # Set the matplotlib backend to the non-interactive Agg backend for all -- 2.30.2