mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-19 23:03:17 +08:00
bf845a6fe3
* add python * check elempack when convert ncnn.Mat to numpy.ndarray fix build with NCNN_STRING=OFF
24 lines
554 B
OpenEdge ABL
24 lines
554 B
OpenEdge ABL
from setuptools import setup, find_packages
|
|
|
|
import sys
|
|
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}',
|
|
url = 'https://github.com/Tencent/ncnn',
|
|
packages = find_packages(),
|
|
package_dir = {'': '.'},
|
|
package_data = {'ncnn': ['ncnn${PYTHON_MODULE_PREFIX}${PYTHON_MODULE_EXTENSION}']},
|
|
install_requires = requirements
|
|
)
|