
**************************************************************************************************************

This is a short help to compile knit
on windows using cygwin. Note: the result only work
on cygwin python, not on win32 python. One would need
a different build to do so (possibly with visual C++).


**************************************************************************************************************
1/ Installing BLITZ:

Straightforward: download then type

./configure CXX=g++
make install

I had one problem: the configure script did not
work because of DOS ending instead of UNIX ending. (whatever that means)
This can be cured with d2u:

d2u configure
d2u config/*

**************************************************************************************************************
2/ Installing SWIG, BLAS, LAPACK:

already there in cygwin!

**************************************************************************************************************
3/ modifying knit_Makefile:

# DIRECTIVES FOR MY LAPTOP (INTEL DUAL CORE 2 GHz)  
ifeq ($(strip $(HOST)),DREC-HB-002386)
CC= g++
PYTHDR=/usr/include/python2.4/
PYTLIB=/bin/
BLZHDR=/usr/local/include/
BLZLIB=/usr/local/lib
LFLAGS = -L$(HOME) --export-dynamic  -llapack  -lblas -lg2c -L$(PYTLIB) -lpython2.4 -L$(BLZLIB) -lblitz
endif

I found the location of libpython.so with
find / -name "libpython*"

**************************************************************************************************************
4/ COMPILE

make python

**************************************************************************************************************
5/ CHANGE THE NAME OF _knit.so TO _knit.dll

**************************************************************************************************************
6/ INSTALL PYX:
download and type
python setup.py install

**************************************************************************************************************
7/ IT WORKS!

 