a
    õ£Beø  ã                   @   s°   d dl Z d dlZd dlZd dlZe d¡Ze j e¡Z	e j 
e	d¡Zejje j e¡ de› �d�ejjdejvdd�ejjej d¡d	d�ej d
ddg¡dd„ ƒƒƒƒZdS )é    NÚ	pyximportzcython_ext.pyxzRequires cython test file )Úreasonzzmq.backend.cythonzRequires cython backendÚwinz#Don't try runtime Cython on WindowsÚlanguage_levelé   é   c                    s~   dt jvsJ ‚tjtt ¡ d�| t|ƒd�‰ d }‡ fdd„}| |¡ ddl	m
} t|dƒs`J ‚d	}| |¡}||kszJ ‚d S )
Núzmq.tests.cython_ext)Úinclude_dirs)Z
setup_argsr   Ú	build_dirc                      s   t jˆ Ž  tj dd ¡ d S )Nr   )r   Ú	uninstallÚsysÚmodulesÚpop© ©Ú	importersr   úX/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/zmq/tests/test_cython.pyÚunimport$   s    
ztest_cython.<locals>.unimporté   )Ú
cython_extÚsend_recv_tests   my msg)r   r   r   ÚinstallÚdictÚzmqZget_includesÚstrZaddfinalizerÚ r   Úhasattrr   )r   ÚrequestZtmpdirr   r   ÚmsgZreceivedr   r   r   Útest_cython   s    ý

r   )Úosr   Zpytestr   Zimportorskipr   ÚpathÚdirnameÚ__file__ZHEREÚjoinr   ÚmarkZskipifÚexistsr   ÚplatformÚ
startswithZparametrizer   r   r   r   r   Ú<module>   s$   
þ
ÿÿ