setup.py 742 B

1234567891011121314151617181920212223242526272829303132
  1. import os
  2. from subprocess import check_call
  3. from setuptools import setup, find_packages
  4. from setuptools.command.install import install
  5. class PostInstallCommand(install):
  6. """Post-installation for installation mode."""
  7. def run(self):
  8. install.run(self)
  9. # PUT YOUR POST-INSTALL SCRIPT HERE or CALL A FUNCTION
  10. # os.system("python -m spacy download en_core_web_trf")
  11. setup(
  12. name='word_processor',
  13. version='0.0.2',
  14. packages=find_packages(),
  15. url='',
  16. license='',
  17. author='nikatlas',
  18. author_email='[email protected]',
  19. description='Variable name generator',
  20. install_requires=[
  21. 'spacy',
  22. 'nltk',
  23. ],
  24. cmdclass={
  25. 'install': PostInstallCommand,
  26. },
  27. )