Skip to content

Commit 43adb25

Browse files
committed
fix regression
1 parent fead8df commit 43adb25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ def main():
154154
cmake_args.append("-DWITH_LAPACK=ON")
155155
cmake_args.append("-DENABLE_PRECOMPILED_HEADERS=OFF")
156156

157-
if sys.platform.startswith("linux") and not x64:
157+
if sys.platform.startswith("linux") and not x64 and "bdist_wheel" in sys.argv:
158158
subprocess.check_call("patch -p0 < patches/patchOpenEXR", shell=True)
159159

160-
if sys.platform == "darwin":
160+
if sys.platform == "darwin" and "bdist_wheel" in sys.argv:
161161
subprocess.check_call("patch -p1 < patches/patchQtPlugins", shell=True)
162162

163163
# works via side effect

0 commit comments

Comments
 (0)