typemytype / booleanOperations

Boolean operations on paths
MIT License
38 stars 18 forks source link

Static library? #23

Closed adrientetar closed 8 years ago

adrientetar commented 8 years ago

It would be nice to have possibility to compile booleanOperations as static lib, which makes things easier for dist.

cc @anthrotype

anthrotype commented 8 years ago

AFAIK Python extension modules must be shared libraries (the interpreter dynamically loads them at runtime). booleanOperation is a package that mixes Python and C++. You can compile a static library of the C++ clipper module, but you won't be able to use it from Python. What's the problem with the shared library? What are you trying to statically link it with?

adrientetar commented 8 years ago

I am building with pyqtdeploy and Qt qmake and I get an ImportError even though I include the .so in the package along with the source files... maybe I need to investigate further.

typemytype commented 8 years ago

Embedding is working fine for years already with py2app, I assume it is not so different how packages get zipped and embedded into an app

adrientetar commented 8 years ago

Closing until I find out more.