-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
63 lines (54 loc) · 2.13 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from io import open
from os import path, system
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
with open("requirements.txt", "r", encoding='utf-8') as fh:
requires = fh.read().splitlines()
# builing doc
system(r"pdoc --html --output-dir doc .\recognition\ocr")
system(r"pdoc --html --output-dir doc .\recognition\recognizer.py .\recognition\get_models.py")
system(r"pdoc --html --output-dir doc .\recognition\utils\recognizer_utils.py")
setup(
name="recognition", # Replace with your own username
version="0.0.2",
author="Mustafa Selçuk Çağlar",
author_email="selcukcaglar08@gmail.com",
description="Handwritten text recognition using mxnet",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/develooper1994/handwritten-text-recognition",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache License",
"Operating System :: OS Independent",
"Topic :: Artificial Intelligence",
"Development Status :: 2 - PreAlpha"
"Programing Language :: Python"
"Intended Audience :: Science/Research",
"Natural Language :: English",
],
python_requires='>=3.7',
keywords='htr handwritten recognition',
project_urls={ # Optional
'Bug Reports': 'https://github.com/develooper1994/handwritten-text-recognition/issues',
'Funding': '',
'Say Thanks!': '',
'Source': 'https://github.com/develooper1994/handwritten-text-recognition',
},
install_requires=requires,
include_package_data=True
)
def set_SCTK():
system("git clone https://github.com/usnistgov/SCTK")
system("cd SCTK")
system("""export CXXFLAGS="-std=c++11" && make config""")
system("make all")
system("make check")
system("make install")
system("make doc")
system("cd -")
print("Please install SCTK tools from https://github.com/usnistgov/SCTK to get qualitative result")
# set_SCTK()