-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (48 loc) · 1.85 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
# from setup_reqs import use_setuptools
# use_setuptools()
import os, subprocess
from setuptools import setup, find_packages
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def clone_repo():
process = subprocess.Popen(['git', 'clone', 'https://bitbucket.org/khansari/lasahandwritingdataset.git', 'pyLasaDataset/resources/LASAHandwritingDataset'],
stdout=subprocess.PIPE,
universal_newlines=True)
while True:
output = process.stdout.readline()
print(output.strip())
return_code = process.poll()
if return_code is not None:
print('RETURN CODE', return_code)
# Process has finished, read rest of the output
for output in process.stdout.readlines():
print(output.strip())
break
clone_repo()
setup(
name = "pyLasaDataset",
version = "0.1.1",
author = "Saif Sidhik",
author_email = "[email protected]",
description = ("LASA Handwriting dataset loader and other tools for Python."),
long_description_content_type="text/markdown",
long_description=read("README.md"),
license = "Public Domain",
keywords = "handwriting dataset, python",
url = "https://github.com/justagist/pyLasaDataset",
project_urls = {
"Bug Tracker": "https://github.com/justagist/pylasadataset/issues",
"Documentation": "https://github.com/justagist/pyLasaDataset/blob/master/README.md",
"Source Code": "https://github.com/justagist/pylasadataset",
},
classifiers=[
"License :: Public Domain",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=find_packages(),
install_requires=[
'scipy', 'numpy', 'matplotlib'
],
include_package_data=True,
)