HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/numpy/random/tests/__pycache__/test_extending.cpython-310.pyc
o

6��a�
�@s�ddlZddlZddlZddlZddlZddlZddlZddlm	Z	zddl
Z
Wney3dZ
Ynwejj
dkr<dZ
z#ejdd��Ze�dde�ddlZWd�n1sYwYWneyjdZYnwzddlZddlmZWney�dZYnwdd	lmZed
�Zee�ekr�dZejjedudd�ejjd
d���Zejjedup�e
dudd�dd��Zejje
dudd�dd��ZdS)�N)�exec_mod_from_location�T)�record�always�)�version)�LooseVersionz0.29.21zrequires cython)�reasoncCs�tj�tj�t�d�}t�||d�|ddd}tjt	j
ddddt|d	�d
dt|d�g	t|�d
�t|d�� }d}t
|�D]
\}}||vrMnqCJd�|���Wd�n1s_wYd}}t|d��}|D]}d|vr{|��}d|vr�|��}qqWd�n1s�wY|dus�J�|dus�J�td|�td|�}	ddlm}
|	�|
d�dd�}|jdks�J�|jtjks�J�dS)Nz..�random�	_examples�cythonzsetup.py�build�installz--prefix�
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�
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�so2rr�values�r6�C/usr/lib/python3/dist-packages/numpy/random/tests/test_extending.py�test_cython,sR��	����	���
�r8zrequires numba and cfficC�ddlm}dS�Nr�r)�numpy.random._examples.numbarr;r6r6r7�
test_numbaXsr=z
requires cfficCr9r:)�numpy.random._examples.cffirr;r6r6r7�	test_cffi]sr?) r�pytestrrr�warnings�numpyr*�numpy.distutils.misc_utilr�cffi�ImportError�flags�optimize�catch_warnings�w�filterwarnings�DeprecationWarning�numbar�Cython.Compiler.Versionr�cython_version�distutils.versionr�required_version�mark�skipif�slowr8r=r?r6r6r6r7�<module>sV�
����*�