old_contents: 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++')
      ]
  )
  
new_contents: from setuptools import setup, Extension
  from Cython.Distutils import build_ext
  
  esapp = Extension(
      'esapp',
      sources=['cython/esapp.pyx'],
      extra_compile_args=['-std=c++11'],
      install_requires=['cython'],
      include_dirs=['../../include'],
      library_dirs=['../../lib'],
      libraries=['esapp'],
      language='C++'
  )
  
  setup(
      cmdclass={'build_ext': build_ext},
      ext_modules=[esapp]
  )
  
subject: Replace distutils with setuptools