from Cython.Distutils import build_ext as _build_ext
list_pyx = ["cydtw", "cygak", "cysax", "cycc", "soft_dtw_fast"]
ext = [Extension("tslearn.%s" % s, ["tslearn/%s.pyx" % s], include_dirs=[numpy.get_include()]) for s in list_pyx]
setup(
name="tslearn",
After Change
from Cython.Build import cythonize
// dirty but working (from POT)
__version__ = re.search(
r"__version__\s*=\s*[\""]([^\""]*)[\""]", // It excludes inline comment too
open("tslearn/__init__.py").read()).group(1)
// The beautiful part is, I don"t even need to check exceptions here.
// If something messes up, let the build process fail noisy, BEFORE my release!