a
´i‡ ã @ sP d dl Z d dlZd dlmZ d dlmZ d dlmZ dd„ ZG dd„ deƒZ dS ) é N)ÚCommand)ÚDistutilsOptionError)Úget_platformc C s ddl m} | ƒ d S )Nr ©Úshow_compilers)Zdistutils.ccompilerr r © r ú//usr/lib64/python3.9/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_scriptsZcompilerÚ plat_namer r Ú
executableÚparallel©Úselfr r r Úinitialize_options8 s zbuild.initialize_optionsc C sb | j d u rtƒ | _ ntjdkr&tdƒ‚d| j gtjd d… ¢R }ttdƒrT|d7 }| jd u rptj
| jd¡| _| jd u r�tj
| jd| ¡| _| j
d u r´| jjr¬| j| _
n| j| _
| jd u rÔtj
| jd| ¡| _| jd u rþtj
| jd tjd d… ¡| _| jd u �r"tj�r"tj tj¡| _t| jtƒ�r^zt| jƒ| _W n t�y\ td
ƒ‚Y n0 d S )NÚntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z .%s-%d.%dé Zgettotalrefcountz-pydebugÚlibZtempz
scripts-%d.%dzparallel should be an integer)r r ÚosÚnamer ÚsysÚversion_infoÚhasattrr ÚpathÚjoinr r r ÚdistributionZext_modulesr r r ÚnormpathÚ
isinstancer ÚstrÚintÚ
ValueError)r Zplat_specifierr r r Úfinalize_optionsH sD
ÿ
ÿ
ÿ
ÿzbuild.finalize_optionsc C s | ¡ D ]}| |¡ qd S ©N)Zget_sub_commandsZrun_command)r Zcmd_namer r r Úrun€ s z build.runc C s
| j ¡ S r1 )r* Úhas_pure_modulesr r r r r3 Œ s zbuild.has_pure_modulesc C s
| j ¡ S r1 )r* Úhas_c_librariesr r r r r4 � s zbuild.has_c_librariesc C s
| j ¡ S r1 )r* Úhas_ext_modulesr r r r r5 ’ s zbuild.has_ext_modulesc C s
| j ¡ S r1 )r* Úhas_scriptsr r r r r6 • s zbuild.has_scriptsZbuild_pyZ
build_clibZ build_extr )Ú__name__Ú
__module__Ú__qualname__Údescriptionr Zuser_optionsZboolean_optionsr Zhelp_optionsr r0 r2 r3 r4 r5 r6 Zsub_commandsr r r r r sF ÿÿçÿÿ8ýr )
r% r# Zdistutils.corer Zdistutils.errorsr Zdistutils.utilr r r r r r r Ú