mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00
Fix openvino python lib error in windows (#207)
* Fix openvino lib import error in linux * Fix windows legal file * Revert "Fix windows legal file" This reverts commit1b6f6d798b
. * Revert "Fix openvino lib import error in linux" This reverts commitfc5794eff8
. * Fix windows legal file
This commit is contained in:
@@ -121,8 +121,18 @@ def process_libraries(current_dir):
|
|||||||
package_data = list()
|
package_data = list()
|
||||||
|
|
||||||
if platform.system().lower() == "windows":
|
if platform.system().lower() == "windows":
|
||||||
|
|
||||||
|
def check_windows_legal_file(f):
|
||||||
|
# Note(zhoushunjie): Special case for some library
|
||||||
|
# File 'plugins.xml' is special case of openvino.
|
||||||
|
for special_file in ['plugins.xml']:
|
||||||
|
if special_file in f:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
for f in all_files:
|
for f in all_files:
|
||||||
if f.endswith(".pyd") or f.endswith("lib") or f.endswith("dll"):
|
if f.endswith(".pyd") or f.endswith("lib") or f.endswith(
|
||||||
|
"dll") or check_windows_legal_file(f):
|
||||||
package_data.append(
|
package_data.append(
|
||||||
os.path.relpath(f, os.path.join(current_dir,
|
os.path.relpath(f, os.path.join(current_dir,
|
||||||
"fastdeploy")))
|
"fastdeploy")))
|
||||||
|
Reference in New Issue
Block a user