Skip to content

Commit 4749dea

Browse files
committed
update build.py
1 parent ca261c7 commit 4749dea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/build.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
import shutil
44
from pathlib import Path
55
from argparse import ArgumentParser, Namespace
6-
76
import tarfile
87

9-
import pyldd
10-
118

129
LIB_NAME = "opencv_dart"
1310

@@ -115,6 +112,7 @@ def cmake_build(args: Namespace):
115112
cmd = f"cmake --build . -j {os.cpu_count()*2} --target install --config Release"
116113
os.system(cmd)
117114

115+
118116
def copy_dlls(args, install_dir, lib_name_suffix, lib_copy_to_dir):
119117
lib_name_prefix: str = "lib" if args.os == "windows" else ""
120118
if args.copy_dlls:
@@ -151,6 +149,7 @@ def copy_dlls(args, install_dir, lib_name_suffix, lib_copy_to_dir):
151149
shutil.copyfile(dep["path"], dst)
152150
print(f"{dep['path']} -> {dst}")
153151

152+
154153
def main(args: Namespace):
155154
args.src = Path(args.src).absolute()
156155
if args.opencv:

0 commit comments

Comments
 (0)