Viewing File: /opt/alt/python35/lib64/python3.5/distutils/command/__pycache__/bdist_dumb.cpython-35.opt-2.pyc



й¼]1ã@s†ddlZddlmZddlmZddlmZmZddlTddl	m
Z
ddlmZGdd	„d	eƒZ
dS)
éN)ÚCommand)Úget_platform)Úremove_treeÚensure_relative)Ú*)Úget_python_version)Úlogc@s™eZdZdZd&dddeƒfd'ddd
dfd(d)d*d+d,g	ZdddgZddddiZd d!„Zd"d#„Z	d$d%„Z
dS)-Ú
bdist_dumbz"create a "dumb" built distributionú
bdist-dir=Údú1temporary directory for creating the distributionz
plat-name=Úpz;platform name to embed in generated filenames (default: %s)úformat=Úfú>archive format to create (tar, gztar, bztar, xztar, ztar, zip)z	keep-tempÚkz/keep the pseudo-installation tree around after z!creating the distribution archiveú	dist-dir=ú-directory to put final built distributions inú
skip-buildNú2skip rebuilding everything (for testing/debugging)Úrelativeú6build the archive using relative paths(default: false)úowner=Úuú@Owner name used when creating a tar file [default: current user]úgroup=ÚgúAGroup name used when creating a tar file [default: current group]ÚposixÚgztarÚntÚzipcCsUd|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr)	Ú	bdist_dirÚ	plat_nameÚformatÚ	keep_tempÚdist_dirÚ
skip_buildrÚownerÚgroup)Úself©r+ú//opt/alt/python35/lib64/python3.5/bdist_dumb.pyÚinitialize_options2s								zbdist_dumb.initialize_optionscCs¡|jdkr9|jdƒj}tjj|dƒ|_|jdkr‡y|jtj|_Wn%t	k
r†t
dtjƒ‚YnX|jdddd	ƒdS)
NZbdistZdumbz@don't know how to create dumb built distributions on platform %sr&r#r')r&r&)r#r#)r'r')r"Zget_finalized_commandÚ
bdist_baseÚosÚpathÚjoinr$Údefault_formatÚnameÚKeyErrorÚDistutilsPlatformErrorZset_undefined_options)r*r.r+r+r,Úfinalize_options=s
	zbdist_dumb.finalize_optionsc	Cs°|js|jdƒ|jdddƒ}|j|_|j|_d|_tjd|jƒ|jdƒd|jj	ƒ|j
f}tjj
|j|ƒ}|js¶|j}nm|jjƒr|j|jkrtdt|jƒt|jƒfƒ‚n!tjj
|jt|jƒƒ}|j||jd	|d
|jd|jƒ}|jjƒrktƒ}nd}|jjjd
||fƒ|js¬t|jd|jƒdS)NZbuildÚinstallZreinit_subcommandsérzinstalling to %sz%s.%szScan't make a dumb built distribution where base and platbase are different (%s, %s)Úroot_dirr(r)Úanyr	Údry_run) r'Zrun_commandZreinitialize_commandr"ÚrootZwarn_dirrÚinfoZdistributionZget_fullnamer#r/r0r1r&rZhas_ext_modulesZinstall_baseZinstall_platbaser5ÚreprrÚmake_archiver$r(r)rZ
dist_filesÚappendr%rr;)r*r7Zarchive_basenameZpseudoinstall_rootZarchive_rootÚfilenameZ	pyversionr+r+r,ÚrunOs>	
	

		
	zbdist_dumb.run)r
rr)rrr)rrr)rNr)rNr)rrr)rrr)Ú__name__Ú
__module__Ú__qualname__ÚdescriptionrZuser_optionsZboolean_optionsr2r-r6rBr+r+r+r,r	s6
	r	)r/Zdistutils.corerZdistutils.utilrZdistutils.dir_utilrrZdistutils.errorsZdistutils.sysconfigrZ	distutilsrr	r+r+r+r,Ú<module>s

Back to Directory File Manager