Skip to content

Commit ddddadb

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
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
1 parent f45d64c commit ddddadb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/make.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,9 @@ def main():
339339
# external libraries (namely Sphinx) to compile this module and resolve
340340
# the import of `python_path` correctly. The latter is used to resolve
341341
# the import within the module, injecting it into the global namespace
342-
os.environ["PYTHONPATH"] = args.python_path
343-
sys.path.insert(0, args.python_path)
342+
# Debian: we set it outside
343+
#os.environ["PYTHONPATH"] = args.python_path
344+
#sys.path.insert(0, args.python_path)
344345
globals()["pandas"] = importlib.import_module("pandas")
345346

346347
# Set the matplotlib backend to the non-interactive Agg backend for all

0 commit comments

Comments
 (0)