# Path: f2py/version.py



import sys, os
import glob
import types
import fparser
from f2py.version import version as release
from iocbio.optparse_gui import OptionParser
from iocbio.script_options import set_formatter
        if not (getattr(obj,'__module__', '') or '').startswith(prefix):
            # skip external classes
            return
    if n not in cache:
        for title in ['Examples', 'Example']:
            if title+'\n' in (getattr(obj, '__doc__','') or ''):
                docs_with_examples.append('`%s <%s.html#%s>`_' % (n,n, title.lower()))
        yield n
        cache.add(n)
    prefix = n
    autodoc_names = getattr(obj, '__autodoc__',None)
    if autodoc_names is None:
        if isinstance(obj, (type, type)):
            autodoc_names = [name for name in dir(obj) if (not name.startswith ('_') or name in ['__init__'])]
        elif isinstance(obj, types.ModuleType):
            autodoc_names = getattr(obj, '__all__', [])
    if autodoc_names is None:
        return
    for name in autodoc_names:
        if not hasattr(obj, name):
            if isinstance(obj, types.ModuleType):
                exec('import %s.%s' % (obj.__name__, name))
        member = getattr(obj, name)
        for n in scan_for_autodoc(member, prefix):
            if n not in cache:
                yield n
                cache.add(n)

f = open('generated/stubs.rst', 'w')
print('.. autosummary::', file=f)

# Path: f2py/version.py



# Path: doc/source/conf.py
import sys, os
import glob
import types
import fparser
from f2py.version import version as release
from iocbio.optparse_gui import OptionParser
from iocbio.script_options import set_formatter

        if not (getattr(obj,'__module__', '') or '').startswith(prefix):
            # skip external classes
            return
    if n not in cache:
        for title in ['Examples', 'Example']:
            if title+'\n' in (getattr(obj, '__doc__','') or ''):
                docs_with_examples.append('`%s <%s.html#%s>`_' % (n,n, title.lower()))
        yield n
        cache.add(n)
    prefix = n
    autodoc_names = getattr(obj, '__autodoc__',None)
    if autodoc_names is None:
        if isinstance(obj, (type, type)):
            autodoc_names = [name for name in dir(obj) if (not name.startswith ('_') or name in ['__init__'])]
        elif isinstance(obj, types.ModuleType):
            autodoc_names = getattr(obj, '__all__', [])
    if autodoc_names is None:
        return
    for name in autodoc_names:
        if not hasattr(obj, name):
            if isinstance(obj, types.ModuleType):
                exec('import %s.%s' % (obj.__name__, name))
        member = getattr(obj, name)
        for n in scan_for_autodoc(member, prefix):
            if n not in cache:
                yield n
                cache.add(n)

f = open('generated/stubs.rst', 'w')
print('.. autosummary::', file=f)

print('  :toctree: .', file=f)