[jenkins@jenkins BUILD_TAG_validate_Fri_Jul_30_15_31_30_2021_]$ sudo /opt/cisco/aci/python2.7/bin/python
Python 2.7.14 (default, Apr 12 2018, 19:30:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system('make html')
sphinx-build -b html -d _build/doctrees . _build/html
make: sphinx-build: Command not found
make: *** [html] Error 127
512
>>>
Works without sudo:
[jenkins@jenkins BUILD_TAG_validate_Fri_Jul_30_15_31_30_2021_]$ /opt/cisco/aci/python2.7/bin/python
Python 2.7.14 (default, Apr 12 2018, 19:30:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system('make html')
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.8.5
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded.
The HTML pages are in _build/html.
Build finished. The HTML pages are in _build/html.
0
>>>