File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ echo $ENABLE_CONTRIB > contrib.enabled
1515echo $ENABLE_HEADLESS > headless.enabled
1616set -x
1717build_wheel $REPO_DIR $PLAT
18+ rm wheelhouse/numpy*
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ def main():
151151 "-DBUILD_PERF_TESTS=OFF" ,
152152 "-DBUILD_DOCS=OFF" ,
153153 ]
154+ + (
155+ # If it is not defined 'linker flags: /machine:X86' on Windows x64
156+ ["-DCMAKE_GENERATOR_PLATFORM=x64" ]
157+ if x64 and sys .platform == "win32"
158+ else []
159+ )
154160 + (
155161 ["-DOPENCV_EXTRA_MODULES_PATH=" + os .path .abspath ("opencv_contrib/modules" )]
156162 if build_contrib
Original file line number Diff line number Diff line change @@ -92,6 +92,15 @@ function pre_build {
9292 echo " Starting pre-build"
9393 set -e -o pipefail
9494
95+ if [ -n " $IS_OSX " ]; then
96+ brew install lapack
97+ else
98+ # epel-release need for aarch64 to get openblas packages
99+ yum install -y lapack-devel epel-release && yum install -y openblas-devel
100+ cp /usr/include/lapacke/lapacke* .h /usr/include/
101+ curl https://raw.githubusercontent.com/xianyi/OpenBLAS/v0.3.3/cblas.h -o /usr/include/cblas.h
102+ fi
103+
95104 if [ -n " $IS_OSX " ]; then
96105 echo " Running for OSX"
97106
You can’t perform that action at this time.
0 commit comments