old_contents: # Licensed under a 3-clause BSD style license - see LICENSE.rst
  import sys
  from setuptools import setup, Extension
  
  import platform
  # Special case here to allow `python setup.py --version` to run without
  # requiring cython and numpy to be installed.
  if '--version' in sys.argv[1:]:
      cythonize = lambda arg: None
  else:
      from Cython.Build import cythonize
  
  os_name = platform.system()
  if (os_name == "Windows"):
      compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE']
  else:
      compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-default',
                      '-Wno-deprecated', '-Wno-parentheses']
  if os_name == 'Darwin':
      compile_args += ['-stdlib=libc++']
  
  extensions = [Extension("Chandra.Time._axTime3", ["Chandra/Time/_axTime3.pyx"],
                          extra_compile_args=compile_args)]
  
  try:
      from testr.setup_helper import cmdclass
  except ImportError:
      cmdclass = {}
  
  setup(name='Chandra.Time',
        author='Tom Aldcroft',
        description='Convert between various time formats relevant to Chandra',
        author_email='taldcroft@cfa.harvard.edu',
        use_scm_version=True,
        setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
        zip_safe=False,
        packages=['Chandra', 'Chandra.Time', 'Chandra.Time.tests'],
        ext_modules=cythonize(extensions),
        tests_require=['pytest'],
        cmdclass=cmdclass,
        )
  
new_contents: # Licensed under a 3-clause BSD style license - see LICENSE.rst
  import sys
  from setuptools import setup, Extension
  
  import platform
  # Special case here to allow `python setup.py --version` to run without
  # requiring cython and numpy to be installed.
  if '--version' in sys.argv[1:]:
      cythonize = lambda arg: None  # noqa
  else:
      from Cython.Build import cythonize
  
  os_name = platform.system()
  if (os_name == "Windows"):
      compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE']
  else:
      compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-default',
                      '-Wno-deprecated', '-Wno-parentheses']
  if os_name == 'Darwin':
      compile_args += ['-stdlib=libc++']
  
  extensions = [Extension("Chandra.Time._axTime3", ["Chandra/Time/_axTime3.pyx"],
                          extra_compile_args=compile_args)]
  
  try:
      from testr.setup_helper import cmdclass
  except ImportError:
      cmdclass = {}
  
  setup(name='Chandra.Time',
        author='Tom Aldcroft',
        description='Convert between various time formats relevant to Chandra',
        author_email='taldcroft@cfa.harvard.edu',
        use_scm_version=True,
        setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
        zip_safe=False,
        packages=['Chandra', 'Chandra.Time', 'Chandra.Time.tests'],
        ext_modules=cythonize(extensions),
        tests_require=['pytest'],
        cmdclass=cmdclass,
        )
  
subject: Allow lambda expression in setup.py