forked from onnx/onnx-tensorrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (35 loc) · 1.01 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import onnx_tensorrt
from setuptools import setup, find_packages
def no_publish():
blacklist = ['register']
for cmd in blacklist:
if cmd in sys.argv:
raise RuntimeError("Command \"{}\" blacklisted".format(cmd))
REQUIRED_PACKAGES = [
"pycuda",
"numpy",
"onnx"
]
def main():
no_publish()
setup(
name="onnx_tensorrt",
version=onnx_tensorrt.__version__,
description="ONNX-TensorRT - TensorRT backend for running ONNX models",
long_description=open("README.md", "r", encoding="utf-8").read(),
url="https://github.com/onnx/onnx-tensorrt",
author="NVIDIA",
author_email="[email protected]",
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
],
install_requires=REQUIRED_PACKAGES,
packages=find_packages(),
zip_safe=True,
)
if __name__ == '__main__':
main()