I have build a Python 3 module for my own process.
I use cython to compile and wrap C++ sources.
I have a Linux (Debian Jessie) machine with Python 3.4 and so cythonize make me a Processing.cpython-34m.so
and copy it to /usr/local/lib/python3.4/dist-packages
.
But when I use it on another machine which has python3.5, I have to recompile everything.
How can I build a Linux or pip package from my machine for all Python 3 version and multiple platforms (here, just Jessie and Stretch, which might be very closed indeed equal) ? Preferably without having to install all version of Python 3 on my machine.
Here is my setup.py file for cythonization :
from distutils.core import setup, Extension
from Cython.Build import cythonize
setup(ext_modules = cythonize(Extension(
"MyProcessing",
sources=["MyProcessing.pyx", "myprocess.cpp", "mythirdp.cpp"],
language="c++",
)))
Thanks.