From: Debian Science Team Date: Sun, 21 Apr 2024 12:50:13 +0000 (+0100) Subject: Don't try to import from the source directory X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1~1^2^2^2^2^2~37 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a5db7964396dd1e709c5745a68687b977f21c90b;p=pandas.git 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 --- diff --git a/doc/make.py b/doc/make.py index 937b2638..e8749f85 100755 --- a/doc/make.py +++ b/doc/make.py @@ -353,8 +353,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