MCPcopy Create free account
hub / github.com/opencv/opencv-python / get_python_library

Function get_python_library

setup.py:239–249  ·  view source on GitHub ↗
(python_version)

Source from the content-addressed store, hash-verified

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
239def 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
252def keep_package_files(cmake_manifest):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected