Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit d1889bf

Browse files
committed
win: grab prebuilt dlls from cpp sdk if available.
1 parent 5454bae commit d1889bf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ def run(self):
4646
raise RuntimeError("Could not init git submodule")
4747

4848
if (system == 'Windows'):
49-
if (call(["MSBuild.exe", "MetaWear.Win32.vcxproj", "/p:Platform=%s" % machine, "/p:Configuration=Release"], cwd=cpp_sdk, stderr=STDOUT) != 0):
50-
raise RuntimeError("Failed to compile MetaWear.dll")
49+
if not os.path.exists(os.path.join(dist_dir, "MetaWear.Win32.dll")):
50+
if (call(["MSBuild.exe", "MetaWear.Win32.vcxproj", "/p:Platform=%s" % machine, "/p:Configuration=Release"], cwd=cpp_sdk, stderr=STDOUT) != 0):
51+
raise RuntimeError("Failed to compile MetaWear.dll")
5152

5253
move(os.path.join(dist_dir, "MetaWear.Win32.dll"), dest)
5354
elif (system == 'Linux'):

0 commit comments

Comments
 (0)