Commits

Andriy Kornatskyy  committed 42812bf

Cythonize python modules in setup.

  • Participants
  • Parent commits fa6b2f4

Comments (0)

Files changed (1)

 except:
     from distutils.core import setup  # noqa
 
+extra = {}
+try:
+    from Cython.Build import cythonize
+    path = os.path.join('src', 'wheezy', 'routing')
+    extra['ext_modules'] = cythonize(
+        [os.path.join(path, '*.py')],
+        quiet=True)
+except ImportError:
+    pass
+
 README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 
 setup(
         ]
     },
 
-    platforms='any'
+    platforms='any',
+    **extra
 )