�`^c@s�dZdZddlZddlmZddlmZddlmZddl m
Z
mZddlm
Z
dd lmZd
efd��YZdS(s�distutils.command.bdist_dumb
Implements the Distutils 'bdist_dumb' command (create a "dumb" built
distribution -- i.e., just an archive to be unpacked under $prefix or
$exec_prefix).s$Id$i�N(tget_python_version(tget_platform(tCommand(tremove_treetensure_relative(tDistutilsPlatformError(tlogt
bdist_dumbcBs�eZdZd"ddde�fd#d
ddd
fd$d&d'd(d)g Zd
ddgZidd6dd6dd6Zd�Zd �Z d!�Z
RS(*s"create a "dumb" built distributions
bdist-dir=tds1temporary directory for creating the distributions
plat-name=tps;platform name to embed in generated filenames (default: %s)sformat=tfs0archive format to create (tar, ztar, gztar, zip)s keep-temptks/keep the pseudo-installation tree around after s!creating the distribution archives dist-dir=s-directory to put final built distributions ins
skip-builds2skip rebuilding everything (for testing/debugging)trelatives6build the archive using relative paths(default: false)sowner=tus@Owner name used when creating a tar file [default: current user]sgroup=tgsAGroup name used when creating a tar file [default: current group]tgztartposixtziptnttos2cCsUd|_d|_d|_d|_d|_d|_d|_d|_d|_ dS(Ni(
tNonet bdist_dirt plat_nametformatt keep_temptdist_dirt
skip_buildRtownertgroup(tself((s2/sys/lib/python2.7/distutils/command/bdist_dumb.pytinitialize_options7s cCs�|jdkr<|jd�j}tjj|d�|_n|jdkr�y|jtj |_Wq�t
k
r�tddtj �q�Xn|jddd d
�dS(Ntbdisttdumbs2don't know how to create dumb built distributions son platform %sRRR(sdist_dirsdist_dir(s plat_names plat_name(s
skip_builds
skip_build(
RRtget_finalized_commandt
bdist_basetostpathtjoinRtdefault_formattnametKeyErrorRtset_undefined_options(RR"((s2/sys/lib/python2.7/distutils/command/bdist_dumb.pytfinalize_optionsBs
c Cs�|js|jd�n|jddd�}|j|_|j|_d|_tjd|j�|jd�d|jj �|j
f}tjdkr�|j
d d
�}ntjj|j|�}|js�|j}nj|jj�r&|j|jkr&tdt|j�t|j�f�n!tjj|jt|j��}|j||jd|d
|jd|j�}|jj�r�t�}nd}|jjjd||f�|js�t |jd|j!�ndS(Ntbuildtinstalltreinit_subcommandsiisinstalling to %ss%s.%sRt:t-sScan't make a dumb built distribution where base and platbase are different (%s, %s)troot_dirRRtanyRtdry_run("Rtrun_commandtreinitialize_commandRtroottwarn_dirRtinfotdistributiontget_fullnameRR#R'treplaceR$R%RRthas_ext_modulestinstall_basetinstall_platbaseRtreprRtmake_archiveRRRRt
dist_filestappendRRR2(RR,tarchive_basenametpseudoinstall_roottarchive_roottfilenamet pyversion((s2/sys/lib/python2.7/distutils/command/bdist_dumb.pytrunTsB
(s
bdist-dir=Rs1temporary directory for creating the distribution(sformat=R
s0archive format to create (tar, ztar, gztar, zip)(s dist-dir=Rs-directory to put final built distributions inN(s
skip-buildNs2skip rebuilding everything (for testing/debugging)(srelativeNs6build the archive using relative paths(default: false)(sowner=R
s@Owner name used when creating a tar file [default: current user](sgroup=RsAGroup name used when creating a tar file [default: current group](t__name__t
__module__tdescriptionRRtuser_optionstboolean_optionsR&RR*RG(((s2/sys/lib/python2.7/distutils/command/bdist_dumb.pyRs8
(t__doc__t__revision__R#t sysconfigRtdistutils.utilRtdistutils.coreRtdistutils.dir_utilRRtdistutils.errorsRt distutilsRR(((s2/sys/lib/python2.7/distutils/command/bdist_dumb.pyt<module>s
|