python-sphinx generates different filenames in different architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux