\d1vdZddlZddlmZddlmZddlmZmZddl Tddl m Z ddl m Z Gd d eZdS) zdistutils.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).N)Command) get_platform) remove_treeensure_relative)*)get_python_version)logc heZdZdZddddezfdddd d d d g Zgd ZdddZdZdZ dZ dS) bdist_dumbz"create a "dumb" built distribution)z bdist-dir=dz1temporary directory for creating the distributionz plat-name=pz;platform name to embed in generated filenames (default: %s))zformat=fz>archive format to create (tar, gztar, bztar, xztar, ztar, zip)) keep-tempkzPkeep the pseudo-installation tree around after creating the distribution archive)z dist-dir=r z-directory to put final built distributions in) skip-buildNz2skip rebuilding everything (for testing/debugging))relativeNz7build the archive using relative paths (default: false))zowner=uz@Owner name used when creating a tar file [default: current user])zgroup=gzAGroup name used when creating a tar file [default: current group])rrrgztarzip)posixntcd|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr) bdist_dir plat_nameformat keep_tempdist_dir skip_buildrownergroup)selfs -..\python\lib\distutils\command\bdist_dumb.pyinitialize_optionszbdist_dumb.initialize_options2sE     c`|j?|dj}tj|d|_|jH |jtj|_n*#t$rtdtjzwxYw| dddddS)Nbdistdumbz@don't know how to create dumb built distributions on platform %s)rr)rr)rr) rget_finalized_command bdist_baseospathjoinrdefault_formatnameKeyErrorDistutilsPlatformErrorset_undefined_options)r"r*s r#finalize_optionszbdist_dumb.finalize_options=s > !33G<<GJW\\*f==DN ;  3"1"':  3 3 3,(*,'2333 3 ""7#;#=#? A A A A As A,,'Bc|js|d|dd}|j|_|j|_d|_t jd|j|d|j d|j }tj |j|}|js|j}n|jrJ|j|jkr:t'dt)|jd t)|jd tj |jt+|j}|||j||j|j }|jrt5}nd }|jjd ||f|jst=|j|jdSdS)Nbuildinstall)reinit_subcommandsrzinstalling to %s.zLcan't make a dumb built distribution where base and platbase are different (z, ))root_dirr r!anyr )dry_run) r run_commandreinitialize_commandrrootwarn_dirr info distribution get_fullnamerr+r,r-rrhas_ext_modules install_baseinstall_platbaser1reprr make_archiverr r!r dist_filesappendrrr=)r"r6archive_basenamepseudoinstall_root archive_rootfilename pyversions r#runzbdist_dumb.runOs% &   W % % %++I!+LL~ !_ #T^444 ###'+&7&D&D&F&F&F&F&*nn6 W\\$-9IJJ} J>LL!1133 J%)AAA,,w34444w78888:;;; "w||DN#273G#H#H J J $$%7%)[<+/:TZ%II   , , . . *,,III $++\9-5-7 8 8 8~ >  = = = = = = > >r%N) __name__ __module__ __qualname__ descriptionr user_optionsboolean_optionsr.r$r3rQr%r#r r s8KJ!3%'3|~~67#:FK)12+L4>==O '"%%N   AAA$,>,>,>,>,>r%r )__doc__r+distutils.corerdistutils.utilrdistutils.dir_utilrrdistutils.errorsdistutils.sysconfigr distutilsr r rXr%r#r`s  """"""'''''';;;;;;;;222222l>l>l>l>l>l>l>l>l>l>r%