equal
deleted
inserted
replaced
8 |
8 |
9 CYTHON = True |
9 CYTHON = True |
10 except ImportError : |
10 except ImportError : |
11 CYTHON = False |
11 CYTHON = False |
12 |
12 |
13 if CYTHON: |
13 if CYTHON and os.path.exists('python/pypngtile.pyx'): |
14 pypngtile_sources = [ "python/pypngtile.pyx" ] |
14 pypngtile_sources = [ 'python/pypngtile.pyx' ] |
15 elif os.path.exists("python/pypngtile.c"): |
15 elif os.path.exists("python/pypngtile.c"): |
16 pypngtile_sources = [ "python/pypngtile.c" ] |
16 pypngtile_sources = [ 'python/pypngtile.c' ] |
17 else: |
17 else: |
18 raise Exception("Building from source requires Cython") |
18 raise Exception("Building from source requires Cython") |
19 |
19 |
20 ext_modules = [Extension("pypngtile", |
20 ext_modules = [Extension("pypngtile", |
21 sources = pypngtile_sources, |
21 sources = pypngtile_sources, |