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/distutils/__pycache__/ |
Upload File : |
o 6��a�T � @ sH d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dl mZ d dlZd dlmZ e� Zg Zdd� Ze�e� g d�ZG dd� d�Zd d � Zdd� Zd d� Zdd� Zd�dd�Zdd� Zd�dd�Zdd� Z dd� Z!dd� Z"d�dd �Z#d�d!d"�Z$d#d$� Z%e%� r�e&d d%d&d'd(d)d*d+d,d-� Z'd�d/d0�Z(nd�d1d0�Z(d2d3� Z)d4d5� Z*d6d7� Z+d8d9� Z,d:d;� Z-d<d=� Z.d>d?� Z/d@dA� Z0dBdC� Z1dDdE� Z2dFdG� Z3e�4dHej5�j6Z7e�4dIej5�j6Z8e�4dJej5�j6Z9e�4dKej5�j6Z:dLdM� Z;dNdO� Z<dPdQ� Z=dRdS� Z>dTdU� Z?dVdW� Z@dXdY� ZAdZd[� ZBd\d]� ZCd^d_� ZDd`da� ZEdbdc� ZFddde� ZGdfdg� ZHdhdi� ZIdjdk� ZJdldm� ZKdndo� ZLdpdq� ZMdrds� ZNd�dtdu�ZOdvdw� ZPdxdy� ZQd�dzd{�ZRG d|d}� d}�ZSi fd~d�ZTd�d�� ZUd�d�� ZVd�d�d��ZWd�d�d��ZXd�d�� ZYd�d�d��ZZd�d�� Z[d�d�� Z\d�d�� Z]d�d�� Z^d�d�� Z_d�d�hZ`d�d�� Zad�d�� ZbdS )�� N)�local)�DistutilsErrorc C s: t d urt D ]} zt�| � W q ty Y qw d S d S �N)�_tmpdirs�shutil�rmtree�OSError)�d� r �;/usr/lib/python3/dist-packages/numpy/distutils/misc_util.py�clean_up_temporary_directory s ��r )+� Configuration�get_numpy_include_dirs�default_config_dict�dict_append� appendpath�generate_config_py�get_cmd�allpath�get_mathlibs�terminal_has_colors�red_text� green_text�yellow_text� blue_text� cyan_text� cyg2win32�mingw32�all_strings� has_f_sources�has_cxx_sources�filter_sources�get_dependencies�is_local_src_dir�get_ext_source_files�get_script_files�get_lib_source_files�get_data_files�dot_join� get_frame� minrelpath�njoin�is_sequence� is_string�as_list�gpaths�get_language� quote_args�get_build_architecture�get_info�get_pkg_info�get_num_build_jobs�sanitize_cxx_flags�exec_mod_from_locationc @ s e Zd ZdZdd� ZdS )�InstallableLiba� Container to hold information on an installable library. Parameters ---------- name : str Name of the installed library. build_info : dict Dictionary holding build information. target_dir : str Absolute path specifying where to install the library. See Also -------- Configuration.add_installed_library Notes ----- The three parameters are stored as attributes with the same names. c C s || _ || _|| _d S r )�name� build_info� target_dir)�selfr9 r: r; r r r �__init__E s zInstallableLib.__init__N)�__name__� __module__�__qualname__�__doc__r= r r r r r8 / s r8 c C s� ddl m} z tt�d��}W n ty t�� }Y nw t|d�}t tj �d|��}| � }|du r4|S t|� d�dd�t|� d�dd�t|� d �dd�f}td d� |D ��rY|S tdd� |D ��S ) a� Get number of parallel build jobs set by the --parallel command line argument of setup.py If the command did not receive a setting the environment variable NPY_NUM_BUILD_JOBS is checked. If that is unset, return the number of processors on the system, with a maximum of 8 (to prevent overloading the system if there a lot of CPUs). Returns ------- out : int number of parallel jobs that can be run r ��get_distribution� �NPY_NUM_BUILD_JOBSN�build�parallel� build_ext� build_clibc s s � | ]}|d u V qd S r r ��.0�xr r r � <genexpr>j s � z%get_num_build_jobs.<locals>.<genexpr>c s s � | ] }|d ur|V qd S r r rJ r r r rM m s � )�numpy.distutils.corerC �len�os�sched_getaffinity�AttributeError�multiprocessing� cpu_count�min�int�environ�get�getattr�get_command_obj�all�max)rC rT �envjobs�dist�cmdattrr r r r5 K s$ � �r5 c C sF t | �} tt| ��D ]}| | }d|v r |d dvr d| | |<