Fix: doc/bindings/python/Makefile.am: run the `sphinx` Python 3 package
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 7 Jun 2019 15:13:35 +0000 (11:13 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 8 Jun 2019 00:38:02 +0000 (20:38 -0400)
commitb42ac238b359c6989e7578822c54112a1673d1d9
treebb93c35dee4a9a232e140f10b0d4bdb3b721b596
parent05abc762716e96308952c1d83e290f393596cd90
Fix: doc/bindings/python/Makefile.am: run the `sphinx` Python 3 package

In `sphinx-build.py` (removed), importing `main` and `make_main` from
the `sphinx` package is not considered stable: it used to work for me,
but now it doesn't (cannot import). Instead, run the `sphinx` package
directly with the Python interpreter's `-m` option.

We do this instead of running `sphinx-build` directly because we want to
pick Sphinx for Python 3 (because we're importing the `bt2` package for
autodoc), not for Python 2, and the installed `sphinx-build` program can
be the one for Python 2 on some distributions.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I158dbb96a8b3a26db67dd6e16254a64ac9d24446
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1401
doc/bindings/python/Makefile.am
doc/bindings/python/sphinx-build.py [deleted file]
This page took 0.025205 seconds and 4 git commands to generate.