o
    dW                  	   @   s  d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlm	Z	 d dl
mZ zd dlZW n ey9   dZY nw ejjdkrBdZz#ejddZedde d dlZW d   n1 s_w   Y  W n eefyr   dZY nw zd dlZd d	lmZ W n ey   dZY nw d d
lmZ dZeeeek rdZejj eddejj edu ddejj!dd Z"ejj edu pedu dddd Z#ejj edu dddd Z$dS )    N)exec_mod_from_location)IS_WASM   T)recordalways )version)_pep440z0.29.30zCan't start subprocess)reasonzrequires cythonc                 C   s  t jt jtd}t|| d  | d d d }tjt	j
ddddt| d	 d
dt| d g	t|d t|d  }d}t|D ]
\}}||v rM nqCJ d|W d    n1 s_w   Y  d  }}t| d }|D ]}d|v r{| }d|v r| }qqW d    n1 sw   Y  |d usJ |d usJ td| td|}	ddlm}
 |	|
ddd}|jdksJ |jtjksJ d S )Nz..random	_examplescythonzsetup.pybuildinstallz--prefix
installdirz#--single-version-externally-managedz--recordztmp_install_log.txt)cwdzextending.cz+NumPy API declarations from "numpy/__init__Fz-Could not find '{}' in C file, wrong pxd usedz
extending.extending_distributions	extendingr   )PCG64
   d)r   )ospathjoindirname__file__shutilcopytree
subprocess
check_callsys
executablestropen	enumerateformatstripr   numpy.randomr   uniforms_exshapedtypenpfloat64)tmp_pathsrcdir	build_dirfidtxt_to_findilineso1so2r   r   values r7   f/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/numpy/random/tests/test_extending.pytest_cython/   sR   		
r9   zrequires numba and cffic                  C      ddl m}  d S Nr   r   )numpy.random._examples.numbar   r<   r7   r7   r8   
test_numba\   s   r>   zrequires cffic                  C   r:   r;   )numpy.random._examples.cffir   r<   r7   r7   r8   	test_cffia   s   r@   )%r   pytestr   r   r    warningsnumpyr+   numpy.distutils.misc_utilr   numpy.testingr   cffiImportErrorflagsoptimizecatch_warningswfilterwarningsDeprecationWarningnumbaSystemErrorr   Cython.Compiler.Versionr   cython_versionnumpy._utilsr	   required_versionparseVersionmarkskipifslowr9   r>   r@   r7   r7   r7   r8   <module>   sZ    
*
