-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme
37 lines (25 loc) · 1.35 KB
/
readme
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
<html><body><pre>
g'day.
This is a python wrapper over the (famous) Cassowary incremental constraint solver.
It uses the c++ implementation (0.6) as backend.
The original c++ code is somewhat refactored to remove memory leaks
by using reference counting, and is usable alone.
The refactoring was done somewhen in 2002, and the code is not touched much since then.
Last changes are workarounding recent template-things in new (gcc-4.x) c++ compilers.
The Finite-domain part (using GTL graph library) is not tried/tested; it might or might not work.
repository: svn co https://dbcook.svn.sf.net/svnroot/dbcook/cassowarypy
how to compile/install for python:
* the c++ code now compiles on both g++ 3.3.3 and g++ 4.1.3.
it also compiles on some MSVC.
* 'swig' is also needed
* if the default C++ compiler is one of those, just 'python setup.py install' would do.
Then run python test.py to see if all works.
* else, u have to install one of these compilers and fight with distutils to make it use that one.
e.g. "CC=g++-3.3 python setup.py install" might work; also check the link'ing part
My code is licensed under MIT-license.
Original Cassowary code is licensed under LGPL.
Original cassowary Web Page: (last update about year 2000)
http://www.cs.washington.edu/research/constraints/cassowary
have fun
svil
svilen_dobrev at users point sourceforge point net