Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/numpy/distutils/command/__pycache__/build_src.cpython-37.pyc
Назад
B �5�g�y � @ sR d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m Z ddlmZ ddl mZmZ ddlmZ ddlmZmZmZmZmZ dd lmZ dd lmZ d d� ZG dd � d ej�Ze�dej �j!Z"e�dej �j!Z#e�dej �j!Z$e�dej �j%Z&e�dej �j%Z'dd� Z(dd� Z)dd� Z*e�dej �j!Z+e�dej �j!Z,dd� 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 C s� t �d�}t|d��j}t| d��T}xL|D ]D}|�|�}|rb|�|�d|�d� ||�d� �� q(|�|� q(W W dQ R X W dQ R X 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�m� r! �W/home/digitalm-up/venv/lib/python3.7/site-packages/numpy/distutils/command/build_src.py� subst_vars s (r# c @ s� e Zd ZdZdddddddd d dg Zdd dgZg Zdd� Zdd� Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zg fd)d*�Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5S )6� 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)zverbose-cfgNzJchange logging level from WARN to INFO which will show all compiler outputr% r'