| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/numpy/lib/__pycache__/ |
Upload File : |
�
�gc^ � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m
Z
d dlZg d�Z
e
d� d� � Z e
d� d� � Z G d� d � Zd
� Zd� Zd� Zd
� Zdadadd�Zdd�Z e
d� dd�� Zd� Zd� Zd� Zd� Zy)� N)�ndarray)�
set_module)�get_include�info�show_runtime�numpyc � � ddl m} m}m} ddlm} t
j t j t j � d�g}g g }}|D ]* }| | r|j |� �|j |� �, |j d|||d�i� ddlm
} |j |� � ||� y # t $ r t! d� Y �w xY w)
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 s �7C:\Python312\Lib\site-packages\numpy/lib/_utils_impl.pyr r s� � �*� � �����+�+����!�
� �L�
*,�R�&�N�#� /���G�$��!�!�'�*��%�%�g�.� /�
����(�#�+�
�� �6�1����O�-�.� �<��� � 6�
� 5� 6�6�s �B6 �6C
�C
c �T � ddl } | j �Jt j j t j j | j � dd� }|S ddlm} t j j t j j |j � d� }|S )a�
Return the directory that contains the NumPy \*.h header files.
Extension modules that need to compile against NumPy may need to use this
function to locate the appropriate include directory.
Notes
-----
When using ``setuptools``, for example in ``setup.py``::
import numpy as np
...
Extension('extension_name', ...
include_dirs=[np.get_include()])
...
Note that a CLI tool ``numpy-config`` was introduced in NumPy 2.0, using
that is likely preferred for build systems other than ``setuptools``::
$ numpy-config --cflags
-I/path/to/site-packages/numpy/_core/include
# Or rely on pkg-config:
$ export PKG_CONFIG_PATH=$(numpy-config --pkgconfigdir)
$ pkg-config --cflags
-I/path/to/site-packages/numpy/_core/include
Examples
--------
>>> np.get_include()
'.../site-packages/numpy/core/include' # may vary
r N�_core�include) r �show_config�os�path�join�dirname�__file__�numpy._corer( )r �dr( s r&