MINI MINI MANI MO
3
  \t                 @   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)Zdistutils.ccompilerr   )r    r   //usr/lib64/python3.6/distutils/command/build.pyr      s    r   c               @   s   e Zd ZdZd8d9d: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 )Dbuildz"build everything needed to installbuild-base=b base directory for build librarybuild-purelib=N2build directory for platform-neutral distributionsbuild-platlib=3build directory for platform-specific distributions
build-lib=z9build directory for all distribution (defaults to either zbuild-purelib or build-platlibbuild-scripts=build directory for scriptsbuild-temp=ttemporary build directoryz
plat-name=pz6platform name to build for, if supported (default: %s)	compiler=cspecify the compiler type	parallel=jnumber of parallel build jobsdebugg;compile extensions and libraries with debugging informationforcef2forcibly build everything (ignore file timestamps)executable=e5specify final destination interpreter path (build.py)z
help-compilerzlist 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    
executableparallel)selfr   r   r   initialize_options8   s    zbuild.initialize_optionsc             C   sZ  | j d krt | _ ntjdkr&tdd| j ftjd d  }ttdrR|d7 }| jd krntj	j
| jd| _| jd krtj	j
| jd| | _| j
d kr| jjr| j| _
n| j| _
| jd krtj	j
| jd| | _| jd krtj	j
| jd	tjd d  | _| jd krtj	jtj| _t| jtrVyt| j| _W n tk
rT   td
Y nX d S )NntzW--plat-name only supported on Windows (try using './configure --help' on your platform)z	.%s-%d.%d   gettotalrefcountz-pydebuglibZtempz
scripts-%d.%dzparallel should be an integer)r,   r   osnamer   sysversion_infohasattrr'   pathjoinr&