509318396
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3

  \t  ã               @   sP   d dl Z d dlZd dlmZ d dlmZ d dlmZ dd„ ZG dd„ deƒZ	dS )	é    N)ÚCommand)ÚDistutilsOptionError)Úget_platformc              C   s   ddl m}  | ƒ  d S )Nr   )Úshow_compilers)Zdistutils.ccompilerr   )r   © r   ú//usr/lib64/python3.6/distutils/command/build.pyr      s    r   c               @   s¢   e Zd ZdZd8d9d:d<d=d>dddeƒ  fd?d@dAdBdCgZddgZd$dd%efgZd&d'„ Z	d(d)„ Z
d*d+„ Zd,d-„ Zd.d/„ Zd0d1„ Zd2d3„ Zd4efd5efd6efd7efgZdS )DÚbuildz"build everything needed to installúbuild-base=Úbú base directory for build libraryúbuild-purelib=Nú2build directory for platform-neutral distributionsúbuild-platlib=ú3build directory for platform-specific distributionsú
build-lib=z9build directory for all distribution (defaults to either zbuild-purelib or build-platlibúbuild-scripts=úbuild directory for scriptsúbuild-temp=Útútemporary build directoryz
plat-name=Úpz6platform name to build for, if supported (default: %s)ú	compiler=Úcúspecify the compiler typeú	parallel=Újúnumber of parallel build jobsÚdebugÚgú;compile extensions and libraries with debugging informationÚforceÚfú2forcibly build everything (ignore file timestamps)úexecutable=Úeú5specify final destination interpreter path (build.py)zhelp-compilerzlist 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_scriptsZcompilerÚ	plat_namer   r    Ú
executableÚparallel)Úselfr   r   r   Úinitialize_options8   s    zbuild.initialize_optionsc             C   sZ  | j d krtƒ | _ ntjdkr&tdƒ‚d| j ftjd d… ˜ }ttdƒrR|d7 }| jd krntj	j
| jdƒ| _| jd krŽtj	j
| jd| ƒ| _| jd kr²| jjrª| j| _n| j| _| jd krÒtj	j
| jd| ƒ| _| jd krütj	j
| jd	tjd d…  ƒ| _| jd k�rtj	jtjƒ| _t| jtƒ�rVyt| jƒ| _W n tk
�rT   td
ƒ‚Y nX d S )NÚntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z	.%s-%d.%dé   Úgettotalrefcountz-pydebugÚlibZtempzscripts-%d.%dzparallel should be an integer)r,   r   ÚosÚnamer   ÚsysÚversion_infoÚhasattrr'   ÚpathÚjoinr&   r(   r)   ÚdistributionZext_modulesr*   r+   r-   ÚnormpathÚ
isinstancer.   ÚstrÚintÚ
ValueError)r/   Zplat_specifierr   r   r   Úfinalize_optionsH   s<    












zbuild.finalize_optionsc             C   s    x| j ƒ D ]}| j|ƒ q
W d S )N)Zget_sub_commandsZrun_command)r/   Zcmd_namer   r   r   Úrun€   s    z	build.runc             C   s
   | j jƒ S )N)r<   Úhas_pure_modules)r/   r   r   r   rD   Œ   s    zbuild.has_pure_modulesc             C   s
   | j jƒ S )N)r<   Úhas_c_libraries)r/   r   r   r   rE   �   s    zbuild.has_c_librariesc             C   s
   | j jƒ S )N)r<   Úhas_ext_modules)r/   r   r   r   rF   ’   s    zbuild.has_ext_modulesc             C   s
   | j jƒ S )N)r<   Úhas_scripts)r/   r   r   r   rG   •   s    zbuild.has_scriptsZbuild_pyZ
build_clibZ	build_extr+   )r	   r
   r   )r   Nr   )r   Nr   úWbuild directory for all distribution (defaults to either build-purelib or build-platlib)r   NrH   )r   Nr   )r   r   r   )r   r   r   )r   r   r   )r   r   r   )r    r!   r"   )r#   r$   r%   )Ú__name__Ú
__module__Ú__qualname__Zdescriptionr   Zuser_optionsZboolean_optionsr   Zhelp_optionsr0   rB   rC   rD   rE   rF   rG   Zsub_commandsr   r   r   r   r      sR               
8r   )
r7   r5   Zdistutils.corer   Zdistutils.errorsr   Zdistutils.utilr   r   r   r   r   r   r   Ú<module>   s
   