File: deb_doc_donotoverride_PYTHONPATH

package info (click to toggle)
pandas 0.23.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 167,704 kB
  • sloc: python: 230,826; ansic: 11,317; sh: 682; makefile: 133
file content (14 lines) | stat: -rw-r--r-- 642 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/doc/make.py
+++ b/doc/make.py
@@ -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,