from setuptools import setup
from setuptools.command.install import install
import os

class MyInstall(install):
    def run(self):
        install.run(self)
        path = os.getcwd().replace(" ", "\ ").replace("(","\(").replace(")","\)") + "/bin/"
        os.system("chmod +x "+path+"startup.sh")
        os.system("sh "+path+"startup.sh")

setup(name='TzaraIPA',
      version='0.1',
      description='A Virtual Personal Assistant',
      url='https://github.com/Suman7495/Tzara---A-Personal-Assistant',
      author='Suman Pal',
      author_email='suman7495@gmail.com',
      license='MIT',
      packages=['tzara'],
      scripts=['bin/startup.sh'],
      cmdclass={'install': MyInstall},
     )
