old_contents: # -*- coding: utf-8 -*-
  import os
  from setuptools import setup, find_packages
  from setuptools.command.install import install
  
  
  class CustomInstall(install):
      """
      Include reveal.js installation process
      """
      def run(self):
          install.run(self)
          # calling reveal installation
          os.system('flaskreveal installreveal')
  
  
  setup(
      name='flask-reveal',
      version='0.1.dev0',
      url='https://github.com/humrochagf/flask-reveal',
      license='MIT',
      author='Humberto Rocha Gonçalves Filho',
      author_email='humrochagf@gmail.com',
      description='Make reveal.js presentations with Flask',
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      install_requires=[
          'Flask>=0.10',
          'docopt>=0.6',
      ],
      entry_points=dict(console_scripts=['flaskreveal=flask_reveal.manager:run']),
      cmdclass=dict(install=CustomInstall),
      platforms='any',
      keywords=['flask', 'reveal.js', 'presentation'],
      classifiers=[
          'Environment :: Console',
          'Environment :: Web Environment',
          'Framework :: Flask',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Natural Language :: English',
          'Programming Language :: Python :: 3',
          'Topic :: Multimedia :: Graphics :: Presentation',
          'Topic :: Text Processing :: Markup :: HTML',
      ]
  )
  
  
new_contents: # -*- coding: utf-8 -*-
  from subprocess import call
  from setuptools import setup, find_packages
  from setuptools.command.install import install
  
  
  class CustomInstall(install):
      """
      Include reveal.js installation process
      """
      def run(self):
          install.run(self)
          # calling reveal installation
          call(['flaskreveal', 'installreveal'], cwd=self.install_scripts)
  
  
  setup(
      name='flask-reveal',
      version='0.1.dev0',
      url='https://github.com/humrochagf/flask-reveal',
      license='MIT',
      author='Humberto Rocha Gonçalves Filho',
      author_email='humrochagf@gmail.com',
      description='Make reveal.js presentations with Flask',
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      install_requires=[
          'Flask>=0.10',
          'docopt>=0.6',
      ],
      entry_points=dict(console_scripts=['flaskreveal=flask_reveal.manager:run']),
      cmdclass=dict(install=CustomInstall),
      platforms='any',
      keywords=['flask', 'reveal.js', 'presentation'],
      classifiers=[
          'Environment :: Console',
          'Environment :: Web Environment',
          'Framework :: Flask',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Natural Language :: English',
          'Programming Language :: Python :: 3',
          'Topic :: Multimedia :: Graphics :: Presentation',
          'Topic :: Text Processing :: Markup :: HTML',
      ]
  )
  
  
subject: fix post-install call to right instance of flask-reveal script