old_contents: #!/usr/bin/env python
  import os
  import sys
  from setuptools import setup
  
  if "publish" in sys.argv[-1]:
      os.system("python setup.py sdist upload")
      sys.exit()
  
  # Load the __version__ variable without importing the package already
  exec(open('pyke/version.py').read())
  
  entry_points = {'console_scripts': [
          'kepmask = pyke.kepmask:kepmask_main',
          'kepprf = pyke.kepprf:kepprf_main',
          'kepfold = pyke.kepfold:kepfold_main',
          'kepclip = pyke.kepclip:kepclip_main',
          'kepsmooth = pyke.kepsmooth:kepsmooth_main',
          'kepflatten = pyke.kepflatten:kepflatten_main',
          'kepbls = pyke.kepbls:kepbls_main',
          'kepdynamic = pyke.kepdynamic:kepdynamic_main',
          'kepstddev = pyke.kepstddev:kepstddev_main',
          'kepwindow = pyke.kepwindow:kepwindow_main',
          'keptrim = pyke.keptrim:keptrim_main'
  ]}
  
  setup(name='pyke',
        version=__version__,
        description="A backwards-incompatible, python3 compatible, pyraf-free "
                    "version of PyKE: a suite of tools to analyze Kepler/K2 "
                    "data",
        long_description=open('README.md').read(),
        author='KeplerGO',
        author_email='keplergo@mail.arc.nasa.gov',
        license='MIT',
        packages=['pyke'],
        install_requires=['numpy>=1.11', 'astropy>=1.3', 'scipy>=0.17.0',
                          'matplotlib>=1.5.3', 'tqdm'],
        entry_points=entry_points,
        include_package_data=True,
        classifiers=[
            "Development Status :: 5 - Production/Stable",
            "License :: OSI Approved :: MIT License",
            "Operating System :: OS Independent",
            "Programming Language :: Python",
            "Intended Audience :: Science/Research",
            "Topic :: Scientific/Engineering :: Astronomy",
            ],
      )
  
new_contents: #!/usr/bin/env python
  import os
  import sys
  from setuptools import setup
  
  if "publish" in sys.argv[-1]:
      os.system("python setup.py sdist upload")
      sys.exit()
  
  # Load the __version__ variable without importing the package already
  exec(open('pyke/version.py').read())
  
  entry_points = {'console_scripts': [
          'kepmask = pyke.kepmask:kepmask_main',
          'kepprf = pyke.kepprf:kepprf_main',
          'kepfold = pyke.kepfold:kepfold_main',
          'kepclip = pyke.kepclip:kepclip_main',
          'kepsmooth = pyke.kepsmooth:kepsmooth_main',
          'kepflatten = pyke.kepflatten:kepflatten_main',
          'kepbls = pyke.kepbls:kepbls_main',
          'kepdynamic = pyke.kepdynamic:kepdynamic_main',
          'kepstddev = pyke.kepstddev:kepstddev_main',
          'kepwindow = pyke.kepwindow:kepwindow_main',
          'keptrim = pyke.keptrim:keptrim_main',
          'keppca = pyke.keppca:keppca_main'
  ]}
  
  setup(name='pyke',
        version=__version__,
        description="A backwards-incompatible, python3 compatible, pyraf-free "
                    "version of PyKE: a suite of tools to analyze Kepler/K2 "
                    "data",
        long_description=open('README.md').read(),
        author='KeplerGO',
        author_email='keplergo@mail.arc.nasa.gov',
        license='MIT',
        packages=['pyke'],
        install_requires=['numpy>=1.11', 'astropy>=1.3', 'scipy>=0.17.0',
                          'matplotlib>=1.5.3', 'tqdm'],
        entry_points=entry_points,
        include_package_data=True,
        classifiers=[
            "Development Status :: 5 - Production/Stable",
            "License :: OSI Approved :: MIT License",
            "Operating System :: OS Independent",
            "Programming Language :: Python",
            "Intended Audience :: Science/Research",
            "Topic :: Scientific/Engineering :: Astronomy",
            ],
      )
  
subject: add keppca cmdline tool