U
    #c                     @   sn   d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ ejj	eddejj
eddddd ZdS )	    N)IS_WASMzCan't start subprocess)reasonPy_DEBUGzMPy_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and Py_REF_DEBUGc              
   C   sn   t jt}t j|dd}t| d }t|| t| d }tj	t
jddddt| d d	d
|g	|d dS )z=Test building a third-party C extension with the limited API.ZexamplesZlimited_apiztmp_install_log.txtzsetup.pybuildinstallz--prefixZ
installdirz#--single-version-externally-managedz--record)cwdN)ospathdirname__file__joinstrshutilcopytree
subprocesscheck_outputsys
executable)Ztmp_pathhereZext_dirZcytestZinstall_log r   E/tmp/pip-unpacked-wheel-b2rbor69/numpy/core/tests/test_limited_api.pytest_limited_api   s$     

r   )r   r   r   r   	sysconfigZpytestZnumpy.testingr   markZskipifZxfailget_config_varr   r   r   r   r   <module>   s   