Orange Forum • View topic - Some Notes on Building Orange from CVS Sources

Some Notes on Building Orange from CVS Sources

A place to ask questions about methods in Orange and how they are used and other general support.

Some Notes on Building Orange from CVS Sources

Postby Feanor76 » Thu Mar 08, 2007 18:48

Hello all,

This is a companion piece to building from stable sources. This takes the form of a shell script. You should be able to type commands in and go (for the most part). I don't cover building _orngCRS.so since that is covered in my other post.

Here you go:

export CVSROOT=:pserver:cvs@estelle.fri.uni-lj.si:/CVS
cvs login
cvs rls


cvs co install-scripts
cvs co orngCRS
cvs co orange
cvs co source


mv source orange/
cp install-scripts/linux/setup.py orange/

cd orange/source
# have the dedos effect all *.?pp files
# including .hpp, .jpp, etc.
sed 's/cpp/\?pp' dedos > tmp.dedos
mv tmp.dedos dedos
bash dedos

make
cd ..

# you might have to build orngCRS if you don't have a magic
# directory like I do
cp ../../../magic/_orngCRS.so ./

sed 's/ADDVERSION/`date +%D`/' setup.py > tmp.setup.py
mv tmp.setup.py setup.py

# not sure why I always do this AND
# do the make but it seems to work
python setup.py compile
# this is definitely required
python setup.py install --orangepath=~/pythonlib/

# lib files aren't copied for some reason
cp *.so ~/pythonlib/orange/


That's about it. You may have to monkey with the orange.pth file. It seems to be much happier with an absolute path (i.e., /home/on/the/range/pythonlibs then with relative or abbreviated paths like ../../pythonlib or ~/pythonlibs). Of course this is for a local install.

Regards,
Mark

Return to Questions & Support