718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
49 lines
1.5 KiB
OpenEdge ABL
49 lines
1.5 KiB
OpenEdge ABL
import sys
|
|
from setuptools import setup, find_packages
|
|
|
|
try:
|
|
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
|
|
|
|
class bdist_wheel(_bdist_wheel):
|
|
def finalize_options(self):
|
|
_bdist_wheel.finalize_options(self)
|
|
self.root_is_pure = False
|
|
|
|
|
|
except ImportError:
|
|
bdist_wheel = None
|
|
|
|
if sys.version_info < (3, 0):
|
|
sys.exit("Sorry, Python < 3.0 is not supported")
|
|
|
|
requirements = ["numpy", "tqdm", "requests", "portalocker", "opencv-python"]
|
|
|
|
setup(
|
|
name="ncnn",
|
|
version="${PACKAGE_VERSION}",
|
|
author="nihui",
|
|
author_email="nihuini@tencent.com",
|
|
maintainer="caishanli",
|
|
maintainer_email="caishanli25@gmail.com",
|
|
description="ncnn is a high-performance neural network inference framework optimized for the mobile platform",
|
|
url="https://github.com/Tencent/ncnn",
|
|
classifiers=[
|
|
"Programming Language :: C++",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.6",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"License :: OSI Approved :: BSD License",
|
|
"Operating System :: OS Independent",
|
|
],
|
|
license="BSD-3",
|
|
python_requires=">=3.5",
|
|
packages=find_packages(),
|
|
package_dir={"": "."},
|
|
package_data={"ncnn": ["ncnn${PYTHON_MODULE_PREFIX}${PYTHON_MODULE_EXTENSION}"]},
|
|
install_requires=requirements,
|
|
cmdclass={"bdist_wheel": bdist_wheel},
|
|
)
|