setup.py
changeset 151 dfd8022d000e
parent 132 0260aeca943c
child 160 9953c5fe3629
equal deleted inserted replaced
150:cd07ab2a295c 151:dfd8022d000e
     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,