ɦ~> l d Z ddlmZ ddlmZmZ ddlZddlZddlZ G d de Z d Z
d Zd ZdS )
zdistutils.command.install_egg_info
Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata. )Command)logdir_utilNc 4 e Zd ZdZdZdgZd Zd Zd Zd Z dS ) install_egg_infoz)Install an .egg-info file for the packagez8Install package's PKG-INFO metadata as an .egg-info file)zinstall-dir=dzdirectory to install toc d | _ d S N)install_dirselfs O/opt/alt/python-internal/lib64/python3.11/distutils/command/install_egg_info.pyinitialize_optionsz#install_egg_info.initialize_options s c | dd dt t | j t t | j gt j d d R z }t j
| j | | _
| j
g| _ d S )Ninstall_lib)r r z%s-%s-py%d.%d.egg-info )set_undefined_optionsto_filename safe_namedistributionget_namesafe_versionget_versionsysversion_infoospathjoinr targetoutputs)r
basenames r finalize_optionsz!install_egg_info.finalize_options s ""=1NOOO+ $"3"<"<">">??@@T%6%B%B%D%DEEFF/
bqb
!/
/
gll4#3X>>}r c | j }t j | r;t j | st j || j nt j | r+| t j
| j fd|z nSt j | j s/| t j | j fd| j z t j d| | j sLt |dd 5 }| j j | d d d d S # 1 swxY w Y d S d S )N)dry_runz Removing z Creating z
Writing %swzUTF-8)encoding)r r r isdirislinkr remove_treer% existsexecuteunlinkr makedirsr infoopenr metadatawrite_pkg_file)r
r fs r runzinstall_egg_info.run s
7== 7)?)? 7 >>>>>
W^^F
#
# 7LLDK>+f2DEEEEt/00 7LLt'7&9$T%55
7
7
7v&&&| =fcG444
=!*99!<<<
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
= = =s - EE!Ec | j S r
)r! r s r get_outputszinstall_egg_info.get_outputs. s
|r N)
__name__
__module____qualname____doc__descriptionuser_optionsr r# r4 r6 r r r r se 33LK8L % % %= = = r r c . t j dd| S )zConvert an arbitrary string to a standard distribution name
Any runs of non-alphanumeric/. characters are replaced with a single '-'.
[^A-Za-z0-9.]+-)resubnames r r r 6 s
6"C...r c Z | dd } t j dd| S )zConvert 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.
.r? r@ )replacerA rB )versions r r r > s, ooc#&&G
6"C111r c . | dd S )z|Convert a project or version name to its filename-escaped form
Any '-' characters are currently replaced with '_'.
r@ _)rH rC s r r r H s
<<C r )
r:
distutils.cmdr distutilsr r r r rA r r r r r= r r