Hi, i’m trying to convert my Particle Fluid Tools to Cython. I just can’t find any good information about how to do that, so far.
I am able to convert it to “xxx.c” file. But then? I don’t see the Way.
I think it could be something like compile Blender with “xxx.c” file (how?) and then import as module?
And, since my Addon has UI… which probably don’t work as .c or .so. Would i have to Cython only the “Calculations” Part and load this in UI.py script?
As you can see, i don’t really have a Plan what i’m doing
Some Ideas, Links to Cython (Tutorial) or even Blender+Cython would be much appreciated. thanks
EDIT: I’m able to make .so file, but can’t import it as python module. I have a simple “test.py” with “import test”(name of test.so) at the same place as test.so…
EDIT2: I’ve put both files into Blenders Addon Folder. In Python Console: import test=
Traceback (most recent call last):
File “<blender_console>”, line 1, in <module>
ImportError: dlopen(/Volumes/MacintoshBig/DATA/Users/bashi/Library/Application Support/Blender/2.62/scripts/addons/test.so, 2): Symbol not found: _PyClass_Type
Referenced from: /Volumes/MacintoshBig/DATA/Users/bashi/Library/Application Support/Blender/2.62/scripts/addons/test.so
Expected in: flat namespace
in /Volumes/MacintoshBig/DATA/Users/bashi/Library/Application Support/Blender/2.62/scripts/addons/test.so