# HG changeset patch # User Tero Marttila # Date 1410734909 -10800 # Node ID dfd8022d000eac6fe870850e2586c2122e1080b0 # Parent cd07ab2a295cfcf38fd63adc2ca5c3c789b2edad setup: sdist only includes the .c and the .pyx, so skip CYTHON then diff -r cd07ab2a295c -r dfd8022d000e setup.py --- a/setup.py Mon Sep 15 01:34:42 2014 +0300 +++ b/setup.py Mon Sep 15 01:48:29 2014 +0300 @@ -10,10 +10,10 @@ except ImportError : CYTHON = False -if CYTHON: - pypngtile_sources = [ "python/pypngtile.pyx" ] +if CYTHON and os.path.exists('python/pypngtile.pyx'): + pypngtile_sources = [ 'python/pypngtile.pyx' ] elif os.path.exists("python/pypngtile.c"): - pypngtile_sources = [ "python/pypngtile.c" ] + pypngtile_sources = [ 'python/pypngtile.c' ] else: raise Exception("Building from source requires Cython")