Skip to content

Commit

Permalink
Fix openvino python lib error in windows (#207)
Browse files Browse the repository at this point in the history
* Fix openvino lib import error in linux

* Fix windows legal file

* Revert "Fix windows legal file"

This reverts commit 1b6f6d7.

* Revert "Fix openvino lib import error in linux"

This reverts commit fc5794e.

* Fix windows legal file
  • Loading branch information
joey12300 authored Sep 8, 2022
1 parent 46a0b62 commit eee5eda
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build_scripts/process_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,18 @@ def process_libraries(current_dir):
package_data = list()

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:
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(
os.path.relpath(f, os.path.join(current_dir,
"fastdeploy")))
Expand Down

0 comments on commit eee5eda

Please sign in to comment.