| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/numpy/distutils/command/__pycache__/ |
Upload File : |
�
���c�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 �C/usr/lib/python3/dist-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'