Want to backport Mathutils to Python 2.7

We use python 2.7 here at work.
Mathutils is great, but it’s written for python 3.
These two things are at odds with each other.

I would like to look into backporting it, but I honestly have no clue where to start.
Has anybody already tried something like this? Does anybody know of any “2.7 vs 3” comparisons dealing with c/c++ extensions? Am I barking up the wrong tree here?

~T.Fox

https://wiki.python.org/moin/Python2orPython3

You might get better help with your backporting questions from the Python Community IRC channels.

another way would be not to use mathutils
and go with Sci Py !

note : corrected name

happy bl

Jorge, Thanks for those links. I’ll give them a look.

Ricky, Do you have a link to Sci Fy? Or did you mean SciPy?
If it’s Scipy, that’s a great module, and I’m already making use of it. But getting something small, fast, and tailored to 3d would be ideal. Enter mathutils. I’d prefer not to use the proverbial cannon (Numpy) to kill the mosquito (3d math), especially for code that we’re aiming for use in multiple embedded python environments

my bad Sci py will correct it !

problem is that mathutil have very limited features for vector and matrix

Sci py is really meant to work with vectors and matrix and even more math algos !

happy bl

RickyBlender, can I know how did you install scipy on blender ?
Working with win64…

I think numpy is the mosquito and mathutils the cannon… Anyway, SciPy would be useful in Blender itself, but that’s not going to happen until blender is harmonized with modern Python distributions…