old_contents: #!/usr/bin/env python
  
  import re
  import sys
  
  from setuptools import setup, find_packages
  from Cython.Build import cythonize
  
  def version():
      with open('naminggamesal/_version.py') as f:
          return re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read()).group(1)
  
  def requirements():
    with open('requirements.txt') as f:
      return f.readlines()
  
  setup(name='naminggamesal',
        version=version(),
        packages=find_packages(),
        install_requires=[requirements()],
        setup_requires=['cython', ],
        author='William Schueller',
        author_email='william.schueller@gmail.com',
        description='Using Active Learning in Naming Games',
        url='https://github.com/flowersteam/naminggamesal',
        license='GNU AFFERO GENERAL PUBLIC LICENSE Version 3',
        ext_modules = cythonize(['naminggamesal/cngmeth.pyx','naminggamesal/ngvoc/c2dictdict.pyx']),
        )
  
new_contents: #!/usr/bin/env python
  
  import re
  import sys
  
  from setuptools import setup, find_packages
  try:
      from Cython.Build import cythonize
  except ImportError:
      import pip
      pip.main(['install', 'Cython'])
      from Cython.Build import cythonize
  
  def version():
      with open('naminggamesal/_version.py') as f:
          return re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read()).group(1)
  
  def requirements():
      with open('requirements.txt') as f:
          return f.readlines()
  
  setup(name='naminggamesal',
        version=version(),
        packages=find_packages(),
        install_requires=[requirements()],
        setup_requires=['cython', ],
        author='William Schueller',
        author_email='william.schueller@gmail.com',
        description='Using Active Learning in Naming Games',
        url='https://github.com/flowersteam/naminggamesal',
        license='GNU AFFERO GENERAL PUBLIC LICENSE Version 3',
        ext_modules = cythonize(['naminggamesal/cngmeth.pyx','naminggamesal/ngvoc/c2dictdict.pyx']),
        )
  
subject: test cython deployment