MCPcopy Create free account
hub / github.com/apache/arrow / show_versions

Function show_versions

python/pyarrow/__init__.py:66–85  ·  view source on GitHub ↗

Print various version information, to help with error reporting.

()

Source from the content-addressed store, hash-verified

64
65
66def show_versions():
67 """
68 Print various version information, to help with error reporting.
69 """
70 def print_entry(label, value):
71 print(f"{label: <26}: {value: <8}")
72
73 print("pyarrow version info\n--------------------")
74 print_entry("Package kind", build_info.cpp_build_info.package_kind
75 if len(build_info.cpp_build_info.package_kind) > 0
76 else "not indicated")
77 print_entry("Arrow C++ library version", build_info.cpp_build_info.version)
78 print_entry("Arrow C++ compiler",
79 (f"{build_info.cpp_build_info.compiler_id} "
80 f"{build_info.cpp_build_info.compiler_version}"))
81 print_entry("Arrow C++ compiler flags", build_info.cpp_build_info.compiler_flags)
82 print_entry("Arrow C++ git revision", build_info.cpp_build_info.git_id)
83 print_entry("Arrow C++ git description", build_info.cpp_build_info.git_description)
84 print_entry("Arrow C++ build type", build_info.cpp_build_info.build_type)
85 print_entry("PyArrow build type", build_info.build_type)
86
87
88def _module_is_available(module):

Callers 1

show_infoFunction · 0.85

Calls 2

print_entryFunction · 0.85
lenFunction · 0.85

Tested by

no test coverage detected