mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-22 00:43:53 +08:00
0ca5a4b6d5
* add ubuntu 26.04 and vs2026 release packages * add python 3.15 riscv64 release wheels * make opencv optional and experiment with mobile python wheels
56 lines
1.9 KiB
OpenEdge ABL
56 lines
1.9 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"]
|
|
|
|
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",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: 3.14",
|
|
"Programming Language :: Python :: 3.15",
|
|
"License :: OSI Approved :: BSD License",
|
|
"Operating System :: OS Independent",
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
],
|
|
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,
|
|
extras_require={"opencv": ["opencv-python"]},
|
|
cmdclass={"bdist_wheel": bdist_wheel},
|
|
)
|