You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py.i 1.8 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import sys
  2. from setuptools import setup, find_packages
  3. try:
  4. from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
  5. class bdist_wheel(_bdist_wheel):
  6. def finalize_options(self):
  7. _bdist_wheel.finalize_options(self)
  8. self.root_is_pure = False
  9. except ImportError:
  10. bdist_wheel = None
  11. if sys.version_info < (3, 0):
  12. sys.exit("Sorry, Python < 3.0 is not supported")
  13. requirements = ["numpy", "tqdm", "requests", "portalocker", "opencv-python"]
  14. setup(
  15. name="ncnn",
  16. version="${PACKAGE_VERSION}",
  17. author="nihui",
  18. author_email="nihuini@tencent.com",
  19. maintainer="caishanli",
  20. maintainer_email="caishanli25@gmail.com",
  21. description="ncnn is a high-performance neural network inference framework optimized for the mobile platform",
  22. url="https://github.com/Tencent/ncnn",
  23. classifiers=[
  24. "Programming Language :: C++",
  25. "Programming Language :: Python :: 3",
  26. "Programming Language :: Python :: 3.6",
  27. "Programming Language :: Python :: 3.7",
  28. "Programming Language :: Python :: 3.8",
  29. "Programming Language :: Python :: 3.9",
  30. "Programming Language :: Python :: 3.10",
  31. "Programming Language :: Python :: 3.11",
  32. "Programming Language :: Python :: 3.12",
  33. "Programming Language :: Python :: 3.13",
  34. "License :: OSI Approved :: BSD License",
  35. "Operating System :: OS Independent",
  36. "Topic :: Scientific/Engineering :: Artificial Intelligence",
  37. ],
  38. license="BSD-3",
  39. python_requires=">=3.5",
  40. packages=find_packages(),
  41. package_dir={"": "."},
  42. package_data={"ncnn": ["ncnn${PYTHON_MODULE_PREFIX}${PYTHON_MODULE_EXTENSION}"]},
  43. install_requires=requirements,
  44. cmdclass={"bdist_wheel": bdist_wheel},
  45. )