Skip to content

Commit b563ccd

Browse files
Debian Science TeamJochen Sprickerhof
Debian Science Team
authored and
Jochen Sprickerhof
committed
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 ab1c1eb commit b563ccd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/make.py

Lines changed: 3 additions & 2 deletions
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)