kou commented on code in PR #14643:
URL: https://github.com/apache/arrow/pull/14643#discussion_r1026881651


##########
python/pyarrow/tests/test_cython.py:
##########
@@ -141,19 +141,24 @@ def test_cython_api(tmpdir):
         """.format(mod_name='pyarrow_cython_example',
                    library_dirs=pa.get_library_dirs())
 
-        var = None
+        path_var = None
         if sys.platform == 'win32':
             if not hasattr(os, 'add_dll_directory'):
                 # Python 3.8 onwards don't check extension module DLLs on path
                 # we have to use os.add_dll_directory instead.
-                delim, var = ';', 'PATH'
+                delim, path_var = ';', 'PATH'
+        elif sys.platform == 'darwin':
+            delim, path_var = ':', 'DYLD_LIBRARY_PATH'
         else:
-            delim, var = ':', 'LD_LIBRARY_PATH'
-
-        if var:
-            subprocess_env[var] = delim.join(
-                pa.get_library_dirs() + [subprocess_env.get(var, '')]
-            )
+            delim, path_var = ':', 'LD_LIBRARY_PATH'
+
+        if path_var:
+            paths = sys.path
+            paths += pa.get_library_dirs()
+            paths += [test_ld_path]

Review Comment:
   Sure:
   
   ```console
   $ rm -rf cpp.build
   $ make -S cpp -B cpp.build -G "Ninja" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 
-DCMAKE_INSTALL_PREFIX=/tmp/local -DCMAKE_BUILD_TYPE=Debug 
-DARROW_FILESYSTEM=ON -DARROW_GANDIVA=ON -DARROW_COMPUTE=ON -DARROW_CSV=ON 
-DARROW_DATASET=ON -DARROW_ORC=ON -DARROW_JSON=ON
   $ cmake --build cpp.build --config Debug --target install
   $ MACOSX_DEPLOYMENT_TARGET=13.0 CMAKE_PREFIX_PATH=/tmp/local 
CMAKE_BUILD_PARALLEL_LEVEL=$(sysctl -n hw.ncpu) python3 -m pip install -vv 
./python
   $ MACOSX_DEPLOYMENT_TARGET=13.0 PYARROW_TEST_LD_PATH=/tmp/local/lib 
DYLD_LIBRARY_PATH=/tmp/local/lib python3 -m pytest -r s -k 'test_cython_api' 
--pyargs pyarrow
   ```
   
   If I didn't set `PYARROW_TEST_LD_PATH`, the following error is reported:
   
   ```text
   clang++ -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g 
build/temp.macosx-10.9-universal2-cpython-310/pyarrow_cython_example.o 
-L/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow
 -larrow -larrow_python -o 
build/lib.macosx-10.9-universal2-cpython-310/pyarrow_cython_example.cpython-310-darwin.so
   ld: library not found for -larrow
   ```
   
   <details>
   
   ```text
   ================================================ test session starts 
=================================================
   platform darwin -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0
   rootdir: /Users/kou/work/cpp/arrow
   plugins: hypothesis-6.57.1, lazy-fixture-0.6.3
   collected 4447 items / 4446 deselected / 3 skipped / 1 selected              
                                        
   
   tests/test_cython.py F                                                       
                                  [100%]
   
   ====================================================== FAILURES 
======================================================
   __________________________________________________ test_cython_api 
___________________________________________________
   
   tmpdir = 
local('/private/var/folders/6b/s397zyc57g9gvqm8cj6gzq0r0000gn/T/pytest-of-kou/pytest-3/test_cython_api0')
   
       @pytest.mark.cython
       def test_cython_api(tmpdir):
           """
           Basic test for the Cython API.
           """
           # Fail early if cython is not found
           import cython  # noqa
       
           with tmpdir.as_cwd():
               # Set up temporary workspace
               pyx_file = 'pyarrow_cython_example.pyx'
               shutil.copyfile(os.path.join(here, pyx_file),
                               os.path.join(str(tmpdir), pyx_file))
               # Create setup.py file
               setup_code = setup_template.format(pyx_file=pyx_file,
                                                  compiler_opts=compiler_opts,
                                                  test_ld_path=test_ld_path)
               with open('setup.py', 'w') as f:
                   f.write(setup_code)
       
               # ARROW-2263: Make environment with this pyarrow/ package first 
on the
               # PYTHONPATH, for local dev environments
               subprocess_env = test_util.get_modified_env_with_pythonpath()
       
               # Compile extension module
   >           subprocess.check_call([sys.executable, 'setup.py',
                                      'build_ext', '--inplace'],
                                     env=subprocess_env)
   
   
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow/tests/test_cython.py:109:
 
   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
   
   popenargs = 
(['/Library/Frameworks/Python.framework/Versions/3.10/bin/python3', 'setup.py', 
'build_ext', '--inplace'],)
   kwargs = {'env': {'AWS_CONFIG_FILE': '/dev/null', 
'AWS_EC2_METADATA_DISABLED': 'true', 'DYLD_LIBRARY_PATH': '/tmp/local/lib', 
'EDITOR': 'vim', ...}}
   retcode = 1
   cmd = ['/Library/Frameworks/Python.framework/Versions/3.10/bin/python3', 
'setup.py', 'build_ext', '--inplace']
   
       def check_call(*popenargs, **kwargs):
           """Run command with arguments.  Wait for command to complete.  If
           the exit code was zero then return, otherwise raise
           CalledProcessError.  The CalledProcessError object will have the
           return code in the returncode attribute.
       
           The arguments are the same as for the call function.  Example:
       
           check_call(["ls", "-l"])
           """
           retcode = call(*popenargs, **kwargs)
           if retcode:
               cmd = kwargs.get("args")
               if cmd is None:
                   cmd = popenargs[0]
   >           raise CalledProcessError(retcode, cmd)
   E           subprocess.CalledProcessError: Command 
'['/Library/Frameworks/Python.framework/Versions/3.10/bin/python3', 'setup.py', 
'build_ext', '--inplace']' returned non-zero exit status 1.
   
   
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py:369:
 CalledProcessError
   ------------------------------------------------ Captured stdout call 
------------------------------------------------
   Compiling pyarrow_cython_example.pyx because it changed.
   [1/1] Cythonizing pyarrow_cython_example.pyx
   Extension module: <setuptools.extension.Extension('pyarrow_cython_example') 
at 0x119c86620> 
['/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/include',
 
'/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow/include']
 ['arrow', 'arrow_python'] 
['/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow']
   running build_ext
   building 'pyarrow_cython_example' extension
   creating build
   creating build/temp.macosx-10.9-universal2-cpython-310
   clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common 
-dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g 
-I/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/include
 
-I/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow/include
 -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c 
pyarrow_cython_example.cpp -o 
build/temp.macosx-10.9-universal2-cpython-310/pyarrow_cython_example.o 
-std=c++17
   creating build/lib.macosx-10.9-universal2-cpython-310
   clang++ -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g 
build/temp.macosx-10.9-universal2-cpython-310/pyarrow_cython_example.o 
-L/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow
 -larrow -larrow_python -o 
build/lib.macosx-10.9-universal2-cpython-310/pyarrow_cython_example.cpython-310-darwin.so
   ------------------------------------------------ Captured stderr call 
------------------------------------------------
   pyarrow_cython_example.cpp:3756:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_buffer' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_buffer)(std::shared_ptr< arrow::Buffer>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3757:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer)(std::shared_ptr< 
arrow::ResizableBuffer>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3758:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_data_type' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_data_type)(std::shared_ptr< 
arrow::DataType>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3759:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_field' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_field)(std::shared_ptr< arrow::Field>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3760:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_schema' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_schema)(std::shared_ptr< arrow::Schema>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3763:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_chunked_array' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_chunked_array)(std::shared_ptr< 
arrow::ChunkedArray>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3764:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_coo_tensor' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_coo_tensor)(std::shared_ptr< 
arrow::SparseCOOTensor>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3765:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csc_matrix' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csc_matrix)(std::shared_ptr< 
arrow::SparseCSCMatrix>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3766:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csf_tensor' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csf_tensor)(std::shared_ptr< 
arrow::SparseCSFTensor>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3767:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csr_matrix' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csr_matrix)(std::shared_ptr< 
arrow::SparseCSRMatrix>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3768:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_tensor' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_tensor)(std::shared_ptr< arrow::Tensor>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3769:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_batch' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_batch)(std::shared_ptr< 
arrow::RecordBatch>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3770:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_table' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_table)(std::shared_ptr< arrow::Table>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3771:43: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_buffer' [-Wunused-variable]
   static std::shared_ptr< arrow::Buffer>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_buffer)(PyObject *); /*proto*/
                                             ^
   pyarrow_cython_example.cpp:3773:42: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_field' [-Wunused-variable]
   static std::shared_ptr< arrow::Field>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_field)(PyObject *); /*proto*/
                                            ^
   pyarrow_cython_example.cpp:3774:43: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_schema' [-Wunused-variable]
   static std::shared_ptr< arrow::Schema>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_schema)(PyObject *); /*proto*/
                                             ^
   pyarrow_cython_example.cpp:3777:49: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_chunked_array' [-Wunused-variable]
   static std::shared_ptr< arrow::ChunkedArray>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_chunked_array)(PyObject *); /*proto*/
                                                   ^
   pyarrow_cython_example.cpp:3778:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_coo_tensor' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCOOTensor>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_coo_tensor)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3779:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csc_matrix' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCSCMatrix>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csc_matrix)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3780:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csf_tensor' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCSFTensor>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csf_tensor)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3781:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csr_matrix' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCSRMatrix>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csr_matrix)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3782:43: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_tensor' [-Wunused-variable]
   static std::shared_ptr< arrow::Tensor>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_tensor)(PyObject *); /*proto*/
                                             ^
   pyarrow_cython_example.cpp:3783:48: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_batch' [-Wunused-variable]
   static std::shared_ptr< arrow::RecordBatch>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_batch)(PyObject *); /*proto*/
                                                  ^
   pyarrow_cython_example.cpp:3784:42: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_table' [-Wunused-variable]
   static std::shared_ptr< arrow::Table>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_table)(PyObject *); /*proto*/
                                            ^
   24 warnings generated.
   pyarrow_cython_example.cpp:3756:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_buffer' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_buffer)(std::shared_ptr< arrow::Buffer>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3757:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer)(std::shared_ptr< 
arrow::ResizableBuffer>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3758:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_data_type' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_data_type)(std::shared_ptr< 
arrow::DataType>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3759:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_field' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_field)(std::shared_ptr< arrow::Field>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3760:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_schema' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_schema)(std::shared_ptr< arrow::Schema>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3763:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_chunked_array' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_chunked_array)(std::shared_ptr< 
arrow::ChunkedArray>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3764:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_coo_tensor' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_coo_tensor)(std::shared_ptr< 
arrow::SparseCOOTensor>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3765:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csc_matrix' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csc_matrix)(std::shared_ptr< 
arrow::SparseCSCMatrix>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3766:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csf_tensor' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csf_tensor)(std::shared_ptr< 
arrow::SparseCSFTensor>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3767:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csr_matrix' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_sparse_csr_matrix)(std::shared_ptr< 
arrow::SparseCSRMatrix>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3768:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_tensor' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_tensor)(std::shared_ptr< arrow::Tensor>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3769:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_batch' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_batch)(std::shared_ptr< 
arrow::RecordBatch>  const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3770:20: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_wrap_table' [-Wunused-variable]
   static PyObject 
*(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_table)(std::shared_ptr< arrow::Table>  
const &); /*proto*/
                      ^
   pyarrow_cython_example.cpp:3771:43: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_buffer' [-Wunused-variable]
   static std::shared_ptr< arrow::Buffer>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_buffer)(PyObject *); /*proto*/
                                             ^
   pyarrow_cython_example.cpp:3773:42: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_field' [-Wunused-variable]
   static std::shared_ptr< arrow::Field>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_field)(PyObject *); /*proto*/
                                            ^
   pyarrow_cython_example.cpp:3774:43: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_schema' [-Wunused-variable]
   static std::shared_ptr< arrow::Schema>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_schema)(PyObject *); /*proto*/
                                             ^
   pyarrow_cython_example.cpp:3777:49: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_chunked_array' [-Wunused-variable]
   static std::shared_ptr< arrow::ChunkedArray>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_chunked_array)(PyObject *); /*proto*/
                                                   ^
   pyarrow_cython_example.cpp:3778:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_coo_tensor' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCOOTensor>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_coo_tensor)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3779:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csc_matrix' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCSCMatrix>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csc_matrix)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3780:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csf_tensor' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCSFTensor>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csf_tensor)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3781:52: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csr_matrix' [-Wunused-variable]
   static std::shared_ptr< arrow::SparseCSRMatrix>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_sparse_csr_matrix)(PyObject *); /*proto*/
                                                      ^
   pyarrow_cython_example.cpp:3782:43: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_tensor' [-Wunused-variable]
   static std::shared_ptr< arrow::Tensor>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_tensor)(PyObject *); /*proto*/
                                             ^
   pyarrow_cython_example.cpp:3783:48: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_batch' [-Wunused-variable]
   static std::shared_ptr< arrow::RecordBatch>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_batch)(PyObject *); /*proto*/
                                                  ^
   pyarrow_cython_example.cpp:3784:42: warning: unused variable 
'__pyx_f_7pyarrow_3lib_pyarrow_unwrap_table' [-Wunused-variable]
   static std::shared_ptr< arrow::Table>  
(*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_table)(PyObject *); /*proto*/
                                            ^
   24 warnings generated.
   ld: library not found for -larrow
   clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
   error: command '/usr/bin/clang++' failed with exit code 1
   ============================================== short test summary info 
===============================================
   SKIPPED [1] 
../../../../../Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow/tests/test_cuda.py:32:
 could not import 'pyarrow.cuda': No module named 'pyarrow._cuda'
   SKIPPED [1] 
../../../../../Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow/tests/test_cuda_numba_interop.py:23:
 could not import 'pyarrow.cuda': No module named 'pyarrow._cuda'
   SKIPPED [1] 
../../../../../Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyarrow/tests/test_jvm.py:27:
 could not import 'jpype': No module named 'jpype'
   =================================== 1 failed, 3 skipped, 4446 deselected in 
6.48s ====================================
   ```
   
   </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