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.3 kB

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