mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Properly add C module filenames as dependencies in autodoc.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
||||
Release 0.6.3 (in development)
|
||||
==============================
|
||||
|
||||
* Properly add C module filenames as dependencies in autodoc.
|
||||
|
||||
* #253: Ignore graphviz directives without content instead of
|
||||
raising an unhandled exception.
|
||||
|
||||
|
||||
@@ -625,6 +625,9 @@ class Documenter(object):
|
||||
except PycodeError, err:
|
||||
# no source file -- e.g. for builtin and C modules
|
||||
self.analyzer = None
|
||||
# at least add the module.__file__ as a dependency
|
||||
if hasattr(self.module, '__file__') and self.module.__file__:
|
||||
self.directive.filename_set.add(self.module.__file__)
|
||||
else:
|
||||
self.directive.filename_set.add(self.analyzer.srcname)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user