wjones127 opened a new pull request #12077:
URL: https://github.com/apache/arrow/pull/12077


   It's helpful to know which optional components are enabled, particularly if 
the user has done a custom build of PyArrow. This is inspired by the 
`arrow_info()` function in the R bindings.
   
   ## Example Output
   
   <details open>
     <summary>Before</summary>
     
   ```sh
   pyarrow version info
   --------------------
   Package kind: not indicated
   Arrow C++ library version: 6.0.1
   Arrow C++ compiler: Clang 11.1.0
   Arrow C++ compiler flags: -ftree-vectorize -fPIC -fPIE 
-fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden 
-std=c++14 -fmessage-length=0 -isystem 
/Users/willjones/.pyenv/versions/miniforge3/include 
-fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/arrow-cpp-ext_1637415641039/work=/usr/local/src/conda/arrow-cpp-6.0.1
 
-fdebug-prefix-map=/Users/willjones/.pyenv/versions/miniforge3=/usr/local/src/conda-prefix
 -Qunused-arguments -fcolor-diagnostics -O3 -DNDEBUG
   Arrow C++ git revision: 
   Arrow C++ git description:
   ```
   </details>
   
   <details open>
     <summary>After</summary>
   
   ```sh
   ❯ python -c "import pyarrow; pyarrow.show_versions()"
   pyarrow version info
   --------------------
   Package kind: not indicated
   Arrow C++ library version: 7.0.0-SNAPSHOT
   Arrow C++ compiler: AppleClang 13.0.0.13000027
   Arrow C++ compiler flags:  -Qunused-arguments -fcolor-diagnostics -ggdb -O0
   Arrow C++ git revision: 24eafe95f95352c3609f3dcba2f40eba265e59f8
   Arrow C++ git description: apache-arrow-7.0.0.dev-421-g24eafe95f-dirty
   
   Optional modules:
     csv               : Enabled
     cuda              : -
     dataset           : Enabled
     feather           : Enabled
     flight            : -
     fs                : Enabled
     gandiva           : -
     json              : Enabled
     orc               : -
     parquet           : Enabled
     plasma            : -
   
   Filesystems:
     HadoopFileSystem  : Enabled 
     S3FileSystem      : Enabled 
     GcsFileSystem     : -       
   
   Compression Codecs:
     brotli            : Enabled 
     bz2               : Enabled 
     gzip              : Enabled 
     lz4_frame         : Enabled 
     lz4               : Enabled 
     snappy            : Enabled 
     zstd              : Enabled
   ```
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to