2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00

When possible, directly exec rst2html script to allow system installs of docutils.

This commit is contained in:
Rene Rivera
2015-12-30 10:28:50 -06:00
parent 7d80077b49
commit 36fa8d40d0

View File

@@ -89,7 +89,18 @@ rule html ( target : source : properties * )
if $(RST2XXX_PY)
{
RST2XXX on $(target) = $(python-cmd:G=:E="python") $(RST2XXX_PY) ;
if $(RST2XXX_PY:D)
{
# If we have a path to the rst2html.py script, we need to use
# the python interpreter to load it up.
RST2XXX on $(target) = $(python-cmd:G=:E="python") $(RST2XXX_PY) ;
}
else
{
# Otherwise, bare rst2html.py, we can just exec that directly.
# This work for both Nix, and the standard Windows Python installs.
RST2XXX on $(target) = $(RST2XXX_PY) ;
}
}
else
{