forked from Tencent/ncnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py.i
48 lines (41 loc) · 1.53 KB
/
setup.py.i
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
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="[email protected]",
maintainer="caishanli",
maintainer_email="[email protected]",
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},
)