#NEWLINE# def run_setup( with_extension ) : #NEWLINE# #INDENT# if with_extension : #NEWLINE# #INDENT# extension_path = os . path . join ( 'tinycss' , 'speedups' ) #NEWLINE# if CYTHON_INSTALLED : #NEWLINE# #INDENT# extension_path += '.pyx' #NEWLINE# print ( ( 'Building with Cython %s.' % Cython . Compiler . Version . version ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# extension_path += '.c' #NEWLINE# if ( not os . path . exists ( extension_path ) ) : #NEWLINE# #INDENT# print ( ( "WARNING: Trying to build without Cython, but pre-generated '%s' does not seem to be available." % with_extension ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'Building without Cython.' ) #NEWLINE# #UNINDENT# #UNINDENT# kwargs = dict ( cmdclass = dict ( build_ext = ve_build_ext ) , ext_modules = [ Extension ( 'tinycss.speedups' , sources = [ extension_path ] ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# kwargs = dict ( ) #NEWLINE# #UNINDENT# setup ( name = 'tinycss' , version = VERSION , url = 'http://packages.python.org/tinycss/' , license = 'BSD' , author = 'Simon Sapin' , author_email = 'simon.sapin@exyr.org' , description = 'tinycss is a complete yet simple CSS parser for Python.' , long_description = README , classifiers = [ 'Development Status :: 3 - Alpha' , 'Intended Audience :: Developers' , 'License :: OSI Approved :: BSD License' , 'Programming Language :: Python :: 2' , 'Programming Language :: Python :: 2.6' , 'Programming Language :: Python :: 2.7' , 'Programming Language :: Python :: 3' , 'Programming Language :: Python :: 3.1' , 'Programming Language :: Python :: 3.2' ] , packages = [ 'tinycss' , 'tinycss.tests' ] , ** kwargs )