| 237 | 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") |
| 238 | |
| 239 | def get_python_library(python_version): |
| 240 | if os.name == "nt": |
| 241 | return os.path.join( |
| 242 | sys.base_prefix, "libs", "python%s.lib" % python_version.replace(".", "") |
| 243 | ) |
| 244 | libdir = sysconfig.get_config_var("LIBDIR") |
| 245 | ldlibrary = sysconfig.get_config_var("LDLIBRARY") |
| 246 | if libdir and ldlibrary and os.path.exists(os.path.join(libdir, ldlibrary)): |
| 247 | return os.path.join(libdir, ldlibrary) |
| 248 | # No libpython (like manylinux); extension modules must not link to it anyway |
| 249 | return "libpython%sm.a" % python_version |
| 250 | |
| 251 | |
| 252 | def keep_package_files(cmake_manifest): |