128
  5   ˆl–Ü4ý( ©¤ýÔâ�À=q§ÔÅ£�þB gpCŽ2çóËƒh¹ÊÁÍ      Normal
     ˆÈÇÊ605ÆÁÍ ]    ‹      Õ–_oÚ0Àßû)<?ìŽ´…©mðÔ¤¡Q@”iš¦©2±!V;²”~ú98mÓ©htk+ötwñåî~öùOø.v&ßG]ôyrÑG£¯Ÿú½Â5€oG€hù�ãz# è0Â‰µù)Àjµª¯ŽêJÏa2†Äfé1«ElëÌ2LÂâ9@aÂ)s…VØ”“ždü©µ°F0îþ[`|)bn
Ýò2ž)½.E+ ©o”f³ñÈ<j†àC»dPf§Š­‹"‚×Ièân�èt“·P5	m‚–4sÙÆVå˜„"›#£ã6+i`šRy]Ÿ‹F4µmü£×þt~`“âoR”h>kã��öàlØŽ0ÐŒ‡@Ÿö¹p>ç˜ô©±(SLÌg[�/½ó¥¸Ý0ò>7±¹J>¸‚C¬¢Æ*59u¬MG�èª—waš?šŒÑù¸;˜D½±ŸV„x¨îß—“Õ\Z	Ícë†J8Ÿé½œšüìÎDeéZÌ‹	B5ô¤ç3xg*e\W‰·±ÞÕëeµÊßÊ:l¶jAPNPðá´ÑBèë_Èk©V²
àÚáI %S!9&^î p  8mžlpGÐ—7È“µ¹òM†IÅØ%ö
E§`I²Ñ÷eMvß¹Zqí6…—/Qÿo
íŽ£eqc`r¯îË2<ÃXjÂFìKù»w‘YLË;Ã!Üëÿá»àKw—aâåK ¼q�ØÕ­’Ü`R1vî©Æñ_¢ìøˆ�òyÂæ5‚Òþ�”ý'5    6   ˆl–Ðz¾”Šj"Tâ‚À½q¶”Å£�þG+ë8ÙHÜn†G¥xÏÌƒÀËÃÂÎ 
ù    """
distutils.command.install_egg_info

Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata.
"""

import os
import re
import sys
from typing import ClassVar

from .. import dir_util
from .._log import log
from ..cmd import Command


class install_egg_info(Command):
    """Install an .egg-info file for the package"""

    description = "Install package's PKG-INFO metadata as an .egg-info file"
    user_options: ClassVar[list[tuple[str, str, str]]] = [
        ('install-dir=', 'd', "directory to install to"),
    ]

    def initialize_options(self):
        self.install_dir = None

    @property
    def basename(self):
        """
        Allow basename to be overridden by child class.
        Ref pypa/distutils#2.
        """
        name = to_filename(safe_name(self.distribution.get_name()))
        version = to_filename(safe_version(self.distribution.get_version()))
        return f"{name}-{version}-py{sys.version_info.major}.{sys.version_info.minor}.egg-info"

    def finalize_options(self):
        self.set_undefined_options('install_lib', ('install_dir', 'install_dir'))
        self.target = os.path.join(self.install_dir, self.basename)
        self.outputs = [self.target]

    def run(self):
        target = self.target
        if os.path.isdir(target) and not os.path.islink(target):
            dir_util.remove_tree(target)
        elif os.path.exists(target):
            self.execute(os.unlink, (self.target,), "Removing " + target)
        elif not os.path.isdir(self.install_dir):
            self.execute(
                os.makedirs, (self.install_dir,), "Creating " + self.install_dir
            )
        log.info("Writing %s", target)
        with open(target, 'w', encoding='UTF-8') as f:
            self.distribution.metadata.write_pkg_file(f)

    def get_outputs(self):
        return self.outputs


# The following routines were originally copied from setuptools' pkg_resources
# module and intended to be replaced by stdlib versions. They're now just legacy
# cruft.


def safe_name(name):
    """Convert an arbitrary string to a standard distribution name

    Any runs of non-alphanumeric/. characters are replaced with a single '-'.
    """
    return re.sub('[^A-Za-z0-9.]+', '-', name)


def safe_version(version):
    """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.
    """
    version = version.replace(' ', '.')
    return re.sub('[^A-Za-z0-9.]+', '-', version)


def to_filename(name):
    """Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    """
    return name.replace('-', '_')
      ˆÄ�þBô±¬Ü¡±µ œ)üÿÌƒq—ÛËÃÂÎ û    """
    pygments.lexers.clean
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for the Clean language.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
"""

from pygments.lexer import ExtendedRegexLexer, words, default, include, bygroups
from pygments.token import Comment, Error, Keyword, Literal, Name, Number, \
    Operator, Punctuation, String, Whitespace

__all__ = ['CleanLexer']


cla