B @= rĽ} @ sT d Z ddlZddlZddlmZ ddlmZ ddlmZ dd Z G dd d eZ dS ) zBdistutils.command.build Implements the Distutils 'build' command. N)Command)DistutilsOptionError)get_platformc C s ddl m} | d S )Nr )show_compilers)distutils.ccompilerr )r r /builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/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)debuggz;compile extensions and libraries with debugging information)forcefz2forcibly 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_scriptscompiler plat_namer r executableparallel)selfr r r initialize_options8 s zbuild.initialize_optionsc C sd | j d krt | _ ntjdkr&tdd| j ftjd d }ttdrR|d7 }| jd krntj | jd| _| jd krtj | jd| | _| j d kr| j r| j| _ n| j| _ | jd krtj | jd| | _| jd krtj | jd tjd d | _| jd kr"tjr"tj tj| _t| jtr`yt| j| _W n tk r^ td Y nX d S )NntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z .%s-%d.%d gettotalrefcountz-pydebuglibtempz scripts-%d.%dzparallel should be an integer)r r osnamer sysversion_infohasattrr pathjoinr r r distributionhas_ext_modulesr r r normpath isinstancer strint ValueError)r plat_specifierr r r finalize_optionsH s<