File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,8 @@ def main():
148
148
# https://github.com/skvark/opencv-python/issues/21
149
149
cmake_args .append ("-DCMAKE_CXX_FLAGS=-stdlib=libc++" )
150
150
cmake_args .append ("-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9" )
151
- subprocess .check_call ("patch -p1 < patches/patchQtPlugins" , shell = True )
151
+ if "bdist_wheel" in sys .argv :
152
+ subprocess .check_call ("patch -p1 < patches/patchQtPlugins" , shell = True )
152
153
153
154
if sys .platform .startswith ('linux' ):
154
155
cmake_args .append ("-DWITH_IPP=OFF" ) # tests fail with IPP compiled with
@@ -157,7 +158,8 @@ def main():
157
158
if sys .platform .startswith ('linux' ) and not x64 :
158
159
cmake_args .append ("-DCMAKE_CXX_FLAGS=-U__STRICT_ANSI__" )
159
160
# patch openEXR when building on i386, see: https://github.com/openexr/openexr/issues/128
160
- subprocess .check_call ("patch -p0 < patches/patchOpenEXR" , shell = True )
161
+ if "bdist_wheel" in sys .argv :
162
+ subprocess .check_call ("patch -p0 < patches/patchOpenEXR" , shell = True )
161
163
162
164
163
165
if 'CMAKE_ARGS' in os .environ :
You can’t perform that action at this time.
0 commit comments