old_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  from distutils.core import setup, Extension
  
  
  # from Michael Hoffman's http://www.ebi.ac.uk/~hoffman/software/sunflower/
  
  class NumpyExtension(Extension):
  
      def __init__(self, *args, **kwargs):
          Extension.__init__(self, *args, **kwargs)
  
          self._include_dirs = self.include_dirs
          del self.include_dirs  # restore overwritten property
  
      # warning: Extension is a classic class so it's not really read-only
  
      @property
      def include_dirs(self):
          from numpy import get_include
  
          return self._include_dirs + [get_include()]
  
  
  setup(
      name='Dedupe',
      url='https://github.com/open-city/dedupe',
      version='0.3',
      packages=['dedupe', 'dedupe.clustering'],
      ext_modules=[Extension('dedupe.affinegap', ['src/affinegap.c']),
                   NumpyExtension('dedupe.lr', sources=['src/lr.c'])],
      license='The MIT License: http://www.opensource.org/licenses/mit-license.php'
          ,
      install_requires=['numpy', 'fastcluster', 'hcluster', 'networkx'],
      long_description=open('README.md').read(),
      )
  
new_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  from distutils.core import setup, Extension
  
  
  # from Michael Hoffman's http://www.ebi.ac.uk/~hoffman/software/sunflower/
  
  class NumpyExtension(Extension):
  
      def __init__(self, *args, **kwargs):
          Extension.__init__(self, *args, **kwargs)
  
          self._include_dirs = self.include_dirs
          del self.include_dirs  # restore overwritten property
  
      # warning: Extension is a classic class so it's not really read-only
  
      @property
      def include_dirs(self):
          from numpy import get_include
  
          return self._include_dirs + [get_include()]
  
  
  setup(
      name='Dedupe',
      url='https://github.com/open-city/dedupe',
      version='0.3',
      packages=['dedupe'],
      ext_modules=[Extension('dedupe.affinegap', ['src/affinegap.c']),
                   NumpyExtension('dedupe.lr', sources=['src/lr.c'])],
      license='The MIT License: http://www.opensource.org/licenses/mit-license.php'
          ,
      install_requires=['numpy', 'fastcluster', 'hcluster', 'networkx'],
      long_description=open('README.md').read(),
      )
  
subject: Remove dedupe.clustering as package