From ba8de9af1ce1989a338d354ba11332e1dd303fc7 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Wed, 6 Mar 2019 22:19:34 +0000 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 4967f304..f94ceda9 100755 --- a/doc/make.py +++ b/doc/make.py @@ -346,8 +346,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.append(args.python_path) + # Debian: we set it outside + #os.environ['PYTHONPATH'] = args.python_path + #sys.path.append(args.python_path) globals()['pandas'] = importlib.import_module('pandas') builder = DocBuilder(args.num_jobs, not args.no_api, args.single, -- 2.30.2