from distutils.core import setup, Extension
from Cython.Distutils import build_ext

setup(
    cmdclass={'build_ext': build_ext},
    ext_modules=[
        Extension('esapp',
                  sources=['cython/esapp.pyx'],
                  extra_compile_args=['-std=c++11'],
                  include_dirs=['../../include'],
                  library_dirs=['../../lib'],
                  libraries=['esapp'],
                  language='C++')
    ]
)

@@ -2,22 +2,18 @@
 rom 
-distutils.core
+setuptools
  imp
@@ -77,79 +77,15 @@
 xt%0A%0A
-setup(%0A    cmdclass=%7B'build_ext': build_ext%7D,%0A    ext_modules=%5B%0A       
+esapp =
  Ext
@@ -91,16 +91,21 @@
 tension(
+%0A    
 'esapp',
@@ -105,30 +105,16 @@
 esapp',%0A
-              
     sour
@@ -135,38 +135,24 @@
 sapp.pyx'%5D,%0A
-              
     extra_co
@@ -178,34 +178,53 @@
 ++11'%5D,%0A    
-          
+install_requires=%5B'cython'%5D,%0A
     include_
@@ -243,38 +243,24 @@
 /include'%5D,%0A
-              
     library_
@@ -275,38 +275,24 @@
 ./../lib'%5D,%0A
-              
     librarie
@@ -304,30 +304,16 @@
 sapp'%5D,%0A
-              
     lang
@@ -326,14 +326,80 @@
 C++'
+%0A
 )%0A
-    
+%0Asetup(%0A    cmdclass=%7B'build_ext': build_ext%7D,%0A    ext_modules=%5Besapp
 %5D%0A)%0A

Replace distutils with setuptools