Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
numpy
/
distutils
/
command
/
__pycache__
/
File Content:
build_src.cpython-37.pyc
B <�Fd�x � @ sf d Z ddlmZmZmZ ddlZddlZddlZddlZddl Z ddl mZ ddlm Z mZ ddlmZ ddlmZmZ ddlmZ dd lmZmZmZmZmZ dd lmZ dd lmZ dd� Z!G d d� dej�Z"e�#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%Z0dd� Z1dS )z Build swig and f2py sources. � )�division�absolute_import�print_functionN)� 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�}zlt| d�}zRxL|D ]D}|�|�}|rb|�|�d|�d� ||�d� �� q(|�|� q(W W d|�� X W d|�� 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�close)�target�source�d�varZfsZft�l�m� r# �T/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command/build_src.py� subst_vars s (r% c @ s� e Zd ZdZdddddddd d g ZddgZg Zd d� Zdd� Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zg fd'd(�Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3S )4� 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 modulesr'