JustinLin610 commited on
Commit
35a37ac
1 Parent(s): c5a2a48

update install ezocr

Browse files
Files changed (2) hide show
  1. app.py +1 -3
  2. ezocr/setup.py +10 -13
app.py CHANGED
@@ -2,11 +2,9 @@ import os
2
 
3
  os.system('cd fairseq;'
4
  'pip install --use-feature=in-tree-build ./; cd ..')
5
- os.system('ls -l')
6
 
7
  os.system('cd ezocr;'
8
- 'python setup.py install --user; cd ..')
9
- os.system('ls -l')
10
 
11
  import torch
12
  import numpy as np
 
2
 
3
  os.system('cd fairseq;'
4
  'pip install --use-feature=in-tree-build ./; cd ..')
 
5
 
6
  os.system('cd ezocr;'
7
+ 'pip install .; cd ..')
 
8
 
9
  import torch
10
  import numpy as np
ezocr/setup.py CHANGED
@@ -1,21 +1,18 @@
1
- from io import open
2
- from setuptools import setup
3
 
4
- with open('requirements.txt', encoding="utf-8-sig") as f:
5
  requirements = f.readlines()
6
 
7
  setup(
8
- name='easyocrlite',
9
- packages=['easyocrlite'],
10
- python_requires='>=3.7',
11
  include_package_data=True,
12
- version='0.0.1',
13
  install_requires=requirements,
14
- license='Apache License 2.0',
15
- description='',
16
  long_description="",
17
- keywords=['ocr optical character recognition deep learning neural network'],
18
- classifiers=[
19
- 'Development Status :: 5 - Production/Stable'
20
- ],
21
  )
 
1
+ from setuptools import setup, find_packages
 
2
 
3
+ with open("requirements.txt", encoding="utf-8") as f:
4
  requirements = f.readlines()
5
 
6
  setup(
7
+ name="easyocrlite",
8
+ packages=find_packages(exclude=["pics"]),
9
+ python_requires=">=3.8",
10
  include_package_data=True,
11
+ version="0.0.1",
12
  install_requires=requirements,
13
+ license="Apache License 2.0",
14
+ description="",
15
  long_description="",
16
+ keywords=["ocr optical character recognition deep learning neural network"],
17
+ classifiers=["Development Status :: 5 - Production/Stable"],
 
 
18
  )