Alejandro Dubrovsky
2007-09-20 14:43:45 UTC
Hi,
Like the subject says, setup.py and the Makefile under the python
subdirectory assume that ../src/doublefann.o will exist (2.1.0 and cvs
as of today), but this is not the case if fann was configured
--without-static.
The following seems like a more portable approach to me (based on a
sample of one test :):
$ cvs diff -u setup.py
Index: setup.py
===================================================================
RCS file: /cvsroot/fann/fann/python/setup.py,v
retrieving revision 1.8
diff -u -r1.8 setup.py
--- setup.py 18 Mar 2006 17:37:12 -0000 1.8
+++ setup.py 20 Sep 2007 14:45:11 -0000
@@ -42,7 +42,7 @@
py_modules=['pyfann.libfann'],
ext_modules=[Extension('pyfann._libfann',['pyfann/pyfann_wrap.cxx'],
include_dirs=['../src/include'],
- extra_objects=['../src/doublefann.o'],
+ libraries=['fann'],
define_macros=[("SWIG_COMPILE",None)]
),
]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Like the subject says, setup.py and the Makefile under the python
subdirectory assume that ../src/doublefann.o will exist (2.1.0 and cvs
as of today), but this is not the case if fann was configured
--without-static.
The following seems like a more portable approach to me (based on a
sample of one test :):
$ cvs diff -u setup.py
Index: setup.py
===================================================================
RCS file: /cvsroot/fann/fann/python/setup.py,v
retrieving revision 1.8
diff -u -r1.8 setup.py
--- setup.py 18 Mar 2006 17:37:12 -0000 1.8
+++ setup.py 20 Sep 2007 14:45:11 -0000
@@ -42,7 +42,7 @@
py_modules=['pyfann.libfann'],
ext_modules=[Extension('pyfann._libfann',['pyfann/pyfann_wrap.cxx'],
include_dirs=['../src/include'],
- extra_objects=['../src/doublefann.o'],
+ libraries=['fann'],
define_macros=[("SWIG_COMPILE",None)]
),
]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/