Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/command/install_egg_info.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�dZddlmZddlmZmZddlZddlZddlZdefd��YZ	d�Z
d�Zd	�ZdS(
s�distutils.command.install_egg_info

Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata.i�(tCommand(tlogtdir_utilNtinstall_egg_infocBsAeZdZdZd	gZd�Zd�Zd�Zd�ZRS(
s)Install an .egg-info file for the packages8Install package's PKG-INFO metadata as an .egg-info filesinstall-dir=tdsdirectory to install tocCs
d|_dS(N(tNonetinstall_dir(tself((s8/sys/lib/python2.7/distutils/command/install_egg_info.pytinitialize_optionsscCs�|jdd�dtt|jj���tt|jj���tjd f}t	j
j|j|�|_
|j
g|_dS(Ntinstall_libRs%s-%s-py%s.egg-infoi(sinstall_dirsinstall_dir(tset_undefined_optionstto_filenamet	safe_nametdistributiontget_nametsafe_versiontget_versiontsystversiontostpathtjoinRttargettoutputs(Rtbasename((s8/sys/lib/python2.7/distutils/command/install_egg_info.pytfinalize_optionsscCs|j}tjj|�rGtjj|�rGtj|d|j�nptjj|�r||j	tj
|jfd|�n;tjj|j�s�|j	tj|jfd|j�nt
jd|�|js�|d�}|jjj|�|j�ndS(Ntdry_runs	Removing s	Creating s
Writing %stw(RRRtisdirtislinkRtremove_treeRtexiststexecutetunlinkRtmakedirsRtinfotopenR
tmetadatatwrite_pkg_filetclose(RRtf((s8/sys/lib/python2.7/distutils/command/install_egg_info.pytrun s	%#	cCs|jS(N(R(R((s8/sys/lib/python2.7/distutils/command/install_egg_info.pytget_outputs/s(sinstall-dir=Rsdirectory to install to(	t__name__t
__module__t__doc__tdescriptiontuser_optionsRRR)R*(((s8/sys/lib/python2.7/distutils/command/install_egg_info.pyRs			
	cCstjdd|�S(s�Convert 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/sys/lib/python2.7/distutils/command/install_egg_info.pyR7scCs%|jdd�}tjdd|�S(s�Convert 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.]+R0(treplaceR1R2(R((s8/sys/lib/python2.7/distutils/command/install_egg_info.pyR?scCs|jdd�S(s|Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    R0t_(R6(R3((s8/sys/lib/python2.7/distutils/command/install_egg_info.pyRIs(
R-t
distutils.cmdRt	distutilsRRRRR1RRRR(((s8/sys/lib/python2.7/distutils/command/install_egg_info.pyt<module>s$,		

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].