Skip to content

Commit 33298fb

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 3754b16 commit 33298fb

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
@@ -354,8 +354,9 @@ def main():
354354
# external libraries (namely Sphinx) to compile this module and resolve
355355
# the import of `python_path` correctly. The latter is used to resolve
356356
# the import within the module, injecting it into the global namespace
357-
os.environ["PYTHONPATH"] = args.python_path
358-
sys.path.insert(0, args.python_path)
357+
# Debian: we set it outside
358+
#os.environ["PYTHONPATH"] = args.python_path
359+
#sys.path.insert(0, args.python_path)
359360
globals()["pandas"] = importlib.import_module("pandas")
360361

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

0 commit comments

Comments
 (0)