From: Johan E. <jbc...@sw...> - 2012-09-18 22:49:06
|
On 18-9-2012 23:12, jan pulmann wrote: > On Thu, Sep 13, 2012 at 12:24 AM, Johan Engelen > <jbc...@sw... <mailto: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... > <mailto: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). > Cool, I'll have a look :) > 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? > Yep, make it standard! I hope Krzysztof can chime in, he knows more about CMake. > 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. Did you see my cmake code to install to the system-wide python modules dir? Have a look at the last lines in the /cython-bindings/CMakeScript.txt file. That works for Windows. But indeed I think an __init.py__ file is missing. Have a look at the py2geom folder. A modification of this will copy the file: INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/__init__.py" DESTINATION "${SITEPACKAGE}/py2geom") Cheers, Johan |