File: //usr/local/lib/python3.10/dist-packages/numpy/lib/__pycache__/utils.cpython-310.pyc
o
���g�� � @ st d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZddlm Z d dl
mZmZm
Z
d dlmZmZmZ d dlZg d�Zdd� Zd d
� ZG dd� d�Zd
d� Zdd� Zdd� Zdd� Zd4dd�Zdd� Zdadad5dd�Z d4dd�Z!e d�d6dd ��Z"e d�ej#fd!d"��Z$i Z%e�&d#ej'�Z(e d� % d7d&d'��Z)d(d)� Z*d*d+� Z+d,d-� Z,d.d/� Z-d0d1� Z.d2d3� Z/dS )8� N� )�
set_module)�issubclass_�issubsctype�
issubdtype)�ndarray�ufunc�asarray)
r r r � deprecate�deprecate_with_doc�get_include�info�source�who�lookfor�byte_bounds� safe_eval�show_runtimec C s� ddl m} m}m} ddlm} tjtjt �
� d�g}g g }}|D ]}| | r.|�|� q"|�|� q"|�d|||d�i� zddlm
} |�|� � W n
tyZ td� Y nw ||� d S )
a(
Print information about various resources in the system
including available intrinsic support and BLAS/LAPACK library
in use
.. versionadded:: 1.24.0
See Also
--------
show_config : Show libraries in the system on which NumPy was built.
Notes
-----
1. Information is derived with the help of `threadpoolctl <https://pypi.org/project/threadpoolctl/>`_
library if available.
2. SIMD related information is derived from ``__cpu_features__``,
``__cpu_baseline__`` and ``__cpu_dispatch__``
r ��__cpu_features__�__cpu_baseline__�__cpu_dispatch__)�pprint)�
numpy_version�python�uname�simd_extensions)�baseline�found� not_found)�threadpool_infoz�WARNING: `threadpoolctl` not found in system! Install it by `pip install threadpoolctl`. Once installed, try `np.show_runtime` again for more detailed build informationN)�numpy.core._multiarray_umathr r r r �np�__version__�sys�version�platformr �append�
threadpoolctlr �extend�ImportError�print) r r r r �config_found�features_found�features_not_found�featurer � r0 �:/usr/local/lib/python3.10/dist-packages/numpy/lib/utils.pyr s2 �
���r c C sX ddl } | jdu rtj�tj�| j�dd�}|S ddlm} tj�tj�|j�d�}|S )a�
Return the directory that contains the NumPy \*.h header files.
Extension modules that need to compile against NumPy should use this
function to locate the appropriate include directory.
Notes
-----
When using ``distutils``, for example in ``setup.py``::
import numpy as np
...
Extension('extension_name', ...
include_dirs=[np.get_include()])
...
r N�core�include) �numpy�show_config�os�path�join�dirname�__file__�
numpy.corer2 )r4 �dr2 r0 r0 r1 r K s
�r c @ s"