o
    ò©Zhâ  ã                   @   s>   d dl Zd dl mZ d dlmZ dd„ Zeeƒ ƒ dd„ ZdS )é    N)Újoin)Úget_cpp_testsc                 C   s>   t ƒ D ]}|fdd„}|j |_|_| d |_|| |j< qdS )zL
    Inject C++ tests as Python functions into namespace `ns` (a dict).
    c                 S   s
   | ƒ  d S )N© )Úcaser   r   úW/var/www/html/lang_env/lib/python3.10/site-packages/pyarrow/tests/test_cpp_internals.pyÚwrapper   s   
z!inject_cpp_tests.<locals>.wrapperÚ__name__N)r   Únamer   Ú__qualname__Ú
__module__)Únsr   r   r   r   r   Úinject_cpp_tests   s   

ûr   c                  C   sX   t j t j t¡¡} t| dƒ}t|dƒ}t|ddƒ}t j |¡s"J ‚t j |¡s*J ‚d S )Nz..ÚincludeÚarrowÚpython)ÚosÚpathÚdirnameÚabspathÚ__file__ÚpjoinÚexists)ÚsourceZpyarrow_dirZpyarrow_includeZpyarrow_cpp_includer   r   r   Útest_pyarrow_include'   s   

r   )	Zos.pathr   r   r   Zpyarrow._pyarrow_cpp_testsr   r   Úglobalsr   r   r   r   r   Ú<module>   s   
