old_contents: from distutils.core import setup
  from distutils.extension import Extension
  
  import versioneer
  from Cython.Build import cythonize
  
  ext = Extension(name="chdfs",
                  sources=["libhdfs3py/chdfs.pyx"],
                  include_dirs=["/usr/local/include/hdfs"],
                  library_dirs=["/usr/local/lib/"],
                  libraries=["hdfs3"],
                  )
  
  setup(
      name="libhdfs3",
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      ext_modules=cythonize(ext),
  )
  
new_contents: from distutils.core import setup
  from setuptools import find_packages
  from distutils.extension import Extension
  
  import versioneer
  
  ext_modules = [
      Extension(name="libhdfs3py.chdfs",
                sources=["libhdfs3py/chdfs.c"],
                include_dirs=["/usr/local/include/hdfs"],
                library_dirs=["/usr/local/lib/"],
                libraries=["hdfs3"],
              )
  ]
  
  cmdclass = versioneer.get_cmdclass()
  
  setup(
      name="libhdfs3",
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      license='Apache License Version 2.0, January 2004',
      packages=find_packages(),
      ext_modules=ext_modules,
  )
  
subject: Add setup.py extension