From: jan p. <jan...@gm...> - 2012-09-18 21:13:08
|
On Thu, Sep 13, 2012 at 12:24 AM, Johan Engelen <jbc...@sw...>wrote: > On 12-9-2012 23:12, Johan Engelen wrote: > > With a CMakeScript hack, I got cy2geom to build completely now. > > > > An install script is missing, so how do I test whether it actually > > works? :) (I tried a bit, but without success). > > For an example of a "working" install script: /py2geom/CMakeLists.txt > > lines 116-... > > And I've gotten it to work now (from the src dir with all the built > files). I do get this message: > "RuntimeWarning: compiletime version 2.6 of module '_cy_primitives' does > not match runtime version 2.7" > but that does not seem to matter :-) I've never had Python 2.6 > installed on this PC, and I installed Cython for 2.7... > > An important thing that is missing is a way to read/write SVG paths. > Can you add bindings for the read_svgd and write_svgd functions (or > something similar?) > > Let's see if we can get a very simple Python extension working with > Inkscape (i.e. a mirror effect or something stupidly simple, but showing > that cy2geom works)! > > Cheers, > Johan > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Lib2geom-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/lib2geom-devel > I've added read_svgd function, couldn't find anything similar to write_svgd though. It works now, it just fails pretty badly on wrong filenames (as most of the other stuff does, but that should be a quick fix). Concerning cmake, I am trying to pick it up, but I am new to it. The shared option hack looks like it works, couldn't it become the standard way to build cy2geom? I will look on installing python modules, it looks like it's missing __init__.py file. I guess I should add custom target to copy that file to system-wide python modules directory. Cheers Jan |