Added pyeo. Some changes needed to be made for include files and the like

in some files (and some bugs were fixed as well [Marc: eoOneToOneBreeder was a mess])

eoFunctor.h now contains static functor_category members, this shouldn't hurt anyone.
This commit is contained in:
maartenkeijzer 2003-01-05 16:31:50 +00:00
commit 131e0e033d
40 changed files with 2300 additions and 18 deletions

48
eo/src/pyeo/Makefile Normal file
View file

@ -0,0 +1,48 @@
# Note for however is foolish enough to attempt to build this thing
#
# You need:
# Python 2.2
# Stlport
# Boost.Python v2
#
#
# On my debian (unstable), I used libstlport_gcc.so.4.5
# and libboost_python.so.1.29.0
#
# Obviously together with python2.2 (as Boost.Python.v2 needs that)
#
# I'm pretty sure any stlport will do, but less convinced about boost.python
# That lib seems to be pretty much under development (as I found out, the hard way)
# but this version 1.29 seems to work for me.
#
# My version of boost was found in /usr/include, modify INC to your system
CXX = g++ #-3.2
CXXFLAGS = -g #-DNDEBUG
CPPFLAGS = -Wall #-O2
LDFLAGS =
COMPILE = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
LINK = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
INC=-I/usr/include/python2.2/ -I/usr/include/stlport -I.. -ftemplate-depth-50
OBJECTS=eoFunctorStore.o pyeo.o abstract1.o algos.o \
random_numbers.o geneticOps.o selectOne.o continuators.o\
reduce.o replacement.o selectors.o breeders.o\
mergers.o valueParam.o perf2worth.o
all: pyeo.so
clean:
rm *.so *.o test/*.pyc
pyeo.so: $(OBJECTS)
$(LINK) -o pyeo.so $(OBJECTS) -lboost_python -lpython2.2 -shared -lstlport
eoFunctorStore.o: ../eoFunctorStore.h ../eoFunctorStore.cpp
$(COMPILE) -o eoFunctorStore.o ../eoFunctorStore.cpp $(INC)
%.o:%.cpp pyeo.h def_abstract_functor.h
$(COMPILE) $< $(INC)