forked from shouxieai/tensorRT_Pro
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (40 loc) · 1.04 KB
/
setup.py
File metadata and controls
44 lines (40 loc) · 1.04 KB
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
42
43
44
from setuptools import find_packages
from setuptools import setup
import platform
import os
os_name = platform.system()
if os_name == "Linux":
cpp_library = ["libtrtpyc.so"]
elif os_name == "Windows":
os.system("copy_dll_to_trtpy.bat")
cpp_library = [
"libtrtpyc.pyd",
"cublas64_10.dll",
"cublas64_100.dll",
"cublasLt64_10.dll",
"cudart64_101.dll",
"cudnn64_8.dll",
"cudnn_adv_infer64_8.dll",
"cudnn_adv_train64_8.dll",
"cudnn_cnn_infer64_8.dll",
"cudnn_cnn_train64_8.dll",
"cudnn_ops_infer64_8.dll",
"cudnn_ops_train64_8.dll",
"nvinfer.dll",
"nvinfer_plugin.dll",
"opencv_world346.dll"
]
else:
raise RuntimeError(f"Unsupport platform {os_name}")
setup(
name="trtpy",
version="1.0",
author="Wish",
url="https://github.com/shouxieai/tensorRT_cpp",
description="tensorRT CPP/Python",
packages=find_packages(),
package_data={
"": cpp_library
},
zip_safe=False
)