?????????? ????????? - ??????????????? - /usr/lib64/python3.9/site-packages/numpy/random/tests/__pycache__/test_extending.cpython-39.pyc
???????
a z[yc� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z zd dl Z W n eyf dZ Y n0 ejj dkrxdZ zFejdd��&Ze�dde� d dlZW d � n1 s�0 Y W n ey� dZY n0 zd dlZd dlmZ W n e�y dZY n,0 d d lmZ d Ze�e�e�e�k �r2dZejjedu dd�ejjd d� ��Zejjedu �ple du dd�dd� �Z ejje du dd�dd� �Z!dS )� N)�exec_mod_from_location� T)�record�always� )�version)�_pep440z0.29.30zrequires cython)�reasonc C s� t j�t j�t�d�}t�|| d � | d d d }tjt j ddddt| d �d dt| d �g t|�d � t|d ��D}d}t |�D ]\}}||v r� q�q�ds�J d�|���W d � n1 s�0 Y d }}t| d ��:}|D ]$}d|v r�|�� }d|v r�|�� }q�W d � n1 �s"0 Y |d u�s:J �|d u�sHJ �td|� td|�} ddlm} | �| d�dd�}|jdk�s�J �|jtjk�s�J �d S )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�stripr Znumpy.randomr Zuniforms_ex�shapeZdtype�npZfloat64)Ztmp_pathZsrcdirZ build_dirZfidZtxt_to_find�i�lineZso1Zso2r r �values� r&