From 3cea38bff7bf0986337ef0fbf979f2afda42b9fc Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Tue, 19 Nov 2019 08:34:56 -0800 Subject: [PATCH] restrict msbuild to win32 platform (#1172) --- bindings/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 029b6dfb..aa01fe12 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -145,7 +145,7 @@ def build_libraries(): else: has_msbuild = True - if has_msbuild: + if has_msbuild and SYSTEM == 'win32': plat = 'Win32' if platform.architecture()[0] == '32bit' else 'x64' conf = 'Debug' if os.getenv('DEBUG', '') else 'Release' subprocess.call(['msbuild', '-m', '-p:Platform=' + plat, '-p:Configuration=' + conf], cwd=os.path.join(BUILD_DIR, 'msvc'))