˱֥ d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlm Z mZ ddlmZ ddlmZmZ ddlmZmZmZmZ dd lmZmZmZmZmZmZm Z g d Z! ej" e# Z$dZ%dZ&d eddde%dfZ'dZ( G d de) Z* G d de) Z+ G d de) Z, G d de, Z- G d de- Z. G d de- Z/e.Z0e/Z1 G d d e) Z2d&d"Z3d# Z4d$ Z5d% Z6dS )'zPEP 376 implementation. )unicode_literalsN )DistlibException resources)StringIO) get_schemeUnsupportedVersionError)MetadataMETADATA_FILENAMEWHEEL_METADATA_FILENAMELEGACY_METADATA_FILENAME)parse_requirementcached_propertyparse_name_and_versionread_exports write_exports CSVReader CSVWriter)DistributionBaseInstalledDistributionInstalledDistributionEggInfoDistributionDistributionPathzpydist-exports.jsonzpydist-commands.json INSTALLERRECORD REQUESTED RESOURCESSHAREDz .dist-infoc $ e Zd ZdZd Zd Zd ZdS )_CachezL A simple cache mapping names and .dist-info paths to distributions c 0 i | _ i | _ d| _ dS )zZ Initialise an instance. There is normally one for each DistributionPath. FN)namepath generatedselfs b/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/distlib/database.py__init__z_Cache.__init__1 s c x | j | j d| _ dS )zC Clear the cache, setting it to its initial state. FN)r" clearr# r$ r% s r' r+ z_Cache.clear9 s3 r) c |j | j vrD|| j |j <