forked from extern/easydiffusion
Use nvidia pypi index url for linux
This commit is contained in:
parent
14679586a8
commit
1e2c9ecb41
@ -11,7 +11,11 @@ from easydiffusion import app
|
|||||||
|
|
||||||
manifest = {
|
manifest = {
|
||||||
"tensorrt": {
|
"tensorrt": {
|
||||||
"install": ["nvidia-cudnn", "tensorrt-libs", "tensorrt"],
|
"install": [
|
||||||
|
"nvidia-cudnn --extra-index-url=https://pypi.ngc.nvidia.com --trusted-host pypi.ngc.nvidia.com",
|
||||||
|
"tensorrt-libs --extra-index-url=https://pypi.ngc.nvidia.com --trusted-host pypi.ngc.nvidia.com",
|
||||||
|
"tensorrt --extra-index-url=https://pypi.ngc.nvidia.com --trusted-host pypi.ngc.nvidia.com",
|
||||||
|
],
|
||||||
"uninstall": ["tensorrt"],
|
"uninstall": ["tensorrt"],
|
||||||
# TODO also uninstall tensorrt-libs and nvidia-cudnn, but do it upon restarting (avoid 'file in use' error)
|
# TODO also uninstall tensorrt-libs and nvidia-cudnn, but do it upon restarting (avoid 'file in use' error)
|
||||||
}
|
}
|
||||||
@ -29,6 +33,7 @@ if platform.system() == "Windows":
|
|||||||
|
|
||||||
wheels = []
|
wheels = []
|
||||||
for p in packages:
|
for p in packages:
|
||||||
|
p = p.split(" ")[0]
|
||||||
f = next((f for f in files if f.startswith(p) and f.endswith((".whl", ".tar.gz"))), None)
|
f = next((f for f in files if f.startswith(p) and f.endswith((".whl", ".tar.gz"))), None)
|
||||||
if f:
|
if f:
|
||||||
wheels.append(os.path.join(trt_dir, f))
|
wheels.append(os.path.join(trt_dir, f))
|
||||||
|
Loading…
Reference in New Issue
Block a user