Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib64/python3.6/distutils/command/__pycache__/ |
| [Home] [System Details] [Kill Me] |
3
\t�@sTdZddlZddlZddlmZddlmZddlmZdd�Z Gdd �d e�Z
dS)
zBdistutils.command.build
Implements the Distutils 'build'
command.�N)�Command)�DistutilsOptionError)�get_platformcCsddlm}|�dS)Nr)�show_compilers)Zdistutils.ccompilerr)r�r�/usr/lib64/python3.6/build.pyrsrc@s�eZdZdZd8d9d:d<d=d>ddde�fd?d@dAdBdCgZddgZd$dd%efgZd&d'�Z d(d)�Z
d*d+�Zd,d-�Zd.d/�Z
d0d1�Zd2d3�Zd4efd5e
fd6efd7efgZdS)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
zbuild-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-compilerzlist available
compilerscCsLd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_
d|_dS)Nrr)�
build_base�
build_purelib�
build_platlib� build_lib�
build_temp�
build_scriptsZcompiler� plat_namerr �
executable�parallel)�selfrrr�initialize_options8szbuild.initialize_optionscCsZ|jdkrt�|_ntjdkr&td��d|jftjdd��}ttd�rR|d7}|jdkrntj j
|jd�|_|jdkr�tj j
|jd|�|_|j
dkr�|jjr�|j|_
n|j|_
|jdkr�tj j
|jd|�|_|jdkr�tj j
|jd tjdd��|_|jdk�rtj jtj�|_t|jt��rVyt|j�|_Wntk
�rTtd
��YnXdS)N�ntzW--plat-name only supported on Windows (try using
'./configure --help' on your
platform)z .%s-%d.%d��gettotalrefcountz-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_specifierrrr�finalize_optionsHs<
zbuild.finalize_optionscCs x|j�D]}|j|�q
WdS)N)Zget_sub_commandsZrun_command)r/Zcmd_namerrr�run�sz build.runcCs
|jj�S)N)r<�has_pure_modules)r/rrrrD�szbuild.has_pure_modulescCs
|jj�S)N)r<�has_c_libraries)r/rrrrE�szbuild.has_c_librariescCs
|jj�S)N)r<�has_ext_modules)r/rrrrF�szbuild.has_ext_modulescCs
|jj�S)N)r<�has_scripts)r/rrrrG�szbuild.has_scriptsZbuild_pyZ
build_clibZ build_extr+)r r
r)rNr
)rNr�Wbuild directory for all distribution (defaults to
either build-purelib or
build-platlib)rNrH)rNr)rrr)rrr)rrr)rrr)r
r!r")r#r$r%)�__name__�
__module__�__qualname__�descriptionrZuser_optionsZboolean_optionsrZhelp_optionsr0rBrCrDrErFrGZsub_commandsrrrrrsR
8r)�__doc__r7r5Zdistutils.corerZdistutils.errorsrZdistutils.utilrrrrrrr�<module>s