ó p®¸Qc@s˜dZdZddlZddlmZddlmZddlmZddl m Z m Z ddl m 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(t get_platform(tCommand(t remove_treetensure_relative(tDistutilsPlatformError(tlogt bdist_dumbc Bs‘eZdZd"dddeƒfd#d d d d 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_buildR townertgroup(tself((s2/sys/lib/python2.7/distutils/command/bdist_dumb.pytinitialize_options7s        cCs§|jdkr<|jdƒj}tjj|dƒ|_n|jdkry|jtj |_Wqt k r‰t 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"((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}t j dkr°|j d d ƒ}nt jj|j|ƒ}|jsÝ|j}nj|jjƒr&|j|jkr&td t|jƒt|jƒf‚n!t jj|jt|jƒƒ}|j||jd |d |jd|jƒ}|jjƒrtƒ}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("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((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__t descriptionRRt user_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.pyts