7
C CALCULATE FIRST N FIBONACCI NUMBERS
20
A(I) = A(I-1) + A(I-2)
27
def source_func(ext, build_dir):
29
from distutils.dep_util import newer
30
target = os.path.join(build_dir,'fib3.f')
31
if newer(__file__, target):
37
def configuration(parent_package='',top_path=None):
38
from numpy.distutils.misc_util import Configuration
39
config = Configuration('gen_ext',parent_package,top_path)
40
config.add_extension('fib3',
45
if __name__ == "__main__":
46
from numpy.distutils.core import setup
47
setup(**configuration(top_path='').todict())