Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/distutils/command/
Upload File :
Current File : //usr/lib/python2.7/distutils/command/bdist_dumb.pyc


|_c@sdZdZddlZddlmZddlmZddlmZddl	m
Z
mZddlm
Z
dd	lmZd
efdYZdS(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(tremove_treetensure_relative(tDistutilsPlatformError(tlogt
bdist_dumbcBseZdZd"dddefd#d
dd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((s2/usr/lib/python2.7/distutils/command/bdist_dumb.pytinitialize_options7s								cCs|jdkr<|jdj}tjj|d|_n|jdkry|jtj	|_Wqt
k
rtddtj	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/usr/lib/python2.7/distutils/command/bdist_dumb.pytfinalize_optionsBs
	c
Cs|js|jdn|jddd}|j|_|j|_d|_tjd|j|jdd|jj	|j
f}tjdkr|j
d	d
}ntjj|j|}|js|j}nj|jjr&|j|jkr&tdt|jt|jfn!tjj|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("Rtrun_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/usr/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__tdescriptionRRtuser_optionstboolean_optionsR&RR*RG(((s2/usr/lib/python2.7/distutils/command/bdist_dumb.pyRs8
	

		(t__doc__t__revision__R#t	sysconfigRtdistutils.utilRtdistutils.coreRtdistutils.dir_utilRRtdistutils.errorsRt	distutilsRR(((s2/usr/lib/python2.7/distutils/command/bdist_dumb.pyt<module>s