
    qhO                     N    d dl Z d dlZd dlmZ da e j                  e      Zd Z	y)    N)metadataFc                      t         ryda d } t        j                         }t        |d      r!|j	                  dd      D ]
  } | |        y|j                  dd      D ]  }|j                  dk(  s | |        y)	zExecute all `numba_extensions` entry points with the name `init`

    If extensions have already been initialized, this function does nothing.
    NTc           	      J   t         j                  d|        	 | j                         } |        y	# t        $ ri}d| j                   dt        |      j                   dt        |       d}t        j                  |d       t         j                  d|        Y d	}~y	d	}~ww xY w)
z>Loads a given entry point. Warns and logs on failure.
        zLoading extension: %szNumba extension module 'z' failed to load due to '(z)'.   )
stacklevelz Extension loading failed for: %sN)
loggerdebugload	Exceptionmoduletype__name__strwarningswarn)entry_pointfuncemsgs       P/var/www/html/engine/venv/lib/python3.12/site-packages/numba/core/entrypoints.pyload_epzinit_all.<locals>.load_ep   s     	,k:	J##%DF 	J-k.@.@-A B--1!W-=-=,>aAxsLCMM#!,LL;[II		Js   0 	B"ABB"selectnumba_extensionsinit)groupname )_already_initializedimportlib_metadataentry_pointshasattrr   getr   )r   epsr   s      r   init_allr%      s       J 
)
)
+C sH::,>V:L 	!KK 	! 77#5r: 	%K6)$	%    )
loggingr   	importlibr   r    r   	getLoggerr   r	   r%   r   r&   r   <module>r*      s-      4  			8	$#%r&   