Inkscape has amazing svg path boolean logic functionality contained in the “livarot” source directory. My pylivarot project is an attempt to make this functionality within python.
For this project, I don’t want to distribute a source distribution, because pylivarot has many dependencies which can be challenging for a non-C++ developer to set up. I ran into a few issues creating binary distributions:
Martino Pilia has a great blog post about how to use cmake with setuptools, and my setup.py file is largely based on the example he worked with. However, I added a few extra hacks. The first is that the cmake FindPython cmake module doesn’t have enough granularity about python versions, so I wanted to get the library, include and executable from whatever python interpreter is currently running setup.py: