Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/numpy/f2py/tests/__pycache__/ |
Upload File : |
o 6��at% � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl mZmZ ddl mZ ddlmZ dadadd� Zd d � Zdd� Zd d� Zeg g g dfdd��Zeg g g ddfdd��Zdadd� Zdd� Zdd� Zdd� Zedd� �ZG dd� d�ZdS )z� Utility functions for - building and importing modules on test time, using a temporary location - detecting if compilers are present � N)�asbytes�asstr)�temppath)� import_modulei c C s^ t d ur-ztj�t � W n ty Y nw zt�t � W n ttfy( Y nw d a d S d S �N) �_module_dir�sys�path�remove� ValueError�shutil�rmtree�IOError�OSError� r r �7/usr/lib/python3/dist-packages/numpy/f2py/tests/util.py�_cleanup s ���r c C s6 t d u rt�� a t�t� t tjvrtj�dt � t S �Nr ) r �tempfile�mkdtemp�atexit�registerr r r �insertr r r r �get_module_dir, s r c C s, t � } dt }td7 a|tjv rtd��|S )Nz_test_ext_module_%d� z%Temporary module name already in use.)r �_module_numr �modules�RuntimeError)�d�namer r r �get_temp_module_name6 s r c s i �� �fdd�}� j |_ |S )Nc sh t | |f�}|�vr'z� | i |���|<