qfc@sdZdZddlZddlmZddlmZddlmZddl m Z m Z ddl m Z dd lmZd efd YZdS( sdistutils.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$iN(tget_python_version(t get_platform(tCommand(t remove_treetensure_relative(tDistutilsPlatformError(tlogt bdist_dumbc BseZdZd"dddefd#d d d d fd$d&d'd(d)g Zd ddgZidd6dd6dd6ZdZd 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_buildR townertgroup(tself((s4/usr/lib64/python2.7/distutils/command/bdist_dumb.pytinitialize_options7s        cCs|jdkr<|jdj}tjj|d|_n|jdkry|jtj |_Wqt k rt ddtj qXn|j ddd 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"((s4/usr/lib64/python2.7/distutils/command/bdist_dumb.pytfinalize_optionsBs  c Cs|js|jdn|jddd}|j|_|j|_d|_tjd|j|jdd|jj |j f}t j dkr|j d d }nt jj|j|}|js|j}nj|jjr&|j|jkr&td t|jt|jfn!t jj|jt|j}|j||jd |d |jd|j}|jjrt}nd}|jjjd||f|jst |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("Rt run_commandtreinitialize_commandRtroottwarn_dirRtinfot distributiont get_fullnameRR#R'treplaceR$R%RR thas_ext_modulest install_basetinstall_platbaseRtreprRt make_archiveRRRRt dist_filestappendRRR2(RR,tarchive_basenametpseudoinstall_roott archive_roottfilenamet pyversion((s4/usr/lib64/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__t descriptionRRt user_optionstboolean_optionsR&RR*RG(((s4/usr/lib64/python2.7/distutils/command/bdist_dumb.pyRs8     (t__doc__t __revision__R#t sysconfigRtdistutils.utilRtdistutils.coreRtdistutils.dir_utilRRtdistutils.errorsRt distutilsRR(((s4/usr/lib64/python2.7/distutils/command/bdist_dumb.pyts