Skip to content

Commit 986badc

Browse files
committed
[actions] Log build versions before producing package and remove unnecessary logs
1 parent 9273da5 commit 986badc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def main():
8686
build_contrib, build_headless, build_rolling, cuda_arch_bin, cuda_arch_ptx
8787
)
8888

89+
print(f"package_version={package_version} build_contrib={build_contrib}, build_headless={build_headless}, build_rolling={build_rolling}, cuda_arch_bin={cuda_arch_bin}, cuda_arch_ptx={cuda_arch_ptx}")
90+
8991
# https://stackoverflow.com/questions/1405913/python-32bit-or-64bit-mode
9092
is64 = sys.maxsize > 2 ** 32
9193

@@ -194,6 +196,7 @@ def main():
194196
"-DPYTHON3_LIMITED_API=ON",
195197
"-DBUILD_OPENEXR=ON",
196198
"-DWITH_CUDA=ON",
199+
# TODO(@Breakthrough): Download and install the required dependencies to enable this in build_wheels_windows.yml.
197200
"-DWITH_NVCUVID=OFF",
198201
f"-DCUDA_ARCH_BIN={cuda_arch_bin}",
199202
f"-DCUDA_ARCH_PTX={cuda_arch_ptx}",
@@ -319,8 +322,6 @@ def main():
319322
cmake_source_dir=cmake_source_dir,
320323
)
321324

322-
print("OpenCV is raising funds to keep the library free for everyone, and we need the support of the entire community to do it. Donate to OpenCV on GitHub:\nhttps://github.com/sponsors/opencv\n")
323-
324325
class RearrangeCMakeOutput:
325326
"""
326327
Patch SKBuild logic to only take files related to the Python package
@@ -502,6 +503,7 @@ def _classify_installed_files_override(
502503

503504

504505
def generate_version_file(contrib, headless, rolling, cuda_arch_bin, cuda_arch_ptx):
506+
505507
version = {}
506508

507509
# generate version.py

0 commit comments

Comments
 (0)