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

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