Skip to content

Commit a74a571

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 9fef5ee commit a74a571

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
@@ -368,8 +368,9 @@ def main():
368368
# external libraries (namely Sphinx) to compile this module and resolve
369369
# the import of `python_path` correctly. The latter is used to resolve
370370
# the import within the module, injecting it into the global namespace
371-
os.environ["PYTHONPATH"] = args.python_path
372-
sys.path.insert(0, args.python_path)
371+
# Debian: we set it outside
372+
#os.environ["PYTHONPATH"] = args.python_path
373+
#sys.path.insert(0, args.python_path)
373374
globals()["pandas"] = importlib.import_module("pandas")
374375

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

0 commit comments

Comments
 (0)