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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Jun 2019 21:24:22 +0000 (17:24 -0400)
commit174f8a26473d5ef29d1dc02c7c9bfc2e87b9acda
treebfcc64780924abec6c5ebb86c08fcb0e6efcf839
parenta7f0580d66651db6fe3cefe87d6e8b2190d582c5
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.025655 seconds and 4 git commands to generate.