Your IP : 172.28.240.42


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


|_c@sdZddlmZddlmZmZddlZddlZddlZdefdYZ	dZ
dZd	ZdS(
sdistutils.command.install_egg_info

Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata.i(tCommand(tlogtdir_utilNtinstall_egg_infocBsDeZdZdZdd
gZdZdZd	Zd
Z	RS(s)Install an .egg-info file for the packages8Install package's PKG-INFO metadata as an .egg-info filesinstall-dir=tdsdirectory to install tosinstall-layoutscustom installation layoutcCsd|_d|_d|_dS(N(tNonetinstall_dirtinstall_layoutt
prefix_option(tself((s8/usr/lib/python2.7/distutils/command/install_egg_info.pytinitialize_optionss		cCsa|jdd|jdd
|jdd|jrdtt|jjtt|jjf}|jjdkr3t	dq3n|j
sd	tjkrd
tt|jjtt|jjtj
d f}n:dtt|jjtt|jjf}tjj|j||_|jg|_dS(Ntinstall_libRtinstallRRs%s-%s.egg-infotdebs"unknown value for --install-layouttreal_prefixs%s-%s-py%s.egg-infoi(sinstall_dirsinstall_dir(sinstall_layoutsinstall_layout(s
prefix_options
prefix_option(R
(tset_undefined_optionsRtto_filenamet	safe_nametdistributiontget_nametsafe_versiontget_versiontlowertDistutilsOptionErrorRtsyst__dict__tversiontostpathtjoinRttargettoutputs(R	tbasename((s8/usr/lib/python2.7/distutils/command/install_egg_info.pytfinalize_optionss(	cCs|j}tjj|rGtjj|rGtj|d|jnptjj|r||j	tj
|jfd|n;tjj|js|j	tj|jfd|jnt
jd||jst|d}|jjj||jndS(Ntdry_runs	Removing s	Creating s
Writing %stw(RRRtisdirtislinkRtremove_treeR"texiststexecutetunlinkRtmakedirsRtinfotopenRtmetadatatwrite_pkg_filetclose(R	Rtf((s8/usr/lib/python2.7/distutils/command/install_egg_info.pytrun3s	%#	cCs|jS(N(R(R	((s8/usr/lib/python2.7/distutils/command/install_egg_info.pytget_outputsBs(sinstall-dir=Rsdirectory to install toN(sinstall-layoutNscustom installation layout(
t__name__t
__module__t__doc__tdescriptionRtuser_optionsR
R!R1R2(((s8/usr/lib/python2.7/distutils/command/install_egg_info.pyRs				cCstjdd|S(sConvert an arbitrary string to a standard distribution name

    Any runs of non-alphanumeric/. characters are replaced with a single '-'.
    s[^A-Za-z0-9.]+t-(tretsub(tname((s8/usr/lib/python2.7/distutils/command/install_egg_info.pyRJscCs%|jdd}tjdd|S(sConvert an arbitrary string to a standard version string

    Spaces become dots, and all other non-alphanumeric characters become
    dashes, with runs of multiple dashes condensed to a single dash.
    t t.s[^A-Za-z0-9.]+R8(treplaceR9R:(R((s8/usr/lib/python2.7/distutils/command/install_egg_info.pyRRscCs|jddS(s|Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    R8t_(R>(R;((s8/usr/lib/python2.7/distutils/command/install_egg_info.pyR\s(
R5t
distutils.cmdRt	distutilsRRRRR9RRRR(((s8/usr/lib/python2.7/distutils/command/install_egg_info.pyt<module>s$?