File: setup.py

package info (click to toggle)
libfann 2.1.0~beta~dfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,692 kB
  • sloc: sh: 8,712; ansic: 5,994; cpp: 2,351; makefile: 525; python: 448; perl: 243; sed: 7
file content (50 lines) | stat: -rwxr-xr-x 1,667 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/python

from distutils.core import setup, Extension
import glob
#from compiler.pycodegen import compileFile
#import distutils
#import distutils.sysconfig
#import distutils.core
import os

NAME='pyfann'
VERSION='2.0.0'

LONG_DESCRIPTION="""\
Fast Artificial Neural Network Library implements multilayer
artificial neural networks with support for both fully connected
and sparsely connected networks. It includes a framework for easy 
handling of training data sets. It is easy to use, versatile, well 
documented, and fast. 
"""

#These lines are needed to circumvent a bug in distutils
swig_cmd = 'swig -c++ -python pyfann/pyfann.i'
print 'Running SWIG before:', swig_cmd
os.system(swig_cmd)

#This utility function searches for files
def hunt_files(root, which):
    return glob.glob(os.path.join(root, which))

setup(
    name=NAME,
    description='Fast Artificial Neural Network Library (fann)',
    long_description=LONG_DESCRIPTION,
    version=VERSION,
    author='Steffen Nissen',
    author_email='lukesky@diku.dk',
    maintainer='Gil Megidish & Vincenzo Di Massa',
    maintainer_email='gil@megidish.net & hawk.it@tiscali,it',
    url='http://sourceforge.net/projects/fann/',
    license='GNU LESSER GENERAL PUBLIC LICENSE (LGPL)',
    py_modules=['pyfann.libfann'],
    ext_modules=[Extension('pyfann._libfann',['pyfann/pyfann_wrap.cxx'], 
                            include_dirs=['../src/include'], 
                            extra_objects=['../src/.libs/doublefann.o'],
                            define_macros=[("SWIG_COMPILE",None)]
                            ),
                ]
)