Commits

Andriy Kornatskyy committed d0a25ed

Cythonize python modules in setup.

Comments (0)

Files changed (1)

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