Current Dir: /snap/core22/2955/usr/lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/

[FILE] bdist.cpython-310.pyc [ edit | delete | rename ]
[FILE] bdist_dumb.cpython-310.pyc [ edit | delete | rename ]
[FILE] bdist_msi.cpython-310.pyc [ edit | delete | rename ]
[FILE] bdist_rpm.cpython-310.pyc [ edit | delete | rename ]
[FILE] bdist_wininst.cpython-310.pyc [ edit | delete | rename ]
[FILE] build.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_clib.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_ext.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_py.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_scripts.cpython-310.pyc [ edit | delete | rename ]
[FILE] check.cpython-310.pyc [ edit | delete | rename ]
[FILE] clean.cpython-310.pyc [ edit | delete | rename ]
[FILE] config.cpython-310.pyc [ edit | delete | rename ]
[FILE] install.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_data.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_egg_info.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_headers.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_lib.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_scripts.cpython-310.pyc [ edit | delete | rename ]
[FILE] py37compat.cpython-310.pyc [ edit | delete | rename ]
[FILE] register.cpython-310.pyc [ edit | delete | rename ]
[FILE] sdist.cpython-310.pyc [ edit | delete | rename ]
[FILE] upload.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]

Viewing: /snap/core22/2955/usr/lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/install_egg_info.cpython-310.pyc

o

�_�a�
�@sddZddlmZddlmZmZddlZddlZddlZGdd�de�Z	dd�Z
d	d
�Zdd�ZdS)
z�distutils.command.install_egg_info

Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata.�)�Command)�log�dir_utilNc@sFeZdZdZdZdgZdd�Zedd��Zdd	�Z	d
d�Z
dd
�ZdS)�install_egg_infoz)Install an .egg-info file for the packagez8Install package's PKG-INFO metadata as an .egg-info file)zinstall-dir=�dzdirectory to install tocCs
d|_dS�N)�install_dir��self�r�P/usr/lib/python3/dist-packages/setuptools/_distutils/command/install_egg_info.py�initialize_optionss
z#install_egg_info.initialize_optionscCs8dtt|j����tt|j����gtjdd��RS)z_
        Allow basename to be overridden by child class.
        Ref pypa/distutils#2.
        z%s-%s-py%d.%d.egg-infoN�)�to_filename�	safe_name�distribution�get_name�safe_version�get_version�sys�version_infor	rrr�basenames��zinstall_egg_info.basenamecCs.|�dd�tj�|j|j�|_|jg|_dS)N�install_lib)rr)�set_undefined_options�os�path�joinrr�target�outputsr	rrr�finalize_options"sz!install_egg_info.finalize_optionscCs�|j}tj�|�rtj�|�stj||jd�n'tj�|�r+|�	tj
|jfd|�ntj�|j�s?|�	tj|jfd|j�t
�d|�|jsit|ddd��}|jj�|�Wd�dS1sbwYdSdS)N)�dry_runz	Removing z	Creating z
Writing %s�wzUTF-8)�encoding)rrr�isdir�islinkr�remove_treer �exists�execute�unlinkr�makedirsr�info�openr�metadata�write_pkg_file)r
r�frrr�run's�"��zinstall_egg_info.runcCs|jSr)rr	rrr�get_outputs5szinstall_egg_info.get_outputsN)�__name__�
__module__�__qualname__�__doc__�description�user_optionsr
�propertyrrr/r0rrrrrs�
rcCst�dd|�S)z�Convert an arbitrary string to a standard distribution name

    Any runs of non-alphanumeric/. characters are replaced with a single '-'.
    �[^A-Za-z0-9.]+�-)�re�sub��namerrrr=srcCs|�dd�}t�dd|�S)z�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.
    � �.r8r9)�replacer:r;)�versionrrrrEsrcCs|�dd�S)z|Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    r9�_)r@r<rrrrOsr)
r4�
distutils.cmdr�	distutilsrrrrr:rrrrrrrr�<module>s2

Upload File: