Print various version information, to help with error reporting.
()
| 64 | |
| 65 | |
| 66 | def 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 | |
| 88 | def _module_is_available(module): |
no test coverage detected