File tree 2 files changed +8
-7
lines changed 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ def dist_requires(project_name: str) -> List[str]:
377
377
if app :
378
378
print (json .dumps (app .get_package_info (argv [3 ] if len (argv ) > 3 else "" ), indent = 2 ))
379
379
380
- holoscan_core_init_content_txt = """
380
+ holoscan_init_content_txt = """
381
381
# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
382
382
# SPDX-License-Identifier: Apache-2.0
383
383
#
@@ -432,7 +432,7 @@ def __getattr__(name):
432
432
"""
433
433
434
434
435
- def fix_holoscan_core_import ():
435
+ def fix_holoscan_import ():
436
436
"""Fix holoscan submodule core's __init__ to enable lazy load for avoiding failure on loading low level libs."""
437
437
438
438
holoscan_package_name = "holoscan"
@@ -443,4 +443,4 @@ def fix_holoscan_core_import():
443
443
)
444
444
445
445
with open (holoscan_core_init_path , "w" ) as f_w :
446
- f_w .write (holoscan_core_init_content_txt )
446
+ f_w .write (holoscan_init_content_txt )
Original file line number Diff line number Diff line change @@ -328,14 +328,14 @@ install_python_dev_deps() {
328
328
install_edit_mode
329
329
330
330
# Adding temp fix to address the issue of holoscan sdk dragging in low level dependencies, e.g. libcuda.so
331
- fix_holoscan_core_import
331
+ fix_holoscan_import
332
332
}
333
333
334
- fix_holoscan_core_import () {
334
+ fix_holoscan_import () {
335
335
local holoscan_package_path=$( ${MONAI_PY_EXE} $TOP /monai/deploy/utils/importutil.py dist_module_path holoscan)
336
336
c_echo b " holoscan package core module path : " Z " ${holoscan_package_path} /holoscan/core"
337
- c_echo b " fixing holoscan package core module import..."
338
- ${MONAI_PY_EXE} $TOP /monai/deploy/utils/importutil.py fix_holoscan_core_import
337
+ c_echo b " fixing holoscan package module import..."
338
+ ${MONAI_PY_EXE} $TOP /monai/deploy/utils/importutil.py fix_holoscan_import
339
339
c_echo b " done fixing."
340
340
}
341
341
@@ -409,6 +409,7 @@ clean() {
409
409
if [ -n " ${VIRTUAL_ENV} " ] || [ -n " ${CONDA_PREFIX} " ]; then
410
410
c_echo W " Uninstalling MONAI Deploy App SDK installation..."
411
411
run_command ${MONAI_PY_EXE} -m pip uninstall monai-deploy-app-sdk
412
+ run_command ${MONAI_PY_EXE} -m pip uninstall holoscan
412
413
fi
413
414
414
415
local monai_package_path=$( ${MONAI_PY_EXE} $TOP /monai/deploy/utils/importutil.py dist_module_path monai)
You can’t perform that action at this time.
0 commit comments