Hello,
sphinx is very popular tool for documenting python. Among other things, it can create inheritance diagrams with the extension sphinx.ext.inheritance_diagram
The names of the generated files are of the form
inheritance-xxxxxxxx.png where xxxxx is a hash
But the hash is different in different architectures, such as in this scratch build
https://koji.fedoraproject.org/koji/taskinfo?taskID=6384105
The only solution I have found so far is to make the doc subpackages arched instead of noarch, but it seems a waste of resources.
Has anybody dealt with this sphinx problem before?
BTW, the function that generates the names is
sphinx.ext.graphviz.render_dot
and the code is
hashkey = code.encode('utf-8') + str(options) + \ str(self.builder.config.graphviz_dot) + \ str(self.builder.config.graphviz_dot_args)
fname = '%s-%s.%s' % (prefix, sha(hashkey).hexdigest(), format)
where code is the graphviz code used to generate the figure, options is the empty list [], graphviz_dot is 'dot' and graphviz_dot_args is also the empty list []
sha is sha1
Regards, Sergio
packaging@lists.fedoraproject.org