File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,8 @@ def main():
148148 # https://github.com/skvark/opencv-python/issues/21
149149 cmake_args .append ("-DCMAKE_CXX_FLAGS=-stdlib=libc++" )
150150 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 )
152153
153154 if sys .platform .startswith ('linux' ):
154155 cmake_args .append ("-DWITH_IPP=OFF" ) # tests fail with IPP compiled with
@@ -157,7 +158,8 @@ def main():
157158 if sys .platform .startswith ('linux' ) and not x64 :
158159 cmake_args .append ("-DCMAKE_CXX_FLAGS=-U__STRICT_ANSI__" )
159160 # 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 )
161163
162164
163165 if 'CMAKE_ARGS' in os .environ :
You can’t perform that action at this time.
0 commit comments