deb_doc_donotoverride_PYTHONPATH
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Fri, 3 Apr 2020 20:56:02 +0000 (21:56 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 3 Apr 2020 20:56:02 +0000 (21:56 +0100)
Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH

doc/make.py

index 48febef20fbe66fddf8a99421e8cb9b08c2993d0..7dbc5efc610dffb6d1ff2fc6e4b2f0113e2d54e3 100755 (executable)
@@ -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