22
28
from Cython.Distutils import build_ext
23
29
import Cython.Compiler.Main as cython_compiler
26
32
def __init__(self, *args, **kwargs):
27
33
for src in glob('attic/*.pyx'):
28
34
cython_compiler.compile(glob('attic/*.pyx'),
29
35
cython_compiler.default_options)
32
38
def make_distribution(self):
33
39
self.filelist.extend(['attic/chunker.c', 'attic/_chunker.c', 'attic/hashindex.c', 'attic/_hashindex.c'])
34
40
super(Sdist, self).make_distribution()
38
44
def __init__(self, *args, **kwargs):
39
45
raise Exception('Cython is required to run sdist')