Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/setuptools/_distutils/command/__pycache__/build.cpython-37.pyc
Назад
B �5�g� � @ sT d Z ddlZddlZddlmZ ddlmZ ddlmZ dd� Z G d d � d e�Z dS )zBdistutils.command.build Implements the Distutils 'build' command.� N� )�Command)�DistutilsOptionError)�get_platformc C s ddl m} | � d S )Nr )�show_compilers)Z ccompilerr )r � r �K/tmp/pip-install-251nq386/setuptools/setuptools/_distutils/command/build.pyr s r c @ s� e Zd ZdZdddddddd d e� fddd ddgZddgZdddefgZdd� Z dd� Z dd� Zdd� Zdd� Z dd � Zd!d"� Zd#efd$e fd%efd&efgZdS )'�buildz"build everything needed to install)zbuild-base=�bz base directory for build library)zbuild-purelib=Nz2build directory for platform-neutral distributions)zbuild-platlib=Nz3build directory for platform-specific distributions)z build-lib=NzWbuild directory for all distribution (defaults to either build-purelib or build-platlib)zbuild-scripts=Nzbuild directory for scripts)zbuild-temp=�tztemporary build directoryz plat-name=�pz6platform name to build for, if supported (default: %s))z compiler=�czspecify the compiler type)z parallel=�jznumber of parallel build jobs)�debug�gz;compile extensions and libraries with debugging information)�force�fz2forcibly build everything (ignore file timestamps))zexecutable=�ez5specify final destination interpreter path (build.py)r r z help-compilerNzlist available compilersc C sL d| _ d | _d | _d | _d | _d | _d | _d | _d | _d| _ d | _ d | _d S )Nr r )� build_base� build_purelib� build_platlib� build_lib� build_temp� build_scripts�compiler� plat_namer r � executable�parallel)�selfr r r �initialize_options4 s zbuild.initialize_optionsc C s\ | j d krt� | _ ntjdkr&td��d�| j tjj�}t td�rJ|d7 }| j d krftj�| j d�| _ | jd kr�tj�| j d| �| _| jd kr�| j�� r�| j| _n| j | _| jd kr�tj�| j d| �| _| jd kr�tj�| j dtjd d � �| _| jd k�rtj�rtj�tj�| _t| jt��rXyt| j�| _W n tk �rV td ��Y nX d S )N�ntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z.{}-{}�gettotalrefcountz-pydebug�lib�tempz scripts-%d.%dr zparallel should be an integer)r r �os�namer �format�sys�implementation� cache_tag�hasattrr �path�joinr r r �distribution�has_ext_modulesr r �version_infor �normpath� isinstancer �str�int� ValueError)r �plat_specifierr r r �finalize_optionsD s8 zbuild.finalize_optionsc C s x| � � D ]}| �|� q W d S )N)�get_sub_commands�run_command)r �cmd_namer r r �run| s z build.runc C s | j �� S )N)r- �has_pure_modules)r r r r r; � s zbuild.has_pure_modulesc C s | j �� S )N)r- �has_c_libraries)r r r r r<