Skip to content

Commit 2ff5f25

Browse files
committed
fix windows builds
1 parent a115f4b commit 2ff5f25

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def main():
1919
minimum_supported_numpy = "1.13.1"
2020
build_contrib = get_build_env_var_by_name("contrib")
2121
build_headless = get_build_env_var_by_name("headless")
22-
build_java = 'ON' if get_build_env_var_by_name("java") else 'OFF'
22+
build_java = "ON" if get_build_env_var_by_name("java") else "OFF"
2323

2424
if sys.version_info[:2] >= (3, 6):
2525
minimum_supported_numpy = "1.13.3"
@@ -162,7 +162,11 @@ def main():
162162
# OS-specific components during CI builds
163163
if is_CI_build:
164164

165-
if not build_headless and "bdist_wheel" in sys.argv:
165+
if (
166+
not build_headless
167+
and "bdist_wheel" in sys.argv
168+
and (sys.platform == "darwin" or sys.platform.startswith("linux"))
169+
):
166170
cmake_args.append("-DWITH_QT=5")
167171
subprocess.check_call("patch -p1 < patches/patchQtPlugins", shell=True)
168172

0 commit comments

Comments
 (0)