관리-도구
편집 파일: test_extending.cpython-311.pyc
� �܋fW � �$ � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl mZ d dlZn # e $ r dZY nw xY wej j dk rdZ ej d�� � 5 Z ej dde� � d dlZddd� � n# 1 swxY w Y n# e ef$ r dZY nw xY w d dlZd d lmZ d d lmZ dZ ej e� � ej e� � k rdZn # e $ r dZY nw xY wej � ed� � � ej � edu d� � � ej j! d� � � � � � � Z"ej � edu pedu d� � � d� � � Z#ej � edu d� � � d� � � Z$dS )� N)�exec_mod_from_location)�IS_WASM� T)�record�always� )�version)�_pep440z0.29.30zCan't start subprocess)�reasonzrequires cythonc �� � t j � t j � t � � d� � }t j || dz � � | dz dz dz }t j t j ddddt | d z � � d dt | dz � � g t |� � � � � t |dz � � 5 }d}t |� � D ]\ }}||v r n�J d� |� � � � � d d d � � n# 1 swxY w Y d x}}t | dz � � 5 }|D ]2}d|v r|� � � }d|v r|� � � }�3 d d d � � n# 1 swxY w Y |�J �|�J �t! d|� � t! d|� � } ddlm} | � | d� � dd� � }|j dk sJ �|j t, j k sJ �d S )Nz..�random� _examples�cythonzsetup.py�build�installz--prefix� installdirz#--single-version-externally-managedz--recordztmp_install_log.txt)�cwdzextending.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 �valuess �t/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/random/tests/test_extending.py�test_cythonr: / s� � � �W�\�\�"�'�/�/�(�3�3�T� :� :�F� �O�F�H�x�/�0�0�0��8�#�k�1�H�<�I���3�>�:�w� �%�s�8�l�+B�'C�'C�@�%�s�8�5J�+J�'K�'K�� "�)�n�n�� � � � �i�-�'� (� (� A�C�C�� ��~�~� A� A�G�A�t��d�"�"��� #� A� ,�,2�F�;�,?�,?� A� A�5� � A� A� A� A� A� A� A� A� A� A� A���� A� A� A� A� ��C�#� �h�-�-� .� .� #�#�� #� #�D��t�#�#��j�j�l�l��(�D�0�0��j�j�l�l��� #�#� #� #� #� #� #� #� #� #� #� #���� #� #� #� #� �?�?�?��?�?�?��;��,�,�,�4�-�s�4� 4�� #�"�"�"�"�"� $� 0� 0���q���2�s� C� C�F��<�5� � � � ��<�2�:�%�%�%�%�%�%s$ �;D�D�D�76E:�:E>�E>zrequires numba and cffic � � ddl m} d S �Nr �r )�numpy.random._examples.numbar r= s r9 � test_numbar? \ s � � 7�6�6�6�6�6�6�6� z requires cffic � � ddl m} d S r<