deb_doc_donotoverride_PYTHONPATH
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sat, 14 Sep 2019 15:37:43 +0000 (16:37 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 14 Sep 2019 15:37:43 +0000 (16:37 +0100)
Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH

doc/make.py

index 4967f30453fd18871d0b7e6f616aef6f00931c58..f94ceda9d3691c1bd7b59dfac4a8df115b7cb6e8 100755 (executable)
@@ -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,