commit f1fbfc9dd3bea8330839d37393c6ed99517b1ff3 Author: Vaydheesh Date: Fri Apr 5 16:37:57 2019 +0530 Use installation.py to install on windows platform diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..28fd4e7 --- /dev/null +++ b/setup.py @@ -0,0 +1,37 @@ +from setuptools import setup +from setuptools.command.install import install +from atexit import register +import installation + + +class PostInstallCommand(install): + def __init__(self, *args, **kwargs): + super(PostInstallCommand, self).__init__(*args, **kwargs) + register(self._post_install) + + @staticmethod + def _post_install(): + installation.main() + + +setup( + name='apertium-python', + # version='', + packages=['tests', 'apertium', 'apertium.analysis', + 'apertium.generation', 'apertium.translation'], + url='https://github.com/apertium/apertium-python', + license='GNU General Public License v3.0 ', + # author='', + # author_email='', + # description='', + long_description=open('README.md').read(), + install_requires=[ + 'apertium-streamparser==5.0.2', + ], + setup_requires=[ + 'urllib3>=1.24.1', + ], + cmdclass={ + 'install': PostInstallCommand, + }, +)