From 978af984c14e64be4c532e3f61ae8862f631b1a9 Mon Sep 17 00:00:00 2001 From: Deokjae Lee Date: Tue, 15 May 2018 23:22:39 +0900 Subject: [PATCH] Fix broken build with cython 0.28 --- python/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/setup.py b/python/setup.py index 980ce6393701..c4106d06f859 100644 --- a/python/setup.py +++ b/python/setup.py @@ -69,7 +69,7 @@ def config_cython(): try: from Cython.Build import cythonize - # from setuptools.extension import Extension + from setuptools.extension import Extension if sys.version_info >= (3, 0): subdir = "_cy3" else: @@ -87,7 +87,7 @@ def config_cython(): if not fn.endswith(".pyx"): continue ret.append(Extension( - "mxnet/%s/.%s" % (subdir, fn[:-4]), + "mxnet.%s.%s" % (subdir, fn[:-4]), ["mxnet/cython/%s" % fn], include_dirs=["../include/", "../3rdparty/nnvm/include"], library_dirs=library_dirs,