관리-도구
편집 파일: build_scripts.cpython-37.pyc
B ��Fd� � @ sP d Z ddlmZmZmZ ddlmZ ddlm Z ddl mZ G dd� de�ZdS ) zR Modified version of build_scripts that handles building scripts from functions. � )�division�absolute_import�print_function)� build_scripts)�log)� is_stringc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )r c C s� g }g }x*|D ]"}t |�r&|�|� q|�|� qW |s<|S | j}| �|� xZ|D ]R}||�}|sdqRt |�r�t�d|f � |�|� qRdd� |D � |�t|�� qRW |S )Nz adding '%s' to scriptsc S s g | ]}t �d |f ��qS )z adding '%s' to scripts)r �info)�.0�s� r �X/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command/build_scripts.py� <listcomp>! s z2build_scripts.generate_scripts.<locals>.<listcomp>)r �append� build_dir�mkpathr r �extend�list)�self�scripts�new_scripts�func_scripts�scriptr �funcr r r �generate_scripts s( zbuild_scripts.generate_scriptsc C s, | j s d S | �| j �| _ | j | j_ t�| �S )N)r r �distribution�old_build_scripts�run)r r r r r % s zbuild_scripts.runc C s ddl m} || j�S )Nr )�get_script_files)�numpy.distutils.misc_utilr r )r r r r r �get_source_files1 s zbuild_scripts.get_source_filesN)�__name__� __module__�__qualname__r r r r r r r r s r N)�__doc__� __future__r r r �distutils.command.build_scriptsr r �numpy.distutilsr r r r r r r �<module> s