
    Mh                    0   d Z ddlmZ ddlZddlZddlmZ ed             Z e            5  ddlm	Z	 ddd           n# 1 swxY w Y   ddl
mZ dd	lT dd	lT dd
lmZ dd	lT d Zd ZdZ e	j        d          Zg dej        z   ej        z   e	j        z   ZdS )zPython bindings for 0MQ    )annotationsN)contextmanagerc               #    K   t           j                            d          sdV  dS t          j                            t          j                            t          j                            t                    t          j	        d                    } t          j        
                    |           sdV  dS t          j                            d          }	 t          j                            |pd| g          t          j        d<   dV  |!t          j                            d           dS |t          j        d<   dS # | t          j                            d           n|t          j        d<   w xY w)zcontext manager for libs directory on $PATH

    Works around mysterious issue where os.add_dll_directory
    does not resolve imports (conda-forge Python >= 3.8)
    winNz
pyzmq.libsPATH )sysplatform
startswithospathabspathjoindirname__file__pardirexistsenvirongetpathseppop)libs_dirpath_befores     L/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/zmq/__init__.py_libs_on_pathr      sD      <""5)) w
GOOH%%I	
 	
 H 7>>(## *..((K-Z__k.?R-JKK
6JNN6"""""!,BJv JNN6""""!,BJv,,,,s   4D? ?3E2)backend   )	constants)*)sugarc                    ddl m} m}m}mm}  |t                     |  |                    gfddD             z   } | d                    r |                     d                     |S )zNReturn a list of directories to include for linking against pyzmq with cython.r   )r   r   r   r   r   c                *    g | ]} |          S  r#   ).0subdirbaser   parents     r   
<listcomp>z get_includes.<locals>.<listcomp>C   s'    OOO&44f55OOO    )utilsinclude)os.pathr   r   r   r   r   r   append)r   r   r   r   includesr&   r   r'   s        @@@r   get_includesr/   =   s    >>>>>>>>>>>>>>78DWTT$''((FxOOOOOOJOOOOHvdd64++,, 7VT955666Or)   c                 ~    ddl m} m}m}m}  |t
                    } |  |||                    } |||          gS )zIReturn a list of directories used to link against pyzmq's bundled libzmq.r   )r   r   r   r   )r,   r   r   r   r   r   )r   r   r   r   r&   r'   s         r   get_library_dirsr1   I   se    66666666666678DWTT$''((FDr)   i   draft)r/   COPY_THRESHOLD	DRAFT_API)__doc__
__future__r   r   r	   
contextlibr   r   zmqr   r   r   zmq.backendr    	zmq.sugarr/   r1   r3   hasr4   __all__r#   r)   r   <module>r=      s    
 # " " " " " 				 



 % % % % % % - - -J ]__                                        	 	 	      GK  	  
  m o s   ?AA