# Probe for 99-python3-sphinxcontrib-htmlhelp.test -- ONE interpreter start for # the whole suite. # # Every value is emitted as `key=value' on its own line. The .test compares with # shell `test x = y', so any value that could carry a newline or a run of spaces # is escaped reversibly here: a newline becomes the two characters \n and a # space becomes \s. Nothing else is transformed, so a red prints the whole value # on one readable line. # # =========================================================================== # THIS PROBE STANDS SPHINX UP IN STUB FORM AND USES THE REAL docutils. # =========================================================================== # # sphinxcontrib/htmlhelp/__init__.py imports Sphinx at MODULE scope -- fourteen # separate `from sphinx...' lines -- and, worse for a stub, SUBCLASSES # sphinx.builders.html.StandaloneHTMLBuilder at module scope. This image does # not install Sphinx (python3-sphinx exists in poky and is in neither # core-image-brintos-emcraft nor any port ticket), so # # python3 -c 'import sphinxcontrib.htmlhelp' # # raises ModuleNotFoundError: No module named 'sphinx'. The .test asserts that # failure directly, from the shell, so the fact is recorded rather than worked # around in silence; this probe then installs the smallest sphinx.* surface the # module actually touches and measures the package against it. # # WHAT IS AND IS NOT MEASURED, stated plainly, because this stub is larger than # a one-attribute stub and the line matters: # # * MEASURED, entirely this package's own code: # - chm_htmlescape()'s hex-to-decimal rewrite; # - ToCTreeVisitor, run over a REAL docutils doctree (python3-docutils IS # on this image), so the .hhc body is the package's output; # - build_hhx(), which writes the .hhk with no template at all -- the # literal