Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_cppext.cpython-311.pyc |
�
�Ke � � � d dl Zd dlZd dlZd dlZd dlZd dlmZ d dlm Z ej
dk Z ej d� � Z
ej � � G d� dej � � � � Zedk r ej � � dS dS ) � N)�support)� os_helper�win32zsetup_testcppext.pyc �� � e Zd Zd� Zd� Z ej ed� � ej d ej d� � pdv d� � e
j � � d� � � � � � � Zd � Z
d
S )�
TestCPPExtc �2 � | � dd� � d S )NF�
_testcpp11ext��check_build��selfs �:/usr/local/apps/python3/lib/python3.11/test/test_cppext.py�test_build_cpp11zTestCPPExt.test_build_cpp11 s � ������0�0�0�0�0� c �2 � | � dd� � d S )NT�
_testcpp03extr
r s r �test_build_cpp03zTestCPPExt.test_build_cpp03 s � ������/�/�/�/�/r ztest fails on Windowsz
-fsanitize� PY_CFLAGS� z(test does not work with analyzing buildsc � � t j � � 5 | � ||� � d d d � � d S # 1 swxY w Y d S )N)r �temp_cwd�_check_build)r
� std_cpp03�extension_names r r zTestCPPExt.check_build s� � � �
�
!�
!� 9� 9����i��8�8�8� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� 9���� 9� 9� 9� 9� 9� 9s �8�<�<c � � �� d}t j �t j dddd|g}�r1t � � t dd� |� � � � t
j |d� � � d
}t j � d� � r|dz
}t r"t j � |d|� � }n!t j � |d
|� � }� �fd�}|ddt ddg}|r|�
d� � |d|� � |ddt dg} |d|� � |ddddddg} |d|� � |dddddd|� �g} |d|� � d S )N�envz-X�devz-m�venv�Run:� T��check�pythonz.exe�Scripts�binc �V �� �r;t dd� |� � � � t j |d�� � d S t j |t j t j d�� � }|j r7t |j d�� � �� | � d|j � �� � d S d S ) Nr r Tr! )�stdout�stderr�textr )�endz failed with exit code ) �print�join�
subprocess�run�PIPE�STDOUT�
returncoder'