
    ytfg              	          d dl Z d dlZd dlZd dlZ ej                  d      Ze j                  j                  e      Z	e j                  j                  e	d      Zej                  j                  e j                  j                  e       de       ej                  j                  dej                  vd      ej                  j                  ej                   j#                  d      d	      ej                  j                  e j$                  j'                  d
      dk(  d      ej                  j)                  dddg      d                                    Zy)    N	pyximportzcython_ext.pyxzRequires cython test file )reasonzzmq.backend.cythonzRequires cython backendwinz#Don't try runtime Cython on Windows
ZMQ_PREFIXbundledzbundled builds don't have zmq.hlanguage_level      c                 4   dt         j                  vsJ t        j                  t	        t        j                               | t        |            d }fd}|j                  |       ddl	m
} t        |d      sJ d}|j                  |      }||k(  sJ y )	Nzmq.tests.cython_ext)include_dirs)
setup_argsr   	build_dirc                  j    t        j                     t        j                  j	                  dd        y )Nr   )r   	uninstallsysmodulespop)	importerss   _/var/www/html/software/conda/envs/higlass/lib/python3.12/site-packages/zmq/tests/test_cython.pyunimportztest_cython.<locals>.unimport'   s$    Y'.5       )
cython_extsend_recv_tests   my msg)r   r   r   installdictzmqget_includesstraddfinalizer r   hasattrr   )r   requesttmpdirr   r   msgreceivedr   s          @r   test_cythonr(      s     "444!!S%5%5%78%f+ " I J6 " :/000 C((-Hs??r   )osr   pytestr   importorskipr   pathdirname__file__HEREjoinr   markskipifexistsr   platform
startswithenvirongetparametrizer(    r   r   <module>r:      sE   	 
  
F,		wwx WW\\$ 01
 
z""'
|4   +4M   LLE"+P   JJNN< I-6W   )Aq62 3	r   