Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use installation.py to install on windows platform
- Loading branch information
1 parent
92bce92
commit f1fbfc9
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
}, | ||
) |