Closed jr-garcia closed 7 years ago
Hey thanks a lot for this! I was thinking of moving it over to pybind11 but if it works with Cython that would be awesome.
It certainly works. Just requires a little refinement to be perfect (also you can close this when you like :) ).
It's merged now.
I made some changes so the Cython version compiles and the examples run. Library can be installed with (assuming Python3 as default)
or
or
It seems to not have crashes nor memory leaks. Still, it probably needs Boost since at least in Genome.cpp, boost shared pointers are needed. Notably missing in this version is pickle support. Without it, Genomes in multiprocessing jobs are uninitialized. I put needed changes for pickling in another branch since I modified .cpp sources and that got ugly and might be wrong since I know very little about C (and Parameters and Substrate pickling is pending). Some more compatibility with pip is there, but more work is needed to upload to Pypi. Hope this gives some ideas or saves some work for somebody. Thanks.