o
    1ήc3                     @   sR   d dl Z d dlZd dlZd dlZd dlZd dlZejjeddddd Z	dS )    NPy_DEBUGzMPy_LIMITED_API is incompatible with Py_DEBUG, Py_TRACE_REFS, and Py_REF_DEBUG)reasonc              
   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.exampleslimited_apiztmp_install_log.txtzsetup.pybuildinstallz--prefix
installdirz#--single-version-externally-managedz--record)cwdN)ospathdirname__file__joinstrshutilcopytree
subprocesscheck_outputsys
executable)tmp_pathhereext_dircytestinstall_log r   H/tmp/pip-target-vg8gfxp4/lib/python/numpy/core/tests/test_limited_api.pytest_limited_api	   s"   

r   )
r
   r   r   r   	sysconfigpytestmarkxfailget_config_varr   r   r   r   r   <module>   s    