관리-도구
편집 파일: build_src.cpython-311.pyc
� �܋f�y � �h � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m Z ddlmZ ddl mZmZ ddlmZ ddlmZmZmZmZmZ dd lmZ dd lmZ d � Z G d� dej � � Z ej d ej � � j! Z" ej dej � � j! Z# ej dej � � j! Z$ ej dej � � j% Z& ej dej � � j% Z'd� Z(d� Z)d� Z* ej dej � � j! Z+ ej dej � � j! Z,d� Z-dS )z Build swig and f2py sources. � N)� build_ext)�newer_group�newer)�get_platform)�DistutilsError�DistutilsSetupError)�log)�fortran_ext_match� appendpath� is_string�is_sequence�get_cmd)�process_filec �� � t j d� � }t |d� � 5 }t | d� � 5 }|D ]�}|� |� � }|rY|� |� d|� d� � z ||� d� � � � � � �r|� |� � �� ddd� � n# 1 swxY w Y ddd� � dS # 1 swxY w Y dS )zPSubstitute any occurrence of @foo@ by d['foo'] from source file into target.z@([a-zA-Z_]+)@�r�wz@%s@� N)�re�compile�open�search�write�replace�group)�target�source�d�var�fs�ft�l�ms �t/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/distutils/command/build_src.py� subst_varsr$ sc � � �*�%� &� &�C� �f�c� � � �b� �&�#� � � �"�� � ���J�J�q�M�M��� ��H�H�Q�Y�Y�v����� � �':�A�a�g�g�a�j�j�M�J�J�K�K�K�K��H�H�Q�K�K�K�K� � � � � � � � � � � � ���� � � � � � � � � � � � � � � � ���� � � � � � s5 �C&�BC�C&�C �C&�C �C&�&C*�-C*c � � e Zd ZdZg d�Zg d�Zg Zd� Zd� Zd� Z d� Z d� Zd � Zd � Z d� Zd� Zd � Zd� Zd� Zd� Zg fd�Zd� Zd� Zd� Zd� Zd� ZdS )� build_srcz1build sources from SWIG, F2PY files or a function) )z build-src=r zdirectory to "build" sources to)z f2py-opts=Nz!list of f2py command line options)zswig=Nzpath to the SWIG executable)z swig-opts=Nz!list of SWIG command line options)zswig-cppNzAmake SWIG create C++ files (default is autodetected from sources))z f2pyflags=Nz3additional flags to f2py (use --f2py-opts= instead))z swigflags=Nz3additional flags to swig (use --swig-opts= instead))�force�fz2forcibly build everything (ignore file timestamps))�inplace�iziignore build-lib and put compiled extensions into the source directory alongside your pure Python modules)�verbose-cfgNzJchange logging level from WARN to INFO which will show all compiler output)r'