Don't try to import from the source directory
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Fri, 28 Jan 2022 19:22:53 +0000 (19:22 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 28 Jan 2022 19:22:53 +0000 (19:22 +0000)
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

index 5d2476fcdca8d5fb2c5418e4e22a1acf13013071..4b9ee095740c8312441d60f4d78a604b4df03c76 100755 (executable)
@@ -354,8 +354,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