Skip to content

Commit 39d9535

Browse files
committed
[actions] Create minimal distribution
Intended for DVR-Scan.
1 parent f34bd79 commit 39d9535

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
${{ runner.os }}-${{ matrix.python-version }}-
114114
- name: Build a package
115115
# CMake 3.25 regression fix. See https://stackoverflow.com/questions/74162633/problem-compiling-from-source-opencv-with-mvsc2019-in-64-bit-version
116+
# TODO: Check if adding --skip-cmake is necessary.
116117
run: |
117118
python --version
118119
python -m pip install --upgrade pip

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ def main():
185185
"-DWITH_NVCUVID=OFF",
186186
f"-DCUDA_ARCH_BIN={cuda_arch_bin}",
187187
f"-DCUDA_ARCH_PTX={cuda_arch_ptx}",
188-
"-DOPENCV_ENABLE_NONFREE=ON",
188+
"-DOPENCV_ENABLE_NONFREE=OFF",
189189
f"-DCUDNN_LIBRARY={cudnn_library}",
190190
f"-DCUDNN_INCLUDE_DIR={cudnn_include_dir}",
191-
]
191+
"-DBUILD_LIST=bgsegm,cudabgsegm,cudacodec,cudafilters,cudev,imgcodecs,imgproc,python3,text,video,videoio"
192+
]
192193
+ (
193194
# CMake flags for windows/arm64 build
194195
["-DCMAKE_GENERATOR_PLATFORM=ARM64",

0 commit comments

Comments
 (0)