From ad2d6e5e9e29a87d99f32e93164c4457045fdbb6 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Mon, 21 Oct 2024 19:43:11 +0100 Subject: [PATCH] Don't try to import from the source directory Needed as we build the extension modules elsewhere Author: Yaroslav Halchenko Forwarded: not-needed Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH.patch --- doc/make.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/make.py b/doc/make.py index 25832427..550fac31 100755 --- a/doc/make.py +++ b/doc/make.py @@ -368,8 +368,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