o
    tfg                  	   @   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je jd
dk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 WindowsZ
ZMQ_PREFIXZbundledzbundled builds don't have zmq.h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s0J d	}||}||ks=J d S )
Nzmq.tests.cython_ext)Zinclude_dirs)Z
setup_argsr   	build_dirc                      s   t j   tjdd  d S )Nr   )r   	uninstallsysmodulespop 	importersr   ^/var/www/html/software/conda/envs/catlas/lib/python3.10/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
startswithenvirongetZparametrizer   r   r   r   r   <module>   s,    

