Ë
    
_ßdÐ  ã                   óX   — d Z ddlZddlZddlmZ ddlmZ ddlmZ d„ Z	 G d„ d	e«      Z
y)
zBdistutils.command.build

Implements the Distutils 'build' command.é    Né   )ÚCommand)ÚDistutilsOptionError)Úget_platformc                  ó   — ddl m}   | «        y )Nr   ©Úshow_compilers)Ú	ccompilerr	   r   s    úE/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.pyr	   r	      s   € Ý*áÕó    c                   óž   — e Zd ZdZdddddddd	d
 e«       z  fdddddgZddgZdddefgZd„ Z	d„ Z
d„ Zd„ Zd„ Zd„ Zd„ ZdefdefdefdefgZy) Úbuildz"build everything needed to install)zbuild-base=Úbz base directory for build library)zbuild-purelib=Nz2build directory for platform-neutral distributions)zbuild-platlib=Nz3build directory for platform-specific distributions)z
build-lib=NzWbuild directory for all distribution (defaults to either build-purelib or build-platlib)zbuild-scripts=Nzbuild directory for scripts)zbuild-temp=Útztemporary build directoryz
plat-name=Úpz6platform name to build for, if supported (default: %s))z	compiler=Úczspecify the compiler type)z	parallel=Újznumber of parallel build jobs)ÚdebugÚgz;compile extensions and libraries with debugging information)ÚforceÚfz2forcibly build everything (ignore file timestamps))zexecutable=Úez5specify final destination interpreter path (build.py)r   r   zhelp-compilerNzlist available compilersc                 ó¬   — d| _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d| _	        d | _
        d | _        y )Nr   r   )Ú
build_baseÚbuild_purelibÚbuild_platlibÚ	build_libÚ
build_tempÚbuild_scriptsÚcompilerÚ	plat_namer   r   Ú
executableÚparallel©Úselfs    r   Úinitialize_optionszbuild.initialize_options4   s[   € Ø!ˆŒð "ˆÔØ!ˆÔØˆŒØˆŒØ!ˆÔØˆŒØˆŒØˆŒ
ØˆŒ
ØˆŒØˆ�r   c                 óà  — | j                   €t        «       | _         nt        j                  dk7  rt	        d«      ‚dj                  | j                   t        j                  j                  «      }t        t        d«      r|dz  }| j                  €/t        j                  j                  | j                  d«      | _
        | j                  €2t        j                  j                  | j                  d|z   «      | _        | j                  €=| j                   j#                  «       r| j                  | _        n| j                  | _        | j$                  €2t        j                  j                  | j                  d|z   «      | _        | j&                  €Ct        j                  j                  | j                  dt        j(                  d d	 z  «      | _        | j*                  €Bt        j*                  r2t        j                  j-                  t        j*                  «      | _        t/        | j0                  t2        «      r	 t5        | j0                  «      | _        y y # t6        $ r t	        d
«      ‚w xY w)NÚntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z.{}-{}Úgettotalrefcountz-pydebugÚlibÚtempzscripts-%d.%dr   zparallel 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_specifiers     r   Úfinalize_optionszbuild.finalize_optionsD   sÖ  € Ø�>‰>Ð!Ü)›^ˆD�Nô
 �w‰w˜$ŠÜ*ðCóð ð
 "Ÿ™¨¯©¼×9KÑ9K×9UÑ9UÓVˆô
 ”3Ð*Ô+Ø˜jÑ(ˆNð
 ×ÑÐ%Ü!#§¡§¡¨d¯o©o¸uÓ!EˆDÔØ×ÑÐ%Ü!#§¡§¡¨d¯o©o¸uÀ~Ñ?UÓ!VˆDÔð
 �>‰>Ð!Ø× Ñ ×0Ñ0Ô2Ø!%×!3Ñ!3�•à!%×!3Ñ!3�”ð �?‰?Ð"Ü Ÿg™gŸl™l¨4¯?©?¸FÀ^Ñ<SÓTˆDŒOØ×ÑÐ%Ü!#§¡§¡Ø—‘ ´3×3CÑ3CÀBÀQÐ3GÑ!Gó"ˆDÔð �?‰?Ð"¤s§~¢~Ü Ÿg™g×.Ñ.¬s¯~©~Ó>ˆDŒOä�d—m‘m¤SÔ)ðLÜ # D§M¡MÓ 2�•ð *øô ò LÜ*Ð+JÓKÐKðLús   È<I ÉI-c                 óP   — | j                  «       D ]  }| j                  |«       Œ y ©N)Úget_sub_commandsÚrun_command)r%   Úcmd_names     r   Úrunz	build.run|   s*   € ð ×-Ñ-Ó/ò 	'ˆHØ×Ñ˜XÕ&ñ	'r   c                 ó6   — | j                   j                  «       S r@   )r5   Úhas_pure_modulesr$   s    r   rF   zbuild.has_pure_modules‡   s   € Ø× Ñ ×1Ñ1Ó3Ð3r   c                 ó6   — | j                   j                  «       S r@   )r5   Úhas_c_librariesr$   s    r   rH   zbuild.has_c_librariesŠ   ó   € Ø× Ñ ×0Ñ0Ó2Ð2r   c                 ó6   — | j                   j                  «       S r@   )r5   r6   r$   s    r   r6   zbuild.has_ext_modules�   rI   r   c                 ó6   — | j                   j                  «       S r@   )r5   Úhas_scriptsr$   s    r   rL   zbuild.has_scripts�   s   € Ø× Ñ ×,Ñ,Ó.Ð.r   Úbuild_pyÚ
build_clibÚ	build_extr   )Ú__name__Ú
__module__Ú__qualname__Údescriptionr   Úuser_optionsÚboolean_optionsr	   Úhelp_optionsr&   r>   rD   rF   rH   r6   rL   Úsub_commands© r   r   r   r      sÄ   „ Ø6€Kð 	AØVØWð	
ð 	@Ø9àØðÙ*›nñ-ð	
ð 	8Ø;ØUØLØUð-€Lð2  Ð(€Oð 
˜$Ð :¸NÐKð€Lòò 6Lòp'ò4ò3ò3ò/ð 
Ð%Ð&Ø	�Ð'Ø	�oÐ&Ø	˜+Ð&ð	�Lr   r   )Ú__doc__r/   r,   Úcorer   Úerrorsr   Úutilr   r	   r   rX   r   r   ú<module>r]      s.   ðñ-ó Û 	Ý Ý )Ý òôFˆGõ Fr   