3
���hS � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZm Z d dl
mZ d dlm
Z
mZmZ d dlZd dlmZmZ dddd d
ddd
ddddgZdd� Zdd� ZG dd� d�Zdd� Zdd � Zdd� Zdd� Zd3dd�Zdd� Zdada d4d!d"�Z!ej"fd#d$�Z#ed �dd%ej"d fd&d��Z$ed �ej"fd'd
��Z%i Z&ej'd(ej(�Z)ed �d5d+d��Z*d,d-� Z+d.d/� Z,d0d� Z-d1d2� Z.dS )6� N)�issubclass_�issubsctype�
issubdtype)�
set_module)�ndarray�ufunc�asarray)�
getargspec�
formatargspecr r r � deprecate�deprecate_with_doc�get_include�info�source�who�lookfor�byte_bounds� safe_evalc C sT ddl } | jdkr.tjjtjj| j�dd�}n"ddlj}tjjtjj|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) �numpyZshow_config�os�path�join�dirname�__file__�
numpy.corer )r �dr � r �0/tmp/pip-build-5_djhm0z/numpy/numpy/lib/utils.pyr
s
c C s
|| _ | S )N)�__name__)�func�namer r r �_set_function_name4 s r# c @ s" |