-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
33 lines (30 loc) · 915 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
cwd = os.path.dirname(os.path.abspath(__file__))
with open('requirements.txt') as f:
reqs = f.read().splitlines()
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
os.system('python -m unidic download')
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
develop.run(self)
os.system('python -m unidic download')
setup(
name='hanasu',
version='1.0.0',
packages=find_packages(),
include_package_data=True,
install_requires=reqs,
package_data={'': ['*.txt', 'cmudict_*']},
entry_points={
"console_scripts": [
"hanasu = hanasu.main:main",
],
},
)