Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK! __init__.pynu[PK!ľ *&*& freeze.pynu[import collections import logging import os from typing import Container, Dict, Iterable, Iterator, List, NamedTuple, Optional, Set from pip._vendor.packaging.utils import canonicalize_name from pip._vendor.packaging.version import Version from pip._internal.exceptions import BadCommand, InstallationError from pip._internal.metadata import BaseDistribution, get_environment from pip._internal.req.constructors import ( install_req_from_editable, install_req_from_line, ) from pip._internal.req.req_file import COMMENT_RE from pip._internal.utils.direct_url_helpers import direct_url_as_pep440_direct_reference logger = logging.getLogger(__name__) class _EditableInfo(NamedTuple): requirement: str comments: List[str] def freeze( requirement: Optional[List[str]] = None, local_only: bool = False, user_only: bool = False, paths: Optional[List[str]] = None, isolated: bool = False, exclude_editable: bool = False, skip: Container[str] = (), ) -> Iterator[str]: installations: Dict[str, FrozenRequirement] = {} dists = get_environment(paths).iter_installed_distributions( local_only=local_only, skip=(), user_only=user_only, ) for dist in dists: req = FrozenRequirement.from_dist(dist) if exclude_editable and req.editable: continue installations[req.canonical_name] = req if requirement: # the options that don't get turned into an InstallRequirement # should only be emitted once, even if the same option is in multiple # requirements files, so we need to keep track of what has been emitted # so that we don't emit it again if it's seen again emitted_options: Set[str] = set() # keep track of which files a requirement is in so that we can # give an accurate warning if a requirement appears multiple times. req_files: Dict[str, List[str]] = collections.defaultdict(list) for req_file_path in requirement: with open(req_file_path) as req_file: for line in req_file: if ( not line.strip() or line.strip().startswith("#") or line.startswith( ( "-r", "--requirement", "-f", "--find-links", "-i", "--index-url", "--pre", "--trusted-host", "--process-dependency-links", "--extra-index-url", "--use-feature", ) ) ): line = line.rstrip() if line not in emitted_options: emitted_options.add(line) yield line continue if line.startswith("-e") or line.startswith("--editable"): if line.startswith("-e"): line = line[2:].strip() else: line = line[len("--editable") :].strip().lstrip("=") line_req = install_req_from_editable( line, isolated=isolated, ) else: line_req = install_req_from_line( COMMENT_RE.sub("", line).strip(), isolated=isolated, ) if not line_req.name: logger.info( "Skipping line in requirement file [%s] because " "it's not clear what it would install: %s", req_file_path, line.strip(), ) logger.info( " (add #egg=PackageName to the URL to avoid" " this warning)" ) else: line_req_canonical_name = canonicalize_name(line_req.name) if line_req_canonical_name not in installations: # either it's not installed, or it is installed # but has been processed already if not req_files[line_req.name]: logger.warning( "Requirement file [%s] contains %s, but " "package %r is not installed", req_file_path, COMMENT_RE.sub("", line).strip(), line_req.name, ) else: req_files[line_req.name].append(req_file_path) else: yield str(installations[line_req_canonical_name]).rstrip() del installations[line_req_canonical_name] req_files[line_req.name].append(req_file_path) # Warn about requirements that were included multiple times (in a # single requirements file or in different requirements files). for name, files in req_files.items(): if len(files) > 1: logger.warning( "Requirement %s included multiple times [%s]", name, ", ".join(sorted(set(files))), ) yield ("## The following requirements were added by pip freeze:") for installation in sorted(installations.values(), key=lambda x: x.name.lower()): if installation.canonical_name not in skip: yield str(installation).rstrip() def _format_as_name_version(dist: BaseDistribution) -> str: if isinstance(dist.version, Version): return f"{dist.raw_name}=={dist.version}" return f"{dist.raw_name}==={dist.version}" def _get_editable_info(dist: BaseDistribution) -> _EditableInfo: """ Compute and return values (req, comments) for use in FrozenRequirement.from_dist(). """ editable_project_location = dist.editable_project_location assert editable_project_location location = os.path.normcase(os.path.abspath(editable_project_location)) from pip._internal.vcs import RemoteNotFoundError, RemoteNotValidError, vcs vcs_backend = vcs.get_backend_for_dir(location) if vcs_backend is None: display = _format_as_name_version(dist) logger.debug( 'No VCS found for editable requirement "%s" in: %r', display, location, ) return _EditableInfo( requirement=location, comments=[f"# Editable install with no version control ({display})"], ) vcs_name = type(vcs_backend).__name__ try: req = vcs_backend.get_src_requirement(location, dist.raw_name) except RemoteNotFoundError: display = _format_as_name_version(dist) return _EditableInfo( requirement=location, comments=[f"# Editable {vcs_name} install with no remote ({display})"], ) except RemoteNotValidError as ex: display = _format_as_name_version(dist) return _EditableInfo( requirement=location, comments=[ f"# Editable {vcs_name} install ({display}) with either a deleted " f"local remote or invalid URI:", f"# '{ex.url}'", ], ) except BadCommand: logger.warning( "cannot determine version of editable source in %s " "(%s command not found in path)", location, vcs_backend.name, ) return _EditableInfo(requirement=location, comments=[]) except InstallationError as exc: logger.warning("Error when trying to get requirement for VCS system %s", exc) else: return _EditableInfo(requirement=req, comments=[]) logger.warning("Could not determine repository location of %s", location) return _EditableInfo( requirement=location, comments=["## !! Could not determine repository location"], ) class FrozenRequirement: def __init__( self, name: str, req: str, editable: bool, comments: Iterable[str] = (), ) -> None: self.name = name self.canonical_name = canonicalize_name(name) self.req = req self.editable = editable self.comments = comments @classmethod def from_dist(cls, dist: BaseDistribution) -> "FrozenRequirement": editable = dist.editable if editable: req, comments = _get_editable_info(dist) else: comments = [] direct_url = dist.direct_url if direct_url: # if PEP 610 metadata is present, use it req = direct_url_as_pep440_direct_reference(direct_url, dist.raw_name) else: # name==version requirement req = _format_as_name_version(dist) return cls(dist.raw_name, req, editable, comments=comments) def __str__(self) -> str: req = self.req if self.editable: req = f"-e {req}" return "\n".join(list(self.comments) + [str(req)]) + "\n" PK!kv __init__.pyonu[ abc@sdS(N((((s;/usr/lib/python2.7/site-packages/pip/operations/__init__.pyttPK!Ԟ+8ss freeze.pyonu[ abc @@sddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZejeZddddddedd d ZdS( i(tabsolute_importN(tInstallRequirement(t COMMENT_RE(tget_installed_distributions(t pkg_resources(tcanonicalize_name(tRequirementParseErrorc c@s|p g}d} |r-tj|j} ng} x9tjD].} | jdr=| j| jdq=q=Wx*|D]"} d| krv| j | qvqvWx|D]} d| VqWi} xst d|dd#d|D]V} yt j j | | }Wn'tk r tjd| jqnX|| |jR(( s-rs --requirements-Zs--always-unzips-fs --find-linkss-is --index-urls--pres--trusted-hosts--process-dependency-linkss--extra-index-url(%tNonetretcompiletsearchRt working_sett has_metadatatextendtget_metadata_linestappendRtpiptFrozenRequirementt from_distRtloggertwarningt project_nameRtsettopentstript startswithtrstriptaddtlentlstripRt from_editablet from_lineRtsubtinfotstrtsortedtvaluesR(t requirementt find_linksRR t skip_regexR R RRt skip_matchtdependency_linkstdisttlinkt installationstreqtemitted_optionst req_file_pathtreq_filetlinetline_reqt installation((s9/usr/lib/python2.7/site-packages/pip/operations/freeze.pytfreezes                      ((t __future__RtloggingRRtpip.reqRtpip.req.req_fileRt pip.utilsRt pip._vendorRtpip._vendor.packaging.utilsRtpip._vendor.pkg_resourcesRt getLoggert__name__R!RtFalseRB(((s9/usr/lib/python2.7/site-packages/pip/operations/freeze.pyts     PK!% check.pycnu[ abc@sdZdZdZdS(cCsi}i}xt|D]l}d|j|jf}tt||}|rW||||jD]0}|jj|kr,|j||Vq,q,WdS(s\Return all of the requirements of `dist` that aren't present in `installed_dists`. css|]}|jjVqdS(N(Rtlower(t.0td((s8/usr/lib/python2.7/site-packages/pip/operations/check.pys sN(tsettrequiresRR tadd(RRtinstalled_namestmissing_requirementst requirement((s8/usr/lib/python2.7/site-packages/pip/operations/check.pyRs   ccsqi}x|D]}|||js  PK!% check.pyonu[ abc@sdZdZdZdS(cCsi}i}xt|D]l}d|j|jf}tt||}|rW||||jD]0}|jj|kr,|j||Vq,q,WdS(s\Return all of the requirements of `dist` that aren't present in `installed_dists`. css|]}|jjVqdS(N(Rtlower(t.0td((s8/usr/lib/python2.7/site-packages/pip/operations/check.pys sN(tsettrequiresRR tadd(RRtinstalled_namestmissing_requirementst requirement((s8/usr/lib/python2.7/site-packages/pip/operations/check.pyRs   ccsqi}x|D]}|||js  PK!ͯcheck.pynu["""Validation of dependencies of packages """ import logging from typing import Callable, Dict, List, NamedTuple, Optional, Set, Tuple from pip._vendor.packaging.requirements import Requirement from pip._vendor.packaging.utils import NormalizedName, canonicalize_name from pip._internal.distributions import make_distribution_for_install_requirement from pip._internal.metadata import get_default_environment from pip._internal.metadata.base import DistributionVersion from pip._internal.req.req_install import InstallRequirement logger = logging.getLogger(__name__) class PackageDetails(NamedTuple): version: DistributionVersion dependencies: List[Requirement] # Shorthands PackageSet = Dict[NormalizedName, PackageDetails] Missing = Tuple[NormalizedName, Requirement] Conflicting = Tuple[NormalizedName, DistributionVersion, Requirement] MissingDict = Dict[NormalizedName, List[Missing]] ConflictingDict = Dict[NormalizedName, List[Conflicting]] CheckResult = Tuple[MissingDict, ConflictingDict] ConflictDetails = Tuple[PackageSet, CheckResult] def create_package_set_from_installed() -> Tuple[PackageSet, bool]: """Converts a list of distributions into a PackageSet.""" package_set = {} problems = False env = get_default_environment() for dist in env.iter_installed_distributions(local_only=False, skip=()): name = dist.canonical_name try: dependencies = list(dist.iter_dependencies()) package_set[name] = PackageDetails(dist.version, dependencies) except (OSError, ValueError) as e: # Don't crash on unreadable or broken metadata. logger.warning("Error parsing requirements for %s: %s", name, e) problems = True return package_set, problems def check_package_set( package_set: PackageSet, should_ignore: Optional[Callable[[str], bool]] = None ) -> CheckResult: """Check if a package set is consistent If should_ignore is passed, it should be a callable that takes a package name and returns a boolean. """ missing = {} conflicting = {} for package_name, package_detail in package_set.items(): # Info about dependencies of package_name missing_deps: Set[Missing] = set() conflicting_deps: Set[Conflicting] = set() if should_ignore and should_ignore(package_name): continue for req in package_detail.dependencies: name = canonicalize_name(req.name) # Check if it's missing if name not in package_set: missed = True if req.marker is not None: missed = req.marker.evaluate() if missed: missing_deps.add((name, req)) continue # Check if there's a conflict version = package_set[name].version if not req.specifier.contains(version, prereleases=True): conflicting_deps.add((name, version, req)) if missing_deps: missing[package_name] = sorted(missing_deps, key=str) if conflicting_deps: conflicting[package_name] = sorted(conflicting_deps, key=str) return missing, conflicting def check_install_conflicts(to_install: List[InstallRequirement]) -> ConflictDetails: """For checking if the dependency graph would be consistent after \ installing given requirements """ # Start from the current state package_set, _ = create_package_set_from_installed() # Install packages would_be_installed = _simulate_installation_of(to_install, package_set) # Only warn about directly-dependent packages; create a whitelist of them whitelist = _create_whitelist(would_be_installed, package_set) return ( package_set, check_package_set( package_set, should_ignore=lambda name: name not in whitelist ), ) def _simulate_installation_of( to_install: List[InstallRequirement], package_set: PackageSet ) -> Set[NormalizedName]: """Computes the version of packages after installing to_install.""" # Keep track of packages that were installed installed = set() # Modify it as installing requirement_set would (assuming no errors) for inst_req in to_install: abstract_dist = make_distribution_for_install_requirement(inst_req) dist = abstract_dist.get_metadata_distribution() name = dist.canonical_name package_set[name] = PackageDetails(dist.version, list(dist.iter_dependencies())) installed.add(name) return installed def _create_whitelist( would_be_installed: Set[NormalizedName], package_set: PackageSet ) -> Set[NormalizedName]: packages_affected = set(would_be_installed) for package_name in package_set: if package_name in packages_affected: continue for req in package_set[package_name].dependencies: if canonicalize_name(req.name) in packages_affected: packages_affected.add(package_name) break return packages_affected PK!Ԟ+8ss freeze.pycnu[ abc @@sddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZejeZddddddedd d ZdS( i(tabsolute_importN(tInstallRequirement(t COMMENT_RE(tget_installed_distributions(t pkg_resources(tcanonicalize_name(tRequirementParseErrorc c@s|p g}d} |r-tj|j} ng} x9tjD].} | jdr=| j| jdq=q=Wx*|D]"} d| krv| j | qvqvWx|D]} d| VqWi} xst d|dd#d|D]V} yt j j | | }Wn'tk r tjd| jqnX|| |jR(( s-rs --requirements-Zs--always-unzips-fs --find-linkss-is --index-urls--pres--trusted-hosts--process-dependency-linkss--extra-index-url(%tNonetretcompiletsearchRt working_sett has_metadatatextendtget_metadata_linestappendRtpiptFrozenRequirementt from_distRtloggertwarningt project_nameRtsettopentstript startswithtrstriptaddtlentlstripRt from_editablet from_lineRtsubtinfotstrtsortedtvaluesR(t requirementt find_linksRR t skip_regexR R RRt skip_matchtdependency_linkstdisttlinkt installationstreqtemitted_optionst req_file_pathtreq_filetlinetline_reqt installation((s9/usr/lib/python2.7/site-packages/pip/operations/freeze.pytfreezes                      ((t __future__RtloggingRRtpip.reqRtpip.req.req_fileRt pip.utilsRt pip._vendorRtpip._vendor.packaging.utilsRtpip._vendor.pkg_resourcesRt getLoggert__name__R!RtFalseRB(((s9/usr/lib/python2.7/site-packages/pip/operations/freeze.pyts     PK!kv __init__.pycnu[ abc@sdS(N((((s;/usr/lib/python2.7/site-packages/pip/operations/__init__.pyttPK!)xx __pycache__/check.cpython-36.pycnu[3 Pf6@sddZddZddZdS)cCsbi}i}xP|D]H}d|j|jf}tt||}|r<|||<tt||}|r|||<qW||fS)Nz%s==%s) project_nameversionlistget_missing_reqsget_incompatible_reqs)installed_distsZmissing_reqs_dictZincompatible_reqs_dictdistkeyZ missing_reqsZincompatible_reqsr /usr/lib/python3.6/check.pycheck_requirementss   r ccsLtdd|D}t}x.|jD]"}|jj|kr"|j||Vq"WdS)z\Return all of the requirements of `dist` that aren't present in `installed_dists`. css|]}|jjVqdS)N)rlower).0dr r r sz#get_missing_reqs..N)setrequiresrr add)rrZinstalled_namesZmissing_requirements requirementr r r rs  rccsTi}x|D]}|||j<q Wx2|jD]&}|j|j}|r&||kr&||fVq&WdS)zyReturn all of the requirements of `dist` that are present in `installed_dists`, but have incompatible versions. N)rrget)rrZinstalled_dists_by_nameZinstalled_distrZ present_distr r r r$s   rN)r rrr r r r sPK!PH) ) !__pycache__/freeze.cpython-36.pycnu[3 PfJ @sddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZejeZddddddd dff d d ZdS) )absolute_importN)InstallRequirement) COMMENT_RE)get_installed_distributions) pkg_resources)canonicalize_name)RequirementParseErrorFc cs|pg}d} |rtj|j} g} x(tjD]} | jdr(| j| jdq(Wx|D]} d| krP| j| qPWx|D]} d| VqpWi} xXt |f|dD]F} yt j j | | }Wn$t k rtjd| jwYnX|| |j<qW|rvt}x|D]v}t|b}xX|D]N}|j sL|jjdsL| r@| |sL|jd!rr|j}||kr|j||Vq|jds|jdr|jdr|ddj}n|tddjjd}tj||||d}ntjtjd|j||d}|jstjd||jtjdnD|j| kr@tjd|tjd|jnt | |jjV| |j=qWWdQRXqWdVxszfreeze..)key) r rrrrrrrrrrr)$recompilesearchrZ working_setZ has_metadataextendZget_metadata_linesappendrpipZFrozenRequirementZ from_distrloggerZwarningZ project_namersetopenstrip startswithrstripaddlenlstriprZ from_editableZ from_linersubinfostrsortedvaluesr)Z requirementZ find_linksr r Z skip_regexrrrr Z skip_matchZdependency_linksZdistlinkZ installationsZreqZemitted_optionsZ req_file_pathZreq_filelineZline_reqZ installationr"r"r#freezes               r<)Z __future__rZloggingr&r+Zpip.reqrZpip.req.req_filerZ pip.utilsrZ pip._vendorrZpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrZ getLogger__name__r,r<r"r"r"r#s        PK!)xx&__pycache__/check.cpython-36.opt-1.pycnu[3 Pf6@sddZddZddZdS)cCsbi}i}xP|D]H}d|j|jf}tt||}|r<|||<tt||}|r|||<qW||fS)Nz%s==%s) project_nameversionlistget_missing_reqsget_incompatible_reqs)installed_distsZmissing_reqs_dictZincompatible_reqs_dictdistkeyZ missing_reqsZincompatible_reqsr /usr/lib/python3.6/check.pycheck_requirementss   r ccsLtdd|D}t}x.|jD]"}|jj|kr"|j||Vq"WdS)z\Return all of the requirements of `dist` that aren't present in `installed_dists`. css|]}|jjVqdS)N)rlower).0dr r r sz#get_missing_reqs..N)setrequiresrr add)rrZinstalled_namesZmissing_requirements requirementr r r rs  rccsTi}x|D]}|||j<q Wx2|jD]&}|j|j}|r&||kr&||fVq&WdS)zyReturn all of the requirements of `dist` that are present in `installed_dists`, but have incompatible versions. N)rrget)rrZinstalled_dists_by_nameZinstalled_distrZ present_distr r r r$s   rN)r rrr r r r sPK!m-Wqq#__pycache__/__init__.cpython-36.pycnu[3 Pf@sdS)Nrrr/usr/lib/python3.6/__init__.pysPK!m-Wqq)__pycache__/__init__.cpython-36.opt-1.pycnu[3 Pf@sdS)Nrrr/usr/lib/python3.6/__init__.pysPK!PH) ) '__pycache__/freeze.cpython-36.opt-1.pycnu[3 PfJ @sddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZejeZddddddd dff d d ZdS) )absolute_importN)InstallRequirement) COMMENT_RE)get_installed_distributions) pkg_resources)canonicalize_name)RequirementParseErrorFc cs|pg}d} |rtj|j} g} x(tjD]} | jdr(| j| jdq(Wx|D]} d| krP| j| qPWx|D]} d| VqpWi} xXt |f|dD]F} yt j j | | }Wn$t k rtjd| jwYnX|| |j<qW|rvt}x|D]v}t|b}xX|D]N}|j sL|jjdsL| r@| |sL|jd!rr|j}||kr|j||Vq|jds|jdr|jdr|ddj}n|tddjjd}tj||||d}ntjtjd|j||d}|jstjd||jtjdnD|j| kr@tjd|tjd|jnt | |jjV| |j=qWWdQRXqWdVxszfreeze..)key) r rrrrrrrrrrr)$recompilesearchrZ working_setZ has_metadataextendZget_metadata_linesappendrpipZFrozenRequirementZ from_distrloggerZwarningZ project_namersetopenstrip startswithrstripaddlenlstriprZ from_editableZ from_linersubinfostrsortedvaluesr)Z requirementZ find_linksr r Z skip_regexrrrr Z skip_matchZdependency_linksZdistlinkZ installationsZreqZemitted_optionsZ req_file_pathZreq_filelineZline_reqZ installationr"r"r#freezes               r<)Z __future__rZloggingr&r+Zpip.reqrZpip.req.req_filerZ pip.utilsrZ pip._vendorrZpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrZ getLogger__name__r,r<r"r"r"r#s        PK!;'99#__pycache__/prepare.cpython-310.pycnu[o ai]@sdZddlZddlZddlZddlZddlmZmZmZm Z ddl m Z ddl m Z ddlmZddlmZmZmZmZmZmZmZddlmZdd lmZdd lmZdd lmZdd l m!Z!m"Z"dd l#m$Z$m%Z%ddl&m'Z'ddl(m)Z)ddl*m+Z+ddl,m-Z-ddl.m/Z/m0Z0ddl1m2Z2ddl3m4Z4m5Z5m6Z6m7Z7ddl8m9Z9ddl:m;Z;ddle?Z@de)de+dedeAdef ddZBded eCddfd!d"ZDGd#d$d$ZE  d:ded%e"d&e eCd'e e/deEf d(d)ZFd*eCd+eCddfd,d-ZGd.eCd/eCddfd0d1ZH d:ded&e eCd'e e/deEfd2d3ZI  d:ded eCd%e"d&e eCd'e e/de eEf d4d5ZJded&eCd'e e/de eCfd6d7ZKGd8d9d9ZLdS);z)Prepares a distribution for installation N)DictIterableListOptional)canonicalize_name))make_distribution_for_install_requirement)InstalledDistribution)DirectoryUrlHashUnsupported HashMismatch HashUnpinnedInstallationErrorNetworkConnectionErrorPreviousBuildDirErrorVcsHashUnsupported) PackageFinder)BaseDistribution)Link)Wheel)BatchDownloader Downloader)HTTPRangeRequestUnsupporteddist_from_wheel_url) PipSession)InstallRequirement)RequirementTracker) copy2_fixed)Hashes MissingHashes) indent_log) display_pathhide_urlis_installable_dirrmtree) TempDirectory) unpack_file)vcsreq req_trackerfinderbuild_isolationreturncCsLt|}|||||Wd|S1swY|S)z(Prepare a distribution for installation.N)rtrackprepare_distribution_metadataget_metadata_distribution)r&r'r(r) abstract_distr//builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/prepare.py_get_prepared_distribution1s  r1linklocationcCs0t|j}|dus J|j|t|jddS)N)url)r%get_backend_for_schemeschemeunpackr r4)r2r3 vcs_backendr/r/r0unpack_vcs_link>s  r9c@s&eZdZdedeeddfddZdS)Filepath content_typer*NcCs,||_|durt|d|_dS||_dS)Nr)r; mimetypes guess_typer<)selfr;r<r/r/r0__init__Es z File.__init__)__name__ __module__ __qualname__strrr@r/r/r/r0r:Dsr:download download_dirhashescCsVtddd}d}|rt|||}|r|}d}n|||j\}}|r&||t||S)Nr7Tkindglobally_managed)r#_check_download_dirr;check_against_pathr:)r2rErFrGtemp_diralready_downloaded_path from_pathr<r/r/r0 get_http_urlMs    rPsrcdestc CsNzt||WdStjy&}ztdt|||WYd}~dSd}~ww)zCopying special files is not supported, but as a convenience to users we skip errors copying them. This supports tools that may create e.g. socket files in the project source directory. z>Ignoring special file error '%s' encountered copying %s to %s.N)rshutilSpecialFileErrorloggerwarningrD)rQrRer/r/r0_copy2_ignoring_special_filesesrXsourcetargetcsbtj|}tj|tj|dtdttdttffdd }tj||dt ddS)Ndnamesr*cs6g}|kr |ddg7}tj|kr|g7}|S)Nz.toxz.nox)osr;abspath)r[r\skippedrYtarget_basenametarget_dirnamer/r0ignore~s   z!_copy_source_tree..ignoreT)rcsymlinks copy_function) r]r;r^basenamedirnamerDrrScopytreerX)rYrZtarget_abspathrcr/r`r0_copy_source_treeys   & rjcCs<d}|r t|||}|r|}n|j}|r||t|dS)z'Get file and optionally check its hash.N)rK file_pathrLr:)r2rFrGrNrOr/r/r0 get_file_urls   rlcCs|jr t||dS|r tj|rt|t|j|dS|j r+t |||d}nt ||||d}|j s>t |j||j|S)a_Unpack link into location, downloading if required. :param hashes: A Hashes object, one of whose embedded hashes must match, or HashMismatch will be raised. If the Hashes is empty, no matches are required, and unhashable types of requirements (like VCS ones, which would ordinarily raise HashUnsupported) are allowed. N)rG)is_vcsr9is_existing_dirr]r;isdirr"rjrkis_filerlrPis_wheelr$r<)r2r3rErFrGfiler/r/r0 unpack_urls&    rscCsptj||j}tj|sdStd||r6z||W|Sty5t d|t |YdSw|S)zCheck download_dir for previously downloaded file with correct hash If a correct file is found return its path else None NzFile was already downloaded %sz;Previously-downloaded file %s has bad hash. Re-downloading.) r]r;joinfilenameexistsrUinforLr rVunlink)r2rFrG download_pathr/r/r0rKs"     rKcsPeZdZdZdedeedededededed e d ed ed ed eddffdd Z de ddfddZ de deddfddZ de defddZdedeefddZ d/dee deddfdd Z d/de dedefd!d"Z d/d#ee deddfd$d%Zde dedefd&d'Zde ddfd(d)Zde defd*d+Zde d,edefd-d.ZZS)0RequirementPreparerzPrepares a Requirement build_dirrFsrc_dirr)r'session progress_barr(require_hashes use_user_site lazy_wheel in_tree_buildr*Nc stt||_||_||_||_t|||_t|||_ ||_ ||_ ||_ | |_ | |_| |_| |_i|_d|_dS)N)r)superr@r|r{r'_sessionr _downloadr_batch_downloadr(rFr)rruse_lazy_wheelr _downloaded_previous_requirement_header) r?r{rFr|r)r'r}r~r(rrrr __class__r/r0r@s    zRequirementPreparer.__init__r&cCs|jjr|jsd}tt|jj}n d}t|jp|}||f|jkr-||f|_t |||jrNt t d|jj WddS1sGwYdSdS)z3Provide context for the requirement being prepared.z Processing %sz Collecting %szUsing cached %sN) r2rporiginal_link_is_in_wheel_cacherDrrkr&rrUrwrru)r?r&message informationr/r/r0_log_preparing_link3s  "z'RequirementPreparer._log_preparing_linkparallel_buildscCsj|jjrdS|jdus J|jr|jr|jj|_dS|j|jd|dt|jr3t d ||jdS)z1Ensure source_dir of a linked InstallRequirement.NT) autodeleterzpip can't proceed with requirements '{}' due to apre-existing build directory ({}). This is likely due to a previous installation that failed . pip is being responsible and not assuming it can delete this. Please delete it and try again.) r2rq source_dirrnrrkensure_has_source_dirr{r!rformat)r?r&rr/r/r0_ensure_link_req_src_dirDs"   z,RequirementPreparer._ensure_link_req_src_dircCsX|js |jddS|jjrt|jrt|jdur#|js#t |jddp+t S)NT)trust_internetF) rrGr2rmrrnr original_link is_pinnedr r)r?r&r/r/r0_get_linked_req_hashesis  z*RequirementPreparer._get_linked_req_hashesr2cCs|jsdS|jrtddS|js|jstd|dSt|j}t|j }t d||j |j ddd}zt|||jWStyPtd|YdSw) z-Fetch metadata using lazy wheel, if possible.Nz3Lazy wheel is not used as hash checking is requiredz>Lazy wheel is not used as %r does not points to a remote wheelz+Obtaining dependency information from %s %s#rz"%s does not support range requests)rrrUdebugrprqrrurnamerwversionr4splitrrr)r?r2wheelrr4r/r/r0 _fetch_metadata_using_lazy_wheels2      z4RequirementPreparer._fetch_metadata_using_lazy_wheelFpartially_downloaded_reqsc Cstdddj}i}|D] }|jsJ|||j<q |||}|D]\}\}} td||||}||_q"|D]}|||q9dS)z>Download any requirements which were only fetched by metadata.r7TrHzDownloading link %s to %sN) r#r;r2rkeysrUrlocal_file_path_prepare_linked_requirement) r?rrrMlinks_to_fully_downloadr&batch_downloadr2filepath_r/r/r0_complete_partial_requirementss   z2RequirementPreparer._complete_partial_requirementscCs|jsJ|j}||tFd}|jdur(|jr(||}t|j|j|}|dur4||j|jj<n| |}|durId|_ |WdS| ||WdS1sYwYdS)z3Prepare a requirement to be obtained from req.link.NT) r2rrrFrqrrKrr4rneeds_more_preparationr)r?r&rr2rkrG wheel_distr/r/r0prepare_linked_requirements"     $z.RequirementPreparer.prepare_linked_requirementreqscCsdd|D}|D]&}|jdur/|jjr/||}t|j|j|}|dur/||j|jj<d|_q g}|D]}|jr?||q4| ||q4|j ||ddS)z,Prepare linked requirements more, if needed.cSsg|]}|jr|qSr/)r).0r&r/r/r0 szHRequirementPreparer.prepare_linked_requirements_more..NF)r) rFr2rqrrKrr4rappendrr)r?rrr&rGrkrr/r/r0 prepare_linked_requirements_mores$   z4RequirementPreparer.prepare_linked_requirements_morec Cs|jsJ|j}|||||}|r|jrd}n<|j|jvrFz t||j|j |j |}Wn(t yE}z t d |||d}~ww|j|j}|rS||t|dd}|r_|j|_t||j|j|j}|S)NzDCould not install requirement {} because of HTTP error {} for URL {})r<)r2rrrnrr4rrsrrrFr r rrLr:r;rr1r'r(r)) r?r&rr2rG local_fileexcrkdistr/r/r0rs>        z/RequirementPreparer._prepare_linked_requirementcCs|jdusJ|jdusJ|j}|js|r#|jr#||jdS|r/td|dS|jdur6dSt j |j|j }t j |sXt|j|t|}td|dSdS)NzENot copying link to destination directory since it is a directory: %szSaved %s)rFr2rmrneditablearchiverUrrr]r;rtrurvrScopyrrw)r?r&r2download_locationryr/r/r0save_linked_requirement*s(   z+RequirementPreparer.save_linked_requirementcCs|jsJdtd|t-|jrtd|||j| t ||j |j |j }||jWd|S1s@wY|S)z Prepare an editable requirement.z-cannot prepare a non-editable req as editablez Obtaining %szoThe editable requirement {} cannot be installed when requiring hashes, because there is no single file to hash.N)rrUrwrrr rrr|update_editabler1r'r(r)check_if_existsr)r?r&rr/r/r0prepare_editable_requirementDs*   z0RequirementPreparer.prepare_editable_requirement skip_reasoncCs|jsJd|dusJd|jtd|||jjt|jr)tdt| WdS1s9wYdS)z)Prepare an already-installed requirement.z(req should have been satisfied but isn'tNzAdid not get skip reason skipped but req.satisfied_by is set to {}zRequirement %s: %s (%s)zSince it is already installed, we are trusting this package without checking its hash. To ensure a completely repeatable environment, install into an empty virtualenv.) satisfied_byrrUrwrrrrrr-)r?r&rr/r/r0prepare_installed_requirementbs   $z1RequirementPreparer.prepare_installed_requirement)F)rArBrC__doc__rDrboolrrrr@rrrrrrrrrrrrrrrr __classcell__r/r/rr0rzs     2 %  " !   ( rz)NN)Mrloggingr=r]rStypingrrrrpip._vendor.packaging.utilsrpip._internal.distributionsr%pip._internal.distributions.installedrpip._internal.exceptionsr r r r r rr"pip._internal.index.package_finderrpip._internal.metadatarpip._internal.models.linkrpip._internal.models.wheelrpip._internal.network.downloadrr pip._internal.network.lazy_wheelrrpip._internal.network.sessionrpip._internal.req.req_installrpip._internal.req.req_trackerrpip._internal.utils.filesystemrpip._internal.utils.hashesrrpip._internal.utils.loggingrpip._internal.utils.miscrr r!r"pip._internal.utils.temp_dirr#pip._internal.utils.unpackingr$pip._internal.vcsr% getLoggerrArUrr1rDr9r:rPrXrjrlrsrKrzr/r/r/r0s   $                  6 PK!3S5^^"__pycache__/freeze.cpython-310.pycnu[o ai*&@sBddlZddlZddlZddlmZmZmZmZmZm Z m Z m Z ddl m Z ddlmZddlmZmZddlmZmZddlmZmZddlmZdd lmZeeZGd d d e Z   dde ee!de"de"de ee!de"de"dee!dee!fddZ#dede!fddZ$dede fddZ%GdddZ&dS) N) ContainerDictIterableIteratorList NamedTupleOptionalSet)canonicalize_name)Version) BadCommandInstallationError)BaseDistributionget_environment)install_req_from_editableinstall_req_from_line) COMMENT_RE)%direct_url_as_pep440_direct_referencec@s"eZdZUeed<eeed<dS) _EditableInfo requirementcommentsN)__name__ __module__ __qualname__str__annotations__rrr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/freeze.pyrs rFrr local_only user_onlypathsisolatedexclude_editableskipreturnc cs^i}t|j|d|d}|D]} t| } |r| jrq| || j<q|rt} tt } |D]} t | }|D]}| rJ| dsJ| dr[| }|| vrZ| ||Vq8| dse| dr| drs|dd }n |tdd d}t||d }n ttd | |d }|jstd | | td q8t|j}||vr| |jstd | td | |jq8| |j| q8t|| V||=| |j| q8Wdn1swYq/| D]\}}t|dkrtd|dtt|qdVt|dddD]}|j|vr+t| VqdS)Nr)rr#r#) z-rz --requirementz-fz --find-linksz-iz --index-urlz--prez--trusted-hostz--process-dependency-linksz--extra-index-urlz --use-featurez-ez --editable=)r!zWSkipping line in requirement file [%s] because it's not clear what it would install: %sz9 (add #egg=PackageName to the URL to avoid this warning)zBRequirement file [%s] contains %s, but package %r is not installedz+Requirement %s included multiple times [%s]z, z7## The following requirements were added by pip freeze:cSs |jSN)namelower)xrrrs zfreeze..)key) riter_installed_distributionsFrozenRequirement from_disteditablecanonical_nameset collections defaultdictlistopenstrip startswithrstripaddlenlstriprrrsubr+loggerinfor warningappendritemsjoinsortedvalues)rrrr r!r"r#Z installationsdistsdistreqZemitted_optionsZ req_filesZ req_file_pathreq_filelineZline_reqZline_req_canonical_namer+filesZ installationrrrfreezes           K rOrJcCs0t|jtr|jd|jS|jd|jS)Nz==z===) isinstanceversionr raw_name)rJrrr_format_as_name_versions rSc Cs|j}|sJtjtj|}ddlm}m}m}| |}|dur:t |}t d||t |d|dgdSt|j}z |||j} Wnq|yct |}t |d|d |dgdYS|y} zt |}t |d|d |d d | jd gdWYd} ~ Sd} ~ wtyt d||jt |gdYSty} z t d| WYd} ~ n d} ~ wwt | gdSt d|t |dgdS)za Compute and return values (req, comments) for use in FrozenRequirement.from_dist(). r)RemoteNotFoundErrorRemoteNotValidErrorvcsNz1No VCS found for editable requirement "%s" in: %rz,# Editable install with no version control ())rrz # Editable z install with no remote (z install (z4) with either a deleted local remote or invalid URI:z# ''zPcannot determine version of editable source in %s (%s command not found in path)z6Error when trying to get requirement for VCS system %sz-Could not determine repository location of %sz-## !! Could not determine repository location)editable_project_locationospathnormcaseabspathpip._internal.vcsrTrUrVget_backend_for_dirrSrAdebugrtyperget_src_requirementrRurlr rCr+r ) rJrYlocationrTrUrV vcs_backendZdisplayZvcs_namerKexexcrrr_get_editable_infosf         rhc @sVeZdZ ddedededeeddf dd Zed eddfd d Z defd dZ dS)r1rr+rKr3rr$NcCs&||_t||_||_||_||_dSr*)r+r r4rKr3r)selfr+rKr3rrrr__init__s   zFrozenRequirement.__init__rJcCsN|j}|r t|\}}ng}|j}|rt||j}nt|}||j|||dS)N)r)r3rh direct_urlrrRrS)clsrJr3rKrrkrrrr2szFrozenRequirement.from_distcCs4|j}|jr d|}dt|jt|gdS)Nz-e  )rKr3rFr8rr)rirKrrr__str__s zFrozenRequirement.__str__)r) rrrrboolrrj classmethodrr2rnrrrrr1s   r1)NFFNFFr)'r6loggingrZtypingrrrrrrrr pip._vendor.packaging.utilsr Zpip._vendor.packaging.versionr pip._internal.exceptionsr r pip._internal.metadatarrpip._internal.req.constructorsrrZpip._internal.req.req_filer&pip._internal.utils.direct_url_helpersr getLoggerrrArrrorOrSrhr1rrrrsP(        yBPK!#$__pycache__/__init__.cpython-310.pycnu[o ai@sdS)Nrrr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/__init__.pysPK!S,!__pycache__/check.cpython-310.pycnu[o ai@sdZddlZddlmZmZmZmZmZmZm Z ddl m Z ddl m Z mZddlmZddlmZddlmZdd lmZeeZGd d d eZee efZe e e fZe e ee fZee eefZee eefZe eefZ e ee fZ!d e ee"ffd dZ# ddedeee$ge"fd e fddZ%deed e!fddZ&deeded ee fddZ'dee ded ee fddZ(dS)z'Validation of dependencies of packages N)CallableDictList NamedTupleOptionalSetTuple) Requirement)NormalizedNamecanonicalize_name))make_distribution_for_install_requirement)get_default_environment)DistributionVersion)InstallRequirementc@s"eZdZUeed<eeed<dS)PackageDetailsversion dependenciesN)__name__ __module__ __qualname__r__annotations__rr rr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/check.pyrs rreturnc Csi}d}t}|jdddD]2}|j}zt|}t|j|||<Wqttfy@}zt d||d}WYd}~qd}~ww||fS)z3Converts a list of distributions into a PackageSet.Fr) local_onlyskipz%Error parsing requirements for %s: %sTN) r iter_installed_distributionscanonical_namelistiter_dependenciesrrOSError ValueErrorloggerwarning) package_setproblemsenvdistnamererrr!create_package_set_from_installed"s r*r$ should_ignorec Csi}i}|D]_\}}t}t}|r||rq|jD]6}t|j} | |vr=d} |jdur3|j} | r<|| |fq|| j} |j j | ddsR|| | |fq|r]t |t d||<|rgt |t d||<q||fS)zCheck if a package set is consistent If should_ignore is passed, it should be a callable that takes a package name and returns a boolean. TN) prereleases)key) itemssetrr r(markerevaluateaddr specifiercontainssortedstr) r$r+missing conflicting package_namepackage_detail missing_depsconflicting_depsreqr(missedrrrrcheck_package_set3s4       r? to_installcs6t\}}t||}t|||t|fdddfS)zeFor checking if the dependency graph would be consistent after installing given requirements cs|vSNr)r( whitelistrrosz)check_install_conflicts..)r+)r*_simulate_installation_of_create_whitelistr?)r@r$_would_be_installedrrBrcheck_install_conflicts`s    rIcCsLt}|D]}t|}|}|j}t|jt|||<||q|S)z=Computes the version of packages after installing to_install.) r/r get_metadata_distributionrrrrrr2)r@r$ installedinst_req abstract_distr'r(rrrrEts rErHcCsLt|}|D]}||vr q||jD]}t|j|vr"||nqq|SrA)r/rr r(r2)rHr$packages_affectedr9r=rrrrFs rFrA))__doc__loggingtypingrrrrrrrZ"pip._vendor.packaging.requirementsr pip._vendor.packaging.utilsr r pip._internal.distributionsr pip._internal.metadatar Zpip._internal.metadata.baserpip._internal.req.req_installr getLoggerrr"r PackageSetMissing Conflicting MissingDictConflictingDict CheckResultConflictDetailsboolr*r6r?rIrErFrrrrsT$           - PK!:e]] prepare.pynu["""Prepares a distribution for installation """ # The following comment should be removed at some point in the future. # mypy: strict-optional=False import logging import mimetypes import os import shutil from typing import Dict, Iterable, List, Optional from pip._vendor.packaging.utils import canonicalize_name from pip._internal.distributions import make_distribution_for_install_requirement from pip._internal.distributions.installed import InstalledDistribution from pip._internal.exceptions import ( DirectoryUrlHashUnsupported, HashMismatch, HashUnpinned, InstallationError, NetworkConnectionError, PreviousBuildDirError, VcsHashUnsupported, ) from pip._internal.index.package_finder import PackageFinder from pip._internal.metadata import BaseDistribution from pip._internal.models.link import Link from pip._internal.models.wheel import Wheel from pip._internal.network.download import BatchDownloader, Downloader from pip._internal.network.lazy_wheel import ( HTTPRangeRequestUnsupported, dist_from_wheel_url, ) from pip._internal.network.session import PipSession from pip._internal.req.req_install import InstallRequirement from pip._internal.req.req_tracker import RequirementTracker from pip._internal.utils.filesystem import copy2_fixed from pip._internal.utils.hashes import Hashes, MissingHashes from pip._internal.utils.logging import indent_log from pip._internal.utils.misc import display_path, hide_url, is_installable_dir, rmtree from pip._internal.utils.temp_dir import TempDirectory from pip._internal.utils.unpacking import unpack_file from pip._internal.vcs import vcs logger = logging.getLogger(__name__) def _get_prepared_distribution( req: InstallRequirement, req_tracker: RequirementTracker, finder: PackageFinder, build_isolation: bool, ) -> BaseDistribution: """Prepare a distribution for installation.""" abstract_dist = make_distribution_for_install_requirement(req) with req_tracker.track(req): abstract_dist.prepare_distribution_metadata(finder, build_isolation) return abstract_dist.get_metadata_distribution() def unpack_vcs_link(link: Link, location: str) -> None: vcs_backend = vcs.get_backend_for_scheme(link.scheme) assert vcs_backend is not None vcs_backend.unpack(location, url=hide_url(link.url)) class File: def __init__(self, path: str, content_type: Optional[str]) -> None: self.path = path if content_type is None: self.content_type = mimetypes.guess_type(path)[0] else: self.content_type = content_type def get_http_url( link: Link, download: Downloader, download_dir: Optional[str] = None, hashes: Optional[Hashes] = None, ) -> File: temp_dir = TempDirectory(kind="unpack", globally_managed=True) # If a download dir is specified, is the file already downloaded there? already_downloaded_path = None if download_dir: already_downloaded_path = _check_download_dir(link, download_dir, hashes) if already_downloaded_path: from_path = already_downloaded_path content_type = None else: # let's download to a tmp dir from_path, content_type = download(link, temp_dir.path) if hashes: hashes.check_against_path(from_path) return File(from_path, content_type) def _copy2_ignoring_special_files(src: str, dest: str) -> None: """Copying special files is not supported, but as a convenience to users we skip errors copying them. This supports tools that may create e.g. socket files in the project source directory. """ try: copy2_fixed(src, dest) except shutil.SpecialFileError as e: # SpecialFileError may be raised due to either the source or # destination. If the destination was the cause then we would actually # care, but since the destination directory is deleted prior to # copy we ignore all of them assuming it is caused by the source. logger.warning( "Ignoring special file error '%s' encountered copying %s to %s.", str(e), src, dest, ) def _copy_source_tree(source: str, target: str) -> None: target_abspath = os.path.abspath(target) target_basename = os.path.basename(target_abspath) target_dirname = os.path.dirname(target_abspath) def ignore(d: str, names: List[str]) -> List[str]: skipped: List[str] = [] if d == source: # Pulling in those directories can potentially be very slow, # exclude the following directories if they appear in the top # level dir (and only it). # See discussion at https://github.com/pypa/pip/pull/6770 skipped += [".tox", ".nox"] if os.path.abspath(d) == target_dirname: # Prevent an infinite recursion if the target is in source. # This can happen when TMPDIR is set to ${PWD}/... # and we copy PWD to TMPDIR. skipped += [target_basename] return skipped shutil.copytree( source, target, ignore=ignore, symlinks=True, copy_function=_copy2_ignoring_special_files, ) def get_file_url( link: Link, download_dir: Optional[str] = None, hashes: Optional[Hashes] = None ) -> File: """Get file and optionally check its hash.""" # If a download dir is specified, is the file already there and valid? already_downloaded_path = None if download_dir: already_downloaded_path = _check_download_dir(link, download_dir, hashes) if already_downloaded_path: from_path = already_downloaded_path else: from_path = link.file_path # If --require-hashes is off, `hashes` is either empty, the # link's embedded hash, or MissingHashes; it is required to # match. If --require-hashes is on, we are satisfied by any # hash in `hashes` matching: a URL-based or an option-based # one; no internet-sourced hash will be in `hashes`. if hashes: hashes.check_against_path(from_path) return File(from_path, None) def unpack_url( link: Link, location: str, download: Downloader, download_dir: Optional[str] = None, hashes: Optional[Hashes] = None, ) -> Optional[File]: """Unpack link into location, downloading if required. :param hashes: A Hashes object, one of whose embedded hashes must match, or HashMismatch will be raised. If the Hashes is empty, no matches are required, and unhashable types of requirements (like VCS ones, which would ordinarily raise HashUnsupported) are allowed. """ # non-editable vcs urls if link.is_vcs: unpack_vcs_link(link, location) return None # Once out-of-tree-builds are no longer supported, could potentially # replace the below condition with `assert not link.is_existing_dir` # - unpack_url does not need to be called for in-tree-builds. # # As further cleanup, _copy_source_tree and accompanying tests can # be removed. # # TODO when use-deprecated=out-of-tree-build is removed if link.is_existing_dir(): if os.path.isdir(location): rmtree(location) _copy_source_tree(link.file_path, location) return None # file urls if link.is_file: file = get_file_url(link, download_dir, hashes=hashes) # http urls else: file = get_http_url( link, download, download_dir, hashes=hashes, ) # unpack the archive to the build dir location. even when only downloading # archives, they have to be unpacked to parse dependencies, except wheels if not link.is_wheel: unpack_file(file.path, location, file.content_type) return file def _check_download_dir( link: Link, download_dir: str, hashes: Optional[Hashes] ) -> Optional[str]: """Check download_dir for previously downloaded file with correct hash If a correct file is found return its path else None """ download_path = os.path.join(download_dir, link.filename) if not os.path.exists(download_path): return None # If already downloaded, does its hash match? logger.info("File was already downloaded %s", download_path) if hashes: try: hashes.check_against_path(download_path) except HashMismatch: logger.warning( "Previously-downloaded file %s has bad hash. Re-downloading.", download_path, ) os.unlink(download_path) return None return download_path class RequirementPreparer: """Prepares a Requirement""" def __init__( self, build_dir: str, download_dir: Optional[str], src_dir: str, build_isolation: bool, req_tracker: RequirementTracker, session: PipSession, progress_bar: str, finder: PackageFinder, require_hashes: bool, use_user_site: bool, lazy_wheel: bool, in_tree_build: bool, ) -> None: super().__init__() self.src_dir = src_dir self.build_dir = build_dir self.req_tracker = req_tracker self._session = session self._download = Downloader(session, progress_bar) self._batch_download = BatchDownloader(session, progress_bar) self.finder = finder # Where still-packed archives should be written to. If None, they are # not saved, and are deleted immediately after unpacking. self.download_dir = download_dir # Is build isolation allowed? self.build_isolation = build_isolation # Should hash-checking be required? self.require_hashes = require_hashes # Should install in user site-packages? self.use_user_site = use_user_site # Should wheels be downloaded lazily? self.use_lazy_wheel = lazy_wheel # Should in-tree builds be used for local paths? self.in_tree_build = in_tree_build # Memoized downloaded files, as mapping of url: path. self._downloaded: Dict[str, str] = {} # Previous "header" printed for a link-based InstallRequirement self._previous_requirement_header = ("", "") def _log_preparing_link(self, req: InstallRequirement) -> None: """Provide context for the requirement being prepared.""" if req.link.is_file and not req.original_link_is_in_wheel_cache: message = "Processing %s" information = str(display_path(req.link.file_path)) else: message = "Collecting %s" information = str(req.req or req) if (message, information) != self._previous_requirement_header: self._previous_requirement_header = (message, information) logger.info(message, information) if req.original_link_is_in_wheel_cache: with indent_log(): logger.info("Using cached %s", req.link.filename) def _ensure_link_req_src_dir( self, req: InstallRequirement, parallel_builds: bool ) -> None: """Ensure source_dir of a linked InstallRequirement.""" # Since source_dir is only set for editable requirements. if req.link.is_wheel: # We don't need to unpack wheels, so no need for a source # directory. return assert req.source_dir is None if req.link.is_existing_dir() and self.in_tree_build: # build local directories in-tree req.source_dir = req.link.file_path return # We always delete unpacked sdists after pip runs. req.ensure_has_source_dir( self.build_dir, autodelete=True, parallel_builds=parallel_builds, ) # If a checkout exists, it's unwise to keep going. version # inconsistencies are logged later, but do not fail the # installation. # FIXME: this won't upgrade when there's an existing # package unpacked in `req.source_dir` # TODO: this check is now probably dead code if is_installable_dir(req.source_dir): raise PreviousBuildDirError( "pip can't proceed with requirements '{}' due to a" "pre-existing build directory ({}). This is likely " "due to a previous installation that failed . pip is " "being responsible and not assuming it can delete this. " "Please delete it and try again.".format(req, req.source_dir) ) def _get_linked_req_hashes(self, req: InstallRequirement) -> Hashes: # By the time this is called, the requirement's link should have # been checked so we can tell what kind of requirements req is # and raise some more informative errors than otherwise. # (For example, we can raise VcsHashUnsupported for a VCS URL # rather than HashMissing.) if not self.require_hashes: return req.hashes(trust_internet=True) # We could check these first 2 conditions inside unpack_url # and save repetition of conditions, but then we would # report less-useful error messages for unhashable # requirements, complaining that there's no hash provided. if req.link.is_vcs: raise VcsHashUnsupported() if req.link.is_existing_dir(): raise DirectoryUrlHashUnsupported() # Unpinned packages are asking for trouble when a new version # is uploaded. This isn't a security check, but it saves users # a surprising hash mismatch in the future. # file:/// URLs aren't pinnable, so don't complain about them # not being pinned. if req.original_link is None and not req.is_pinned: raise HashUnpinned() # If known-good hashes are missing for this requirement, # shim it with a facade object that will provoke hash # computation and then raise a HashMissing exception # showing the user what the hash should be. return req.hashes(trust_internet=False) or MissingHashes() def _fetch_metadata_using_lazy_wheel( self, link: Link, ) -> Optional[BaseDistribution]: """Fetch metadata using lazy wheel, if possible.""" if not self.use_lazy_wheel: return None if self.require_hashes: logger.debug("Lazy wheel is not used as hash checking is required") return None if link.is_file or not link.is_wheel: logger.debug( "Lazy wheel is not used as %r does not points to a remote wheel", link, ) return None wheel = Wheel(link.filename) name = canonicalize_name(wheel.name) logger.info( "Obtaining dependency information from %s %s", name, wheel.version, ) url = link.url.split("#", 1)[0] try: return dist_from_wheel_url(name, url, self._session) except HTTPRangeRequestUnsupported: logger.debug("%s does not support range requests", url) return None def _complete_partial_requirements( self, partially_downloaded_reqs: Iterable[InstallRequirement], parallel_builds: bool = False, ) -> None: """Download any requirements which were only fetched by metadata.""" # Download to a temporary directory. These will be copied over as # needed for downstream 'download', 'wheel', and 'install' commands. temp_dir = TempDirectory(kind="unpack", globally_managed=True).path # Map each link to the requirement that owns it. This allows us to set # `req.local_file_path` on the appropriate requirement after passing # all the links at once into BatchDownloader. links_to_fully_download: Dict[Link, InstallRequirement] = {} for req in partially_downloaded_reqs: assert req.link links_to_fully_download[req.link] = req batch_download = self._batch_download( links_to_fully_download.keys(), temp_dir, ) for link, (filepath, _) in batch_download: logger.debug("Downloading link %s to %s", link, filepath) req = links_to_fully_download[link] req.local_file_path = filepath # This step is necessary to ensure all lazy wheels are processed # successfully by the 'download', 'wheel', and 'install' commands. for req in partially_downloaded_reqs: self._prepare_linked_requirement(req, parallel_builds) def prepare_linked_requirement( self, req: InstallRequirement, parallel_builds: bool = False ) -> BaseDistribution: """Prepare a requirement to be obtained from req.link.""" assert req.link link = req.link self._log_preparing_link(req) with indent_log(): # Check if the relevant file is already available # in the download directory file_path = None if self.download_dir is not None and link.is_wheel: hashes = self._get_linked_req_hashes(req) file_path = _check_download_dir(req.link, self.download_dir, hashes) if file_path is not None: # The file is already available, so mark it as downloaded self._downloaded[req.link.url] = file_path else: # The file is not available, attempt to fetch only metadata wheel_dist = self._fetch_metadata_using_lazy_wheel(link) if wheel_dist is not None: req.needs_more_preparation = True return wheel_dist # None of the optimizations worked, fully prepare the requirement return self._prepare_linked_requirement(req, parallel_builds) def prepare_linked_requirements_more( self, reqs: Iterable[InstallRequirement], parallel_builds: bool = False ) -> None: """Prepare linked requirements more, if needed.""" reqs = [req for req in reqs if req.needs_more_preparation] for req in reqs: # Determine if any of these requirements were already downloaded. if self.download_dir is not None and req.link.is_wheel: hashes = self._get_linked_req_hashes(req) file_path = _check_download_dir(req.link, self.download_dir, hashes) if file_path is not None: self._downloaded[req.link.url] = file_path req.needs_more_preparation = False # Prepare requirements we found were already downloaded for some # reason. The other downloads will be completed separately. partially_downloaded_reqs: List[InstallRequirement] = [] for req in reqs: if req.needs_more_preparation: partially_downloaded_reqs.append(req) else: self._prepare_linked_requirement(req, parallel_builds) # TODO: separate this part out from RequirementPreparer when the v1 # resolver can be removed! self._complete_partial_requirements( partially_downloaded_reqs, parallel_builds=parallel_builds, ) def _prepare_linked_requirement( self, req: InstallRequirement, parallel_builds: bool ) -> BaseDistribution: assert req.link link = req.link self._ensure_link_req_src_dir(req, parallel_builds) hashes = self._get_linked_req_hashes(req) if link.is_existing_dir() and self.in_tree_build: local_file = None elif link.url not in self._downloaded: try: local_file = unpack_url( link, req.source_dir, self._download, self.download_dir, hashes ) except NetworkConnectionError as exc: raise InstallationError( "Could not install requirement {} because of HTTP " "error {} for URL {}".format(req, exc, link) ) else: file_path = self._downloaded[link.url] if hashes: hashes.check_against_path(file_path) local_file = File(file_path, content_type=None) # For use in later processing, # preserve the file path on the requirement. if local_file: req.local_file_path = local_file.path dist = _get_prepared_distribution( req, self.req_tracker, self.finder, self.build_isolation, ) return dist def save_linked_requirement(self, req: InstallRequirement) -> None: assert self.download_dir is not None assert req.link is not None link = req.link if link.is_vcs or (link.is_existing_dir() and req.editable): # Make a .zip of the source_dir we already created. req.archive(self.download_dir) return if link.is_existing_dir(): logger.debug( "Not copying link to destination directory " "since it is a directory: %s", link, ) return if req.local_file_path is None: # No distribution was downloaded for this requirement. return download_location = os.path.join(self.download_dir, link.filename) if not os.path.exists(download_location): shutil.copy(req.local_file_path, download_location) download_path = display_path(download_location) logger.info("Saved %s", download_path) def prepare_editable_requirement( self, req: InstallRequirement, ) -> BaseDistribution: """Prepare an editable requirement.""" assert req.editable, "cannot prepare a non-editable req as editable" logger.info("Obtaining %s", req) with indent_log(): if self.require_hashes: raise InstallationError( "The editable requirement {} cannot be installed when " "requiring hashes, because there is no single file to " "hash.".format(req) ) req.ensure_has_source_dir(self.src_dir) req.update_editable() dist = _get_prepared_distribution( req, self.req_tracker, self.finder, self.build_isolation, ) req.check_if_exists(self.use_user_site) return dist def prepare_installed_requirement( self, req: InstallRequirement, skip_reason: str, ) -> BaseDistribution: """Prepare an already-installed requirement.""" assert req.satisfied_by, "req should have been satisfied but isn't" assert skip_reason is not None, ( "did not get skip reason skipped but req.satisfied_by " "is set to {}".format(req.satisfied_by) ) logger.info( "Requirement %s: %s (%s)", skip_reason, req, req.satisfied_by.version ) with indent_log(): if self.require_hashes: logger.debug( "Since it is already installed, we are trusting this " "package without checking its hash. To ensure a " "completely repeatable environment, install into an " "empty virtualenv." ) return InstalledDistribution(req).get_metadata_distribution() PK! >>install/legacy.pynu["""Legacy installation process, i.e. `setup.py install`. """ import logging import os from distutils.util import change_root from typing import List, Optional, Sequence from pip._internal.build_env import BuildEnvironment from pip._internal.exceptions import InstallationError from pip._internal.models.scheme import Scheme from pip._internal.utils.logging import indent_log from pip._internal.utils.misc import ensure_dir from pip._internal.utils.setuptools_build import make_setuptools_install_args from pip._internal.utils.subprocess import runner_with_spinner_message from pip._internal.utils.temp_dir import TempDirectory logger = logging.getLogger(__name__) class LegacyInstallFailure(Exception): pass def write_installed_files_from_setuptools_record( record_lines: List[str], root: Optional[str], req_description: str, ) -> None: def prepend_root(path: str) -> str: if root is None or not os.path.isabs(path): return path else: return change_root(root, path) for line in record_lines: directory = os.path.dirname(line) if directory.endswith(".egg-info"): egg_info_dir = prepend_root(directory) break else: message = ( "{} did not indicate that it installed an " ".egg-info directory. Only setup.py projects " "generating .egg-info directories are supported." ).format(req_description) raise InstallationError(message) new_lines = [] for line in record_lines: filename = line.strip() if os.path.isdir(filename): filename += os.path.sep new_lines.append(os.path.relpath(prepend_root(filename), egg_info_dir)) new_lines.sort() ensure_dir(egg_info_dir) inst_files_path = os.path.join(egg_info_dir, "installed-files.txt") with open(inst_files_path, "w") as f: f.write("\n".join(new_lines) + "\n") def install( install_options: List[str], global_options: Sequence[str], root: Optional[str], home: Optional[str], prefix: Optional[str], use_user_site: bool, pycompile: bool, scheme: Scheme, setup_py_path: str, isolated: bool, req_name: str, build_env: BuildEnvironment, unpacked_source_directory: str, req_description: str, ) -> bool: header_dir = scheme.headers with TempDirectory(kind="record") as temp_dir: try: record_filename = os.path.join(temp_dir.path, "install-record.txt") install_args = make_setuptools_install_args( setup_py_path, global_options=global_options, install_options=install_options, record_filename=record_filename, root=root, prefix=prefix, header_dir=header_dir, home=home, use_user_site=use_user_site, no_user_config=isolated, pycompile=pycompile, ) runner = runner_with_spinner_message( f"Running setup.py install for {req_name}" ) with indent_log(), build_env: runner( cmd=install_args, cwd=unpacked_source_directory, ) if not os.path.exists(record_filename): logger.debug("Record file %s not found", record_filename) # Signal to the caller that we didn't install the new package return False except Exception as e: # Signal to the caller that we didn't install the new package raise LegacyInstallFailure from e # At this point, we have successfully installed the requirement. # We intentionally do not use any encoding to read the file because # setuptools writes the file using distutils.file_util.write_file, # which does not specify an encoding. with open(record_filename) as f: record_lines = f.read().splitlines() write_installed_files_from_setuptools_record(record_lines, root, req_description) return True PK!>*install/__pycache__/legacy.cpython-310.pycnu[o ai>@s.dZddlZddlZddlmZddlmZmZmZddl m Z ddl m Z ddl mZddlmZdd lmZdd lmZdd lmZdd lmZeeZGd ddeZdeedeededdfddZdeedeedeedeedeede de dedede dede d edede fd!d"Z!dS)#z6Legacy installation process, i.e. `setup.py install`. N) change_root)ListOptionalSequence)BuildEnvironment)InstallationError)Scheme) indent_log) ensure_dir)make_setuptools_install_args)runner_with_spinner_message) TempDirectoryc@s eZdZdS)LegacyInstallFailureN)__name__ __module__ __qualname__rr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/install/legacy.pyrsr record_linesrootreq_descriptionreturnc sdtdtffdd }|D]}tj|}|dr ||}n q d|}t|g}|D]}|} tj| r@| tjj 7} | tj || |q.| t |tj|d} t| d} | d |d WddS1swwYdS) Npathrcs"dus tj|s |St|S)N)osrisabsr)rrrr prepend_roots zBwrite_installed_files_from_setuptools_record..prepend_rootz .egg-infoz{} did not indicate that it installed an .egg-info directory. Only setup.py projects generating .egg-info directories are supported.zinstalled-files.txtw )strrrdirnameendswithformatrstripisdirsepappendrelpathsortr joinopenwrite) rrrrline directory egg_info_dirmessage new_linesfilenameinst_files_pathfrrr,write_installed_files_from_setuptools_records.     "r4install_optionsglobal_optionshomeprefix use_user_site pycompilescheme setup_py_pathisolatedreq_name build_envunpacked_source_directorycCsT|j}tdd}z`tj|jd}t|||||||||| |d }td| }t | ||| dWdn1s?wYWdn1sNwYtj|sht d|WWddSWnt yx}zt |d}~wwt |}|}Wdn1swYWdn1swYt||| d S) Nrecord)kindzinstall-record.txt) r6r5record_filenamerr8 header_dirr7r9no_user_configr:zRunning setup.py install for )cmdcwdzRecord file %s not foundFT)headersr rrr)r r r existsloggerdebug Exceptionrr*read splitlinesr4)r5r6rr7r8r9r:r;r<r=r>r?r@rrDtemp_dirrC install_argsrunnerer3rrrrinstall>sX     +rS)"__doc__loggingrdistutils.utilrtypingrrrpip._internal.build_envrpip._internal.exceptionsrpip._internal.models.schemerpip._internal.utils.loggingr pip._internal.utils.miscr $pip._internal.utils.setuptools_buildr pip._internal.utils.subprocessr pip._internal.utils.temp_dirr getLoggerrrJrLrrr4boolrSrrrrsn           %     PK!nRR)install/__pycache__/wheel.cpython-310.pycnu[o aik@sdZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl mZddlmZddlmZmZmZddlmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'm(Z(ddl)m*Z*dd l+m,Z,dd l-m.Z.dd l/m0Z0dd l1m2Z2dd l3m4Z4m5Z5m6Z6ddl7m8Z8m9Z9ddl:m;Z;mZ>m?Z?ddl@mAZAmBZBmCZCmDZDddlEmFZFmGZGmHZHmIZIddlJmKZKerddlmLZLGdddeLZMeNeOZPedeQZRe#eReQe$eSeQffZTd[deQdeSde#eQeQffddZUdeQdeeQeffdd ZVdeQdeWfd!d"ZXd#edeWfd$d%ZYd&e4de#eeQeQfeeQeQfffd'd(ZZd)e!eQde eQfd*d+Z[d,eeTdee#eQeQeQffd-d.Z\d/eRdeQfd0d1Z]d\deQd2e eQdeRfd3d4Z^d5eeeQd6eeReRfd7e"eRd8eeQd9eQdeeTf d:d;Z_dZ`Gd?d@d@ZaGdAdBdBZbGdCdDdDe0ZcdEeQddfdFdGZdGdHdIdIe*Ze J J  Kd]dLeQdMe'dNeQdOesz5message_about_scripts_not_on_PATH..PATHrQcs&i|]\}}tj|vr||qSr8)rYrFry)r| parent_dirrx not_warn_dirsr8r; s z5message_about_scripts_not_on_PATH..z script {} isrzscripts {} are, z and z.The {} installed in '{}' which is not on PATH.zeConsider adding {} to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.zthis directoryzthese directoriescss |] }|r|ddkVqdS)r~Nr8r{r8r8r; s   z4message_about_scripts_not_on_PATH..ziNOTE: The current PATH contains path(s) starting with `~`, which may not be expanded by all applications. ) collections defaultdictsetrYrFdirnamebasenameaddenvironrlsplitpathsepappendryr^r_itemssortedlenformatjoinany) rxgrouped_by_dirdestfiler script_namewarn_for msg_lines dir_scriptssorted_scripts start_text last_line_fmtwarn_for_tildetilde_warning_msgr8rr;!message_about_scripts_not_on_PATHsT        routrowscCstdd|DS)aNormalize the given rows of a RECORD file. Items in each row are converted into str. Rows are then sorted to make the value more predictable for tests. Each row is a 3-tuple (path, hash, size) and corresponds to a record of a RECORD file (see PEP 376 and PEP 427 for details). For the rows passed to this function, the size can be an integer as an int or string, or the empty string. css$|] \}}}||t|fVqdSr7)rC)r| record_pathhash_sizer8r8r;rs z&_normalized_outrows..)r)rr8r8r;_normalized_outrowssrrcCs|Sr7r8)rr8r8r;_record_to_fs_pathr=r relative_tocCsX|durtj|dtj|dkrtj||}|tjjd}td|S)Nr/r2)rYrF splitdrivermrelpathr&rzr)rFrr8r8r;_fs_to_record_paths r old_csv_rows installedr5 generatedlib_dircCsg}|D]H}t|dkrtd|td|d}|||}||vr,tt|\} } nt|dkr6|dnd} t|dkrB|dnd} ||| | fq|D]} t| |} t| \} } || | | fqO| D] } || ddfqi|S)z_ :param installed: A map from archive RECORD path to installation RECORD path. z,RECORD line has more than three elements: %sr2rrrQ) rloggerwarningrpoprOrrrvalues)rrr5rrinstalled_rowsrowold_record_pathnew_record_pathrJrNfrFinstalled_record_pathr8r8r;get_csv_rows_for_installeds$       rconsolecCs|}g}|dd}|rJdtjvr|d|tjdddkr/|dtjd||dt d |d d |D}|D]}||=qD|d d}|rwdtjvr^|d ||dt |dd |D}|D]}||=qq| t dj| |S)zk Given the mapping from entrypoint name to callable, return the relevant console script specs. pipNENSUREPIP_OPTIONSzpip = rQ altinstallz pip{} = {}rz = cSg|] }td|r|qS)zpip(\d(\.\d)?)?$rematchr|kr8r8r;r~Jsz,get_console_script_specs.. easy_installzeasy_install = zeasy_install-{} = {}cSr)zeasy_install(-\d\.\d)?$rrr8r8r;r~Xs  {} = {}) copyrrYrrrlrr^ version_inforextendrr)rscripts_to_generate pip_scriptpip_epreasy_install_scripteasy_install_epr8r8r;get_console_script_specss< #   rc@s>eZdZdedededdfddZdefdd Zd d d Z dS) ZipBackedFiler3r4zip_filer6NcCs||_||_||_d|_dSNF)r3r4 _zip_filer5)r:r3r4rr8r8r;__init__es zZipBackedFile.__init__cCs|j|jSr7)rgetinfor3r9r8r8r;_getinfomszZipBackedFile._getinfoc Cstj|j}t|tj|jrt|j|}|j |$}t |jd}t ||Wdn1s:wYWdn1sIwYt |rYt |jdSdS)NrX)rYrFrr4r(existsunlinkrrr[shutil copyfileobjr.r-)r:rzipinfordestr8r8r;r<ps zZipBackedFile.saver>) r?r@rAr2rCrrrrr<r8r8r8r;rds rc@s eZdZd ddZd ddZdS) ScriptFilefiler1r6NcCs$||_|jj|_|jj|_d|_dSr)_filer3r4r5)r:rr8r8r;rs   zScriptFile.__init__cCs|jt|j|_dSr7)rr<rir4r5r9r8r8r;r<s zScriptFile.save)rr1r6Nr>)r?r@rArr<r8r8r8r;rs rcs&eZdZdeddffdd ZZS)MissingCallableSuffixrvr6Ncstd|dS)NzInvalid script entry point: {} - A callable suffix is required. Cf https://packaging.python.org/specifications/entry-points/#use-for-scripts for more information.)superrr)r:rv __class__r8r;rszMissingCallableSuffix.__init__)r?r@rArCr __classcell__r8r8rr;rsr specificationcCs.t|}|dur|jdurtt|dSdSr7)rsuffixrrC)rentryr8r8r;_raise_for_invalid_entrypoints rcs8eZdZddedeeefdeeffdd ZZS)PipScriptMakerNroptionsr6cst|t||Sr7)rrmake)r:rrrr8r;rszPipScriptMaker.maker7) r?r@rArCr r rrrr8r8rr;rs0rTFru wheel_zip wheel_pathscheme pycompilewarn_script_location direct_url requestedc8 s(t||\}} t| r|jn|jitg} d8dtdtdtddffdd } d tdtfd d } d td tddffdd dtdtdt tgdfffdd } dtdt dt tgdfffdd }d tdtfdd}t t t| }t| |}t||\}}| |}t||}d tdtfdd}t||\}}|||}t||}t||}ttt|}t|\dddtffdd }t||}t||}tt|}t||}|D]}|| |j|j|jqdttffdd }d tdtfd!d"} |rktQ}!t<td#|D]+}"t j!|"d$d$d%}#|#rB| |"}$t"j#$|$s2Jt d&|$%t"j#j&d'}%| |%|$qWdn 1sOwYWdn 1s_wYt'(|!)t*d|j+}&d$|&_,d(h|&_-d$|&_.t/}'t0t1d)j23}(|&4|'})| 5|)| 5|&4|(d*d$i|rt6|)}*|*durt'7|*d+t8@t9j:d td,t;dtt<ffd-d. }+t"j#=|},t"j#=|,d/}-|+|- }.|.>d0Wdn 1swY| ?|-|dur$t"j#=|,t@}/|+|/}0|0>|ABd1Wdn 1swY| ?|/|rIt"j#=|,d2}1tC|1d3Wdn 1s?wY| ?|1|Dd4}2t0tEF|2G}3tH|3| d5}4t"j#=|,d4}5|+|5fitId6}6tEJt d7|6}7|7KtL|4WddS1swYdS)9aInstall a wheel. :param name: Name of the project to install :param wheel_zip: open ZipFile for wheel being installed :param scheme: Distutils scheme dictating the install directories :param req_description: String used in place of the requirement, for logging :param pycompile: Whether to byte-compile installed Python files :param warn_script_location: Whether to check that scripts are installed into a directory on PATH :raises UnsupportedWheel: * when the directory holds an unpacked wheel with incompatible Wheel-Version * when the .dist-info dir does not match the wheel Fsrcfilermodifiedr6Ncs,t|}||<|rt|dSdS)z6Map archive RECORD paths to installation RECORD paths.N)rr)rrrnewpath)r5rrr8r;record_installeds z(_install_wheel..record_installedrFcSs |dS)Nr)endswithrFr8r8r; is_dir_paths z#_install_wheel..is_dir_path dest_dir_path target_pathcs$t||sd}t|||dS)NzRThe wheel {!r} has a file {!r} trying to install outside the target directory {!r})r,rr)rrmessage)rr8r;assert_no_path_traversals  z0_install_wheel..assert_no_path_traversalrrr1csdtddffdd }|S)Nrr6r1cs0tj|}tj|}|t||Sr7)rYrFnormpathrr)r normed_pathr4)rrrr8r;make_root_scheme_files   zM_install_wheel..root_scheme_file_maker..make_root_scheme_file)r2)rrr)r)rrr;root_scheme_file_makersz._install_wheel..root_scheme_file_makerrcs2fddtDdtddffdd }|S)Ncsi|]}|t|qSr8)getattr)r|key)rr8r;rszB_install_wheel..data_scheme_file_maker..rr6r1c stj|}z |tjjd\}}}Wnty$d|}t|wz|}WntyEd t }d|||}t|wtj ||}||t ||S)NrzbUnexpected file in {}: {!r}. .data directory contents should be named like: '/'.rzUnknown scheme key used in {}: {} (for file {!r}). .data directory contents should be in subdirectories named with a valid scheme key ({})) rYrFrrrz ValueErrorrrKeyErrorrrr) rr_ scheme_key dest_subpathr scheme_pathvalid_scheme_keysr4)r scheme_pathsrrr8r;make_data_scheme_files*       zM_install_wheel..data_scheme_file_maker..make_data_scheme_file)r#r2)rrr)rr)rrrr;data_scheme_file_makersz._install_wheel..data_scheme_file_makercSs|ddddS)Nrrr.data)rrrr8r8r;is_data_scheme_pathsz+_install_wheel..is_data_scheme_pathcSs2|dd}t|dko|ddo|ddkS)Nrrrrrrx)rrr)rFpartsr8r8r;is_script_scheme_path"s &z-_install_wheel..is_script_scheme_pathrcsz|j}tj|}|dr|dd}n|dr%|dd}n|dr3|dd}n|}|vp<|vS)Nz.exez -script.pyiz.pya)r4rYrFrrmr)rrFru matchname)rguir8r;is_entrypoint_wrapper5s z-_install_wheel..is_entrypoint_wrapperc3sJttD]}tj|}tj|sq |dsq |Vq dS)Nz.py)rrrrYrFrrZr)installed_pathfull_installed_path)rrr8r;pyc_source_file_pathsPs  z-_install_wheel..pyc_source_file_pathscSs tj|S)z8Return the path the pyc file would have been written to.) importlibutilcache_from_sourcerr8r8r;pyc_output_path]s z'_install_wheel..pyc_output_pathignoreT)forcequietr2rrQrrikwargsc;sVt|fi| }|VWdn1swYt|jt|j|dSr7)r%rYchmodrur&)rFr'r)generated_file_moder8r;_generate_files z&_install_wheel.._generate_file INSTALLERspip rR REQUESTEDrXRECORD)rr5rrwzIO[str])F)Mr/rnpurelibplatlibrr2rCrDrr r$rrnamelistrr*maprr rrrwrr<r3r4r5rr'warningscatch_warningsfilterwarnings compileall compile_filerYrFrr&rzrdebuggetvaluerrxclobbervariantsset_moderlistrrr make_multiplerrrr+ contextlibcontextmanagerr r rrdrr!to_jsonr`r[ read_textcsvreader splitlinesrrUwriter writerowsr)8rurrrrrrrinfo_dirrjrrrrrrpaths file_pathsroot_scheme_pathsdata_scheme_pathsrfilesrother_scheme_pathsscript_scheme_pathsrother_scheme_files distributionrscript_scheme_filesrrr#stdoutrFsuccesspyc_pathpyc_record_pathmakerrgui_scripts_to_generategenerated_console_scriptsmsgr* dest_info_dirinstaller_pathinstaller_filedirect_url_pathdirect_url_filerequested_path record_text record_rowsrowsr record_filerFr8)rr5rr)rrrrr;_install_wheels     !                                $rereq_descriptionc csDzdVWdSty!}zd||jd}t||d}~ww)NzFor req: {}. {}r)rrargs)rferr8r8r;req_error_contexts  ric Cst|dd1}t|t||||||||dWdn1s"wYWddSWddS1s:wYdS)NT) allowZip64)rurrrrrrr)rrire) rurrrfrrrrzr8r8r; install_wheels  "rl)rEr7)TTNF)j__doc__rr6r?rCr loggingos.pathrYrrr^r3base64r email.messager itertoolsrrrtypingrrr r r r r rrrrrrrrrzipfilerrpip._vendor.distlib.scriptsrZpip._vendor.distlib.utilrpip._vendor.packaging.utilsrpip._internal.exceptionsrpip._internal.locationsrpip._internal.metadatarrr pip._internal.models.direct_urlr!r"pip._internal.models.schemer#r$pip._internal.utils.filesystemr%r&pip._internal.utils.miscr'r(r)r*pip._internal.utils.unpackingr+r,r-r.pip._internal.utils.wheelr/r0r1 getLoggerr?rrCr2intInstalledCSVRowrOrUrDrirnrwrrrrrrrrrrrrer@rirlr8r8r8r;s  H         * H     Q(      PK!3# 00,install/__pycache__/__init__.cpython-310.pycnu[o ai3@sdZdS)z,For modules related to installing packages. N)__doc__rr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/install/__init__.pysPK!we  3install/__pycache__/editable_legacy.cpython-310.pycnu[o ai@sdZddlZddlmZmZmZddlmZddlm Z ddl m Z ddl m Z eeZdeed eed eed eed ed edededededdfddZdS)z?Legacy editable installation process, i.e. `setup.py develop`. N)ListOptionalSequence)BuildEnvironment) indent_log)make_setuptools_develop_args)call_subprocessinstall_optionsglobal_optionsprefixhome use_user_sitename setup_py_pathisolated build_envunpacked_source_directoryreturnc Cstd|t|||||||d} t)|t| | dWdn1s(wYWddSWddS1s@wYdS)z[Install a package in editable mode. Most arguments are pass-through to setuptools. zRunning setup.py develop for %s)r r no_user_configr r r )cwdN)loggerinforrr) r r r r r rrrrrargsr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/install/editable_legacy.pyinstall_editables(  "r)__doc__loggingtypingrrrpip._internal.build_envrpip._internal.utils.loggingr$pip._internal.utils.setuptools_buildrpip._internal.utils.subprocessr getLogger__name__rstrboolrrrrrs>        PK!Zinstall/editable_legacy.pynu["""Legacy editable installation process, i.e. `setup.py develop`. """ import logging from typing import List, Optional, Sequence from pip._internal.build_env import BuildEnvironment from pip._internal.utils.logging import indent_log from pip._internal.utils.setuptools_build import make_setuptools_develop_args from pip._internal.utils.subprocess import call_subprocess logger = logging.getLogger(__name__) def install_editable( install_options: List[str], global_options: Sequence[str], prefix: Optional[str], home: Optional[str], use_user_site: bool, name: str, setup_py_path: str, isolated: bool, build_env: BuildEnvironment, unpacked_source_directory: str, ) -> None: """Install a package in editable mode. Most arguments are pass-through to setuptools. """ logger.info("Running setup.py develop for %s", name) args = make_setuptools_develop_args( setup_py_path, global_options=global_options, install_options=install_options, no_user_config=isolated, prefix=prefix, home=home, use_user_site=use_user_site, ) with indent_log(): with build_env: call_subprocess( args, cwd=unpacked_source_directory, ) PK!{33install/__init__.pynu["""For modules related to installing packages. """ PK!X*kkinstall/wheel.pynu["""Support for installing and building the "wheel" binary package format. """ import collections import compileall import contextlib import csv import importlib import logging import os.path import re import shutil import sys import warnings from base64 import urlsafe_b64encode from email.message import Message from itertools import chain, filterfalse, starmap from typing import ( IO, TYPE_CHECKING, Any, BinaryIO, Callable, Dict, Iterable, Iterator, List, NewType, Optional, Sequence, Set, Tuple, Union, cast, ) from zipfile import ZipFile, ZipInfo from pip._vendor.distlib.scripts import ScriptMaker from pip._vendor.distlib.util import get_export_entry from pip._vendor.packaging.utils import canonicalize_name from pip._internal.exceptions import InstallationError from pip._internal.locations import get_major_minor_version from pip._internal.metadata import ( BaseDistribution, FilesystemWheel, get_wheel_distribution, ) from pip._internal.models.direct_url import DIRECT_URL_METADATA_NAME, DirectUrl from pip._internal.models.scheme import SCHEME_KEYS, Scheme from pip._internal.utils.filesystem import adjacent_tmp_file, replace from pip._internal.utils.misc import captured_stdout, ensure_dir, hash_file, partition from pip._internal.utils.unpacking import ( current_umask, is_within_directory, set_extracted_file_to_default_mode_plus_executable, zip_item_is_executable, ) from pip._internal.utils.wheel import parse_wheel if TYPE_CHECKING: from typing import Protocol class File(Protocol): src_record_path: "RecordPath" dest_path: str changed: bool def save(self) -> None: pass logger = logging.getLogger(__name__) RecordPath = NewType("RecordPath", str) InstalledCSVRow = Tuple[RecordPath, str, Union[int, str]] def rehash(path: str, blocksize: int = 1 << 20) -> Tuple[str, str]: """Return (encoded_digest, length) for path using hashlib.sha256()""" h, length = hash_file(path, blocksize) digest = "sha256=" + urlsafe_b64encode(h.digest()).decode("latin1").rstrip("=") return (digest, str(length)) def csv_io_kwargs(mode: str) -> Dict[str, Any]: """Return keyword arguments to properly open a CSV file in the given mode. """ return {"mode": mode, "newline": "", "encoding": "utf-8"} def fix_script(path: str) -> bool: """Replace #!python with #!/path/to/python Return True if file was changed. """ # XXX RECORD hashes will need to be updated assert os.path.isfile(path) with open(path, "rb") as script: firstline = script.readline() if not firstline.startswith(b"#!python"): return False exename = sys.executable.encode(sys.getfilesystemencoding()) firstline = b"#!" + exename + os.linesep.encode("ascii") rest = script.read() with open(path, "wb") as script: script.write(firstline) script.write(rest) return True def wheel_root_is_purelib(metadata: Message) -> bool: return metadata.get("Root-Is-Purelib", "").lower() == "true" def get_entrypoints(dist: BaseDistribution) -> Tuple[Dict[str, str], Dict[str, str]]: console_scripts = {} gui_scripts = {} for entry_point in dist.iter_entry_points(): if entry_point.group == "console_scripts": console_scripts[entry_point.name] = entry_point.value elif entry_point.group == "gui_scripts": gui_scripts[entry_point.name] = entry_point.value return console_scripts, gui_scripts def message_about_scripts_not_on_PATH(scripts: Sequence[str]) -> Optional[str]: """Determine if any scripts are not on PATH and format a warning. Returns a warning message if one or more scripts are not on PATH, otherwise None. """ if not scripts: return None # Group scripts by the path they were installed in grouped_by_dir: Dict[str, Set[str]] = collections.defaultdict(set) for destfile in scripts: parent_dir = os.path.dirname(destfile) script_name = os.path.basename(destfile) grouped_by_dir[parent_dir].add(script_name) # We don't want to warn for directories that are on PATH. not_warn_dirs = [ os.path.normcase(i).rstrip(os.sep) for i in os.environ.get("PATH", "").split(os.pathsep) ] # If an executable sits with sys.executable, we don't warn for it. # This covers the case of venv invocations without activating the venv. not_warn_dirs.append(os.path.normcase(os.path.dirname(sys.executable))) warn_for: Dict[str, Set[str]] = { parent_dir: scripts for parent_dir, scripts in grouped_by_dir.items() if os.path.normcase(parent_dir) not in not_warn_dirs } if not warn_for: return None # Format a message msg_lines = [] for parent_dir, dir_scripts in warn_for.items(): sorted_scripts: List[str] = sorted(dir_scripts) if len(sorted_scripts) == 1: start_text = "script {} is".format(sorted_scripts[0]) else: start_text = "scripts {} are".format( ", ".join(sorted_scripts[:-1]) + " and " + sorted_scripts[-1] ) msg_lines.append( "The {} installed in '{}' which is not on PATH.".format( start_text, parent_dir ) ) last_line_fmt = ( "Consider adding {} to PATH or, if you prefer " "to suppress this warning, use --no-warn-script-location." ) if len(msg_lines) == 1: msg_lines.append(last_line_fmt.format("this directory")) else: msg_lines.append(last_line_fmt.format("these directories")) # Add a note if any directory starts with ~ warn_for_tilde = any( i[0] == "~" for i in os.environ.get("PATH", "").split(os.pathsep) if i ) if warn_for_tilde: tilde_warning_msg = ( "NOTE: The current PATH contains path(s) starting with `~`, " "which may not be expanded by all applications." ) msg_lines.append(tilde_warning_msg) # Returns the formatted multiline message return "\n".join(msg_lines) def _normalized_outrows( outrows: Iterable[InstalledCSVRow], ) -> List[Tuple[str, str, str]]: """Normalize the given rows of a RECORD file. Items in each row are converted into str. Rows are then sorted to make the value more predictable for tests. Each row is a 3-tuple (path, hash, size) and corresponds to a record of a RECORD file (see PEP 376 and PEP 427 for details). For the rows passed to this function, the size can be an integer as an int or string, or the empty string. """ # Normally, there should only be one row per path, in which case the # second and third elements don't come into play when sorting. # However, in cases in the wild where a path might happen to occur twice, # we don't want the sort operation to trigger an error (but still want # determinism). Since the third element can be an int or string, we # coerce each element to a string to avoid a TypeError in this case. # For additional background, see-- # https://github.com/pypa/pip/issues/5868 return sorted( (record_path, hash_, str(size)) for record_path, hash_, size in outrows ) def _record_to_fs_path(record_path: RecordPath) -> str: return record_path def _fs_to_record_path(path: str, relative_to: Optional[str] = None) -> RecordPath: if relative_to is not None: # On Windows, do not handle relative paths if they belong to different # logical disks if ( os.path.splitdrive(path)[0].lower() == os.path.splitdrive(relative_to)[0].lower() ): path = os.path.relpath(path, relative_to) path = path.replace(os.path.sep, "/") return cast("RecordPath", path) def get_csv_rows_for_installed( old_csv_rows: List[List[str]], installed: Dict[RecordPath, RecordPath], changed: Set[RecordPath], generated: List[str], lib_dir: str, ) -> List[InstalledCSVRow]: """ :param installed: A map from archive RECORD path to installation RECORD path. """ installed_rows: List[InstalledCSVRow] = [] for row in old_csv_rows: if len(row) > 3: logger.warning("RECORD line has more than three elements: %s", row) old_record_path = cast("RecordPath", row[0]) new_record_path = installed.pop(old_record_path, old_record_path) if new_record_path in changed: digest, length = rehash(_record_to_fs_path(new_record_path)) else: digest = row[1] if len(row) > 1 else "" length = row[2] if len(row) > 2 else "" installed_rows.append((new_record_path, digest, length)) for f in generated: path = _fs_to_record_path(f, lib_dir) digest, length = rehash(f) installed_rows.append((path, digest, length)) for installed_record_path in installed.values(): installed_rows.append((installed_record_path, "", "")) return installed_rows def get_console_script_specs(console: Dict[str, str]) -> List[str]: """ Given the mapping from entrypoint name to callable, return the relevant console script specs. """ # Don't mutate caller's version console = console.copy() scripts_to_generate = [] # Special case pip and setuptools to generate versioned wrappers # # The issue is that some projects (specifically, pip and setuptools) use # code in setup.py to create "versioned" entry points - pip2.7 on Python # 2.7, pip3.3 on Python 3.3, etc. But these entry points are baked into # the wheel metadata at build time, and so if the wheel is installed with # a *different* version of Python the entry points will be wrong. The # correct fix for this is to enhance the metadata to be able to describe # such versioned entry points, but that won't happen till Metadata 2.0 is # available. # In the meantime, projects using versioned entry points will either have # incorrect versioned entry points, or they will not be able to distribute # "universal" wheels (i.e., they will need a wheel per Python version). # # Because setuptools and pip are bundled with _ensurepip and virtualenv, # we need to use universal wheels. So, as a stopgap until Metadata 2.0, we # override the versioned entry points in the wheel and generate the # correct ones. This code is purely a short-term measure until Metadata 2.0 # is available. # # To add the level of hack in this section of code, in order to support # ensurepip this code will look for an ``ENSUREPIP_OPTIONS`` environment # variable which will control which version scripts get installed. # # ENSUREPIP_OPTIONS=altinstall # - Only pipX.Y and easy_install-X.Y will be generated and installed # ENSUREPIP_OPTIONS=install # - pipX.Y, pipX, easy_install-X.Y will be generated and installed. Note # that this option is technically if ENSUREPIP_OPTIONS is set and is # not altinstall # DEFAULT # - The default behavior is to install pip, pipX, pipX.Y, easy_install # and easy_install-X.Y. pip_script = console.pop("pip", None) if pip_script: if "ENSUREPIP_OPTIONS" not in os.environ: scripts_to_generate.append("pip = " + pip_script) if os.environ.get("ENSUREPIP_OPTIONS", "") != "altinstall": scripts_to_generate.append( "pip{} = {}".format(sys.version_info[0], pip_script) ) scripts_to_generate.append(f"pip{get_major_minor_version()} = {pip_script}") # Delete any other versioned pip entry points pip_ep = [k for k in console if re.match(r"pip(\d(\.\d)?)?$", k)] for k in pip_ep: del console[k] easy_install_script = console.pop("easy_install", None) if easy_install_script: if "ENSUREPIP_OPTIONS" not in os.environ: scripts_to_generate.append("easy_install = " + easy_install_script) scripts_to_generate.append( "easy_install-{} = {}".format( get_major_minor_version(), easy_install_script ) ) # Delete any other versioned easy_install entry points easy_install_ep = [ k for k in console if re.match(r"easy_install(-\d\.\d)?$", k) ] for k in easy_install_ep: del console[k] # Generate the console entry points specified in the wheel scripts_to_generate.extend(starmap("{} = {}".format, console.items())) return scripts_to_generate class ZipBackedFile: def __init__( self, src_record_path: RecordPath, dest_path: str, zip_file: ZipFile ) -> None: self.src_record_path = src_record_path self.dest_path = dest_path self._zip_file = zip_file self.changed = False def _getinfo(self) -> ZipInfo: return self._zip_file.getinfo(self.src_record_path) def save(self) -> None: # directory creation is lazy and after file filtering # to ensure we don't install empty dirs; empty dirs can't be # uninstalled. parent_dir = os.path.dirname(self.dest_path) ensure_dir(parent_dir) # When we open the output file below, any existing file is truncated # before we start writing the new contents. This is fine in most # cases, but can cause a segfault if pip has loaded a shared # object (e.g. from pyopenssl through its vendored urllib3) # Since the shared object is mmap'd an attempt to call a # symbol in it will then cause a segfault. Unlinking the file # allows writing of new contents while allowing the process to # continue to use the old copy. if os.path.exists(self.dest_path): os.unlink(self.dest_path) zipinfo = self._getinfo() with self._zip_file.open(zipinfo) as f: with open(self.dest_path, "wb") as dest: shutil.copyfileobj(f, dest) if zip_item_is_executable(zipinfo): set_extracted_file_to_default_mode_plus_executable(self.dest_path) class ScriptFile: def __init__(self, file: "File") -> None: self._file = file self.src_record_path = self._file.src_record_path self.dest_path = self._file.dest_path self.changed = False def save(self) -> None: self._file.save() self.changed = fix_script(self.dest_path) class MissingCallableSuffix(InstallationError): def __init__(self, entry_point: str) -> None: super().__init__( "Invalid script entry point: {} - A callable " "suffix is required. Cf https://packaging.python.org/" "specifications/entry-points/#use-for-scripts for more " "information.".format(entry_point) ) def _raise_for_invalid_entrypoint(specification: str) -> None: entry = get_export_entry(specification) if entry is not None and entry.suffix is None: raise MissingCallableSuffix(str(entry)) class PipScriptMaker(ScriptMaker): def make(self, specification: str, options: Dict[str, Any] = None) -> List[str]: _raise_for_invalid_entrypoint(specification) return super().make(specification, options) def _install_wheel( name: str, wheel_zip: ZipFile, wheel_path: str, scheme: Scheme, pycompile: bool = True, warn_script_location: bool = True, direct_url: Optional[DirectUrl] = None, requested: bool = False, ) -> None: """Install a wheel. :param name: Name of the project to install :param wheel_zip: open ZipFile for wheel being installed :param scheme: Distutils scheme dictating the install directories :param req_description: String used in place of the requirement, for logging :param pycompile: Whether to byte-compile installed Python files :param warn_script_location: Whether to check that scripts are installed into a directory on PATH :raises UnsupportedWheel: * when the directory holds an unpacked wheel with incompatible Wheel-Version * when the .dist-info dir does not match the wheel """ info_dir, metadata = parse_wheel(wheel_zip, name) if wheel_root_is_purelib(metadata): lib_dir = scheme.purelib else: lib_dir = scheme.platlib # Record details of the files moved # installed = files copied from the wheel to the destination # changed = files changed while installing (scripts #! line typically) # generated = files newly generated during the install (script wrappers) installed: Dict[RecordPath, RecordPath] = {} changed: Set[RecordPath] = set() generated: List[str] = [] def record_installed( srcfile: RecordPath, destfile: str, modified: bool = False ) -> None: """Map archive RECORD paths to installation RECORD paths.""" newpath = _fs_to_record_path(destfile, lib_dir) installed[srcfile] = newpath if modified: changed.add(_fs_to_record_path(destfile)) def is_dir_path(path: RecordPath) -> bool: return path.endswith("/") def assert_no_path_traversal(dest_dir_path: str, target_path: str) -> None: if not is_within_directory(dest_dir_path, target_path): message = ( "The wheel {!r} has a file {!r} trying to install" " outside the target directory {!r}" ) raise InstallationError( message.format(wheel_path, target_path, dest_dir_path) ) def root_scheme_file_maker( zip_file: ZipFile, dest: str ) -> Callable[[RecordPath], "File"]: def make_root_scheme_file(record_path: RecordPath) -> "File": normed_path = os.path.normpath(record_path) dest_path = os.path.join(dest, normed_path) assert_no_path_traversal(dest, dest_path) return ZipBackedFile(record_path, dest_path, zip_file) return make_root_scheme_file def data_scheme_file_maker( zip_file: ZipFile, scheme: Scheme ) -> Callable[[RecordPath], "File"]: scheme_paths = {key: getattr(scheme, key) for key in SCHEME_KEYS} def make_data_scheme_file(record_path: RecordPath) -> "File": normed_path = os.path.normpath(record_path) try: _, scheme_key, dest_subpath = normed_path.split(os.path.sep, 2) except ValueError: message = ( "Unexpected file in {}: {!r}. .data directory contents" " should be named like: '/'." ).format(wheel_path, record_path) raise InstallationError(message) try: scheme_path = scheme_paths[scheme_key] except KeyError: valid_scheme_keys = ", ".join(sorted(scheme_paths)) message = ( "Unknown scheme key used in {}: {} (for file {!r}). .data" " directory contents should be in subdirectories named" " with a valid scheme key ({})" ).format(wheel_path, scheme_key, record_path, valid_scheme_keys) raise InstallationError(message) dest_path = os.path.join(scheme_path, dest_subpath) assert_no_path_traversal(scheme_path, dest_path) return ZipBackedFile(record_path, dest_path, zip_file) return make_data_scheme_file def is_data_scheme_path(path: RecordPath) -> bool: return path.split("/", 1)[0].endswith(".data") paths = cast(List[RecordPath], wheel_zip.namelist()) file_paths = filterfalse(is_dir_path, paths) root_scheme_paths, data_scheme_paths = partition(is_data_scheme_path, file_paths) make_root_scheme_file = root_scheme_file_maker(wheel_zip, lib_dir) files: Iterator[File] = map(make_root_scheme_file, root_scheme_paths) def is_script_scheme_path(path: RecordPath) -> bool: parts = path.split("/", 2) return len(parts) > 2 and parts[0].endswith(".data") and parts[1] == "scripts" other_scheme_paths, script_scheme_paths = partition( is_script_scheme_path, data_scheme_paths ) make_data_scheme_file = data_scheme_file_maker(wheel_zip, scheme) other_scheme_files = map(make_data_scheme_file, other_scheme_paths) files = chain(files, other_scheme_files) # Get the defined entry points distribution = get_wheel_distribution( FilesystemWheel(wheel_path), canonicalize_name(name), ) console, gui = get_entrypoints(distribution) def is_entrypoint_wrapper(file: "File") -> bool: # EP, EP.exe and EP-script.py are scripts generated for # entry point EP by setuptools path = file.dest_path name = os.path.basename(path) if name.lower().endswith(".exe"): matchname = name[:-4] elif name.lower().endswith("-script.py"): matchname = name[:-10] elif name.lower().endswith(".pya"): matchname = name[:-4] else: matchname = name # Ignore setuptools-generated scripts return matchname in console or matchname in gui script_scheme_files: Iterator[File] = map( make_data_scheme_file, script_scheme_paths ) script_scheme_files = filterfalse(is_entrypoint_wrapper, script_scheme_files) script_scheme_files = map(ScriptFile, script_scheme_files) files = chain(files, script_scheme_files) for file in files: file.save() record_installed(file.src_record_path, file.dest_path, file.changed) def pyc_source_file_paths() -> Iterator[str]: # We de-duplicate installation paths, since there can be overlap (e.g. # file in .data maps to same location as file in wheel root). # Sorting installation paths makes it easier to reproduce and debug # issues related to permissions on existing files. for installed_path in sorted(set(installed.values())): full_installed_path = os.path.join(lib_dir, installed_path) if not os.path.isfile(full_installed_path): continue if not full_installed_path.endswith(".py"): continue yield full_installed_path def pyc_output_path(path: str) -> str: """Return the path the pyc file would have been written to.""" return importlib.util.cache_from_source(path) # Compile all of the pyc files for the installed files if pycompile: with captured_stdout() as stdout: with warnings.catch_warnings(): warnings.filterwarnings("ignore") for path in pyc_source_file_paths(): success = compileall.compile_file(path, force=True, quiet=True) if success: pyc_path = pyc_output_path(path) assert os.path.exists(pyc_path) pyc_record_path = cast( "RecordPath", pyc_path.replace(os.path.sep, "/") ) record_installed(pyc_record_path, pyc_path) logger.debug(stdout.getvalue()) maker = PipScriptMaker(None, scheme.scripts) # Ensure old scripts are overwritten. # See https://github.com/pypa/pip/issues/1800 maker.clobber = True # Ensure we don't generate any variants for scripts because this is almost # never what somebody wants. # See https://bitbucket.org/pypa/distlib/issue/35/ maker.variants = {""} # This is required because otherwise distlib creates scripts that are not # executable. # See https://bitbucket.org/pypa/distlib/issue/32/ maker.set_mode = True # Generate the console and GUI entry points specified in the wheel scripts_to_generate = get_console_script_specs(console) gui_scripts_to_generate = list(starmap("{} = {}".format, gui.items())) generated_console_scripts = maker.make_multiple(scripts_to_generate) generated.extend(generated_console_scripts) generated.extend(maker.make_multiple(gui_scripts_to_generate, {"gui": True})) if warn_script_location: msg = message_about_scripts_not_on_PATH(generated_console_scripts) if msg is not None: logger.warning(msg) generated_file_mode = 0o666 & ~current_umask() @contextlib.contextmanager def _generate_file(path: str, **kwargs: Any) -> Iterator[BinaryIO]: with adjacent_tmp_file(path, **kwargs) as f: yield f os.chmod(f.name, generated_file_mode) replace(f.name, path) dest_info_dir = os.path.join(lib_dir, info_dir) # Record pip as the installer installer_path = os.path.join(dest_info_dir, "INSTALLER") with _generate_file(installer_path) as installer_file: installer_file.write(b"pip\n") generated.append(installer_path) # Record the PEP 610 direct URL reference if direct_url is not None: direct_url_path = os.path.join(dest_info_dir, DIRECT_URL_METADATA_NAME) with _generate_file(direct_url_path) as direct_url_file: direct_url_file.write(direct_url.to_json().encode("utf-8")) generated.append(direct_url_path) # Record the REQUESTED file if requested: requested_path = os.path.join(dest_info_dir, "REQUESTED") with open(requested_path, "wb"): pass generated.append(requested_path) record_text = distribution.read_text("RECORD") record_rows = list(csv.reader(record_text.splitlines())) rows = get_csv_rows_for_installed( record_rows, installed=installed, changed=changed, generated=generated, lib_dir=lib_dir, ) # Record details of all files installed record_path = os.path.join(dest_info_dir, "RECORD") with _generate_file(record_path, **csv_io_kwargs("w")) as record_file: # Explicitly cast to typing.IO[str] as a workaround for the mypy error: # "writer" has incompatible type "BinaryIO"; expected "_Writer" writer = csv.writer(cast("IO[str]", record_file)) writer.writerows(_normalized_outrows(rows)) @contextlib.contextmanager def req_error_context(req_description: str) -> Iterator[None]: try: yield except InstallationError as e: message = "For req: {}. {}".format(req_description, e.args[0]) raise InstallationError(message) from e def install_wheel( name: str, wheel_path: str, scheme: Scheme, req_description: str, pycompile: bool = True, warn_script_location: bool = True, direct_url: Optional[DirectUrl] = None, requested: bool = False, ) -> None: with ZipFile(wheel_path, allowZip64=True) as z: with req_error_context(req_description): _install_wheel( name=name, wheel_zip=z, wheel_path=wheel_path, scheme=scheme, pycompile=pycompile, warn_script_location=warn_script_location, direct_url=direct_url, requested=requested, ) PK!G1build/__pycache__/metadata_legacy.cpython-310.pycnu[o ai @sdZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZeeZd ed efd d Zd ededededed ef ddZdS)z;Metadata generation logic for legacy source distributions. N)BuildEnvironment) open_spinner)InstallationError)make_setuptools_egg_info_args)call_subprocess) TempDirectory directoryreturncCsRddt|D}|std|t|dkr td|tj||dS)z.Find an .egg-info subdirectory in `directory`.cSsg|] }|dr|qS)z .egg-info)endswith).0fr /builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_legacy.py sz"_find_egg_info..z No .egg-info directory found in z-More than one .egg-info directory found in {}r)oslistdirrlenformatpathjoin)r filenamesr r r_find_egg_infos r build_env setup_py_path source_dirisolateddetailsc Cstd||tdddj}t|||d}|1td}t||d|dWd n1s/wYWd t|SWd t|S1sKwYt|S) znGenerate metadata using setup.py-based defacto mechanisms. Returns the generated metadata directory. z2Running setup.py (path:%s) egg_info for package %sz pip-egg-infoT)kindglobally_managed) egg_info_dirno_user_configzPreparing metadata (setup.py)zpython setup.py egg_info)cwd command_descspinnerN)loggerdebugrrrrrr)rrrrrr argsr$r r rgenerate_metadata s6       r()__doc__loggingrpip._internal.build_envrpip._internal.cli.spinnersrpip._internal.exceptionsr$pip._internal.utils.setuptools_buildrpip._internal.utils.subprocessrpip._internal.utils.temp_dirr getLogger__name__r%strrboolr(r r r rs0       PK!I'build/__pycache__/wheel.cpython-310.pycnu[o ai' @sdddlZddlZddlmZddlmZddlmZee Z de dede de d ee f d d Z dS) N)Optional)Pep517HookCaller)runner_with_spinner_messagenamebackendmetadata_directorytempdreturncCs|dusJz,td|td|d}|||j||d}Wdn1s,wYWntyBtd|YdSwtj ||S)zBuild one InstallRequirement using the PEP 517 build process. Returns path to wheel if successfully built. Otherwise, returns None. NzDestination directory: %szBuilding wheel for z (pyproject.toml))rzFailed building wheel for %s) loggerdebugrsubprocess_runner build_wheel Exceptionerrorospathjoin)rrrrrunner wheel_namer/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/build/wheel.pybuild_wheel_pep517 s$      r) loggingrtypingrZpip._vendor.pep517.wrappersrpip._internal.utils.subprocessr getLogger__name__r strrrrrrs"    PK!k<30build/__pycache__/wheel_editable.cpython-310.pycnu[o ai} @shddlZddlZddlmZddlmZmZddlmZe e Z de dede de d ee f d d Z dS) N)Optional) HookMissingPep517HookCaller)runner_with_spinner_messagenamebackendmetadata_directorytempdreturnc Cs|dusJzPtd|td|d}||3z |j||d}Wn!tyE}ztd||WYd}~WdWdSd}~wwWdn1sPwYWntyftd|YdSwtj ||S)zBuild one InstallRequirement using the PEP 660 build process. Returns path to wheel if successfully built. Otherwise, returns None. NzDestination directory: %szBuilding editable for z (pyproject.toml))rzLCannot build editable %s because the build backend does not have the %s hookzFailed building editable for %s) loggerdebugrsubprocess_runnerbuild_editablererror Exceptionospathjoin)rrrr runner wheel_nameer/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.pybuild_wheel_editable s<        r)loggingrtypingrZpip._vendor.pep517.wrappersrrpip._internal.utils.subprocessr getLogger__name__r strrrrrrs"   PK!q_p2 .build/__pycache__/wheel_legacy.cpython-310.pycnu[o ai @sddlZddlZddlmZmZddlmZddlm Z ddl m Z m Z m Z eeZdeededefd d Zd eed ed edeededeef ddZd edededeedeededeefddZdS)N)ListOptional) open_spinner) make_setuptools_bdist_wheel_args) LOG_DIVIDERcall_subprocessformat_command_args command_argscommand_outputreturncCsft|}d|d}|s|d7}|Sttjkr|d7}|S|ds(|d7}|d|t7}|S)z'Format command information for logging.zCommand arguments:  zCommand output: Nonez'Command output: [use --verbose to show]zCommand output: )rloggergetEffectiveLevelloggingDEBUGendswithr)r r command_desctextr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_legacy.pyformat_command_results  rnamestemp_dirnamecCstt|}|sd|}|t||7}t|dSt|dkr1d||}|t||7}t|tj||dS)z>Return the path to the wheel in the temporary build directory.z1Legacy build of wheel for {!r} created no files. NzZLegacy build of wheel for {!r} created more than one file. Filenames (choosing first): {} r) sortedformatrr warninglenospathjoin)rrrr r msgrrrget_legacy_build_wheel_path$s     r# setup_py_path source_dirglobal_options build_optionstempdc Cst||||d}d|d}t|C}td|z t|||d} Wnty=|dtd|YWddSwt |} t | |||| d } | WdS1sXwYdS) zBuild one unpacked package using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. )r&r'destination_dirzBuilding wheel for z (setup.py)zDestination directory: %s)cwdspinnererrorzFailed building wheel for %sN)rrrr r ) rrr debugr Exceptionfinishr,rlistdirr#) rr$r%r&r'r( wheel_args spin_messager+outputr wheel_pathrrrbuild_wheel_legacy?s>        $r5)ros.pathrtypingrrpip._internal.cli.spinnersr$pip._internal.utils.setuptools_buildrpip._internal.utils.subprocessrrr getLogger__name__r strrr#r5rrrrsT     PK!|`*build/__pycache__/metadata.cpython-310.pycnu[o ai_@sVdZddlZddlmZddlmZddlmZddlm Z deded e fd d Z dS) z4Metadata generation logic for source distributions. N)Pep517HookCaller)BuildEnvironment)runner_with_spinner_message) TempDirectory build_envbackendreturnc Cstddd}|j}|&td}|| ||}Wdn1s%wYWdn1s4wYtj||S)zlGenerate metadata using mechanisms described in PEP 517. Returns the generated metadata directory. zmodern-metadataT)kindglobally_managedz#Preparing metadata (pyproject.toml)N)rpathrsubprocess_runner prepare_metadata_for_build_wheelosjoin)rrmetadata_tmpdir metadata_dirrunner distinfo_dirr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/build/metadata.pygenerate_metadata s   r) __doc__rZpip._vendor.pep517.wrappersrpip._internal.build_envrpip._internal.utils.subprocessrpip._internal.utils.temp_dirrstrrrrrrs    PK!ں~*build/__pycache__/__init__.cpython-310.pycnu[o ai@sdS)Nrrr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/build/__init__.pysPK!~-3build/__pycache__/metadata_editable.cpython-310.pycnu[o ai@sVdZddlZddlmZddlmZddlmZddlm Z deded e fd d Z dS) z4Metadata generation logic for source distributions. N)Pep517HookCaller)BuildEnvironment)runner_with_spinner_message) TempDirectory build_envbackendreturnc Cstddd}|j}|&td}|| ||}Wdn1s%wYWdn1s4wYtj||S)zlGenerate metadata using mechanisms described in PEP 660. Returns the generated metadata directory. zmodern-metadataT)kindglobally_managedz,Preparing editable metadata (pyproject.toml)N)rpathrsubprocess_runner#prepare_metadata_for_build_editableosjoin)rrmetadata_tmpdir metadata_dirrunner distinfo_dirr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.pygenerate_editable_metadata s    r) __doc__rZpip._vendor.pep517.wrappersrpip._internal.build_envrpip._internal.utils.subprocessrpip._internal.utils.temp_dirrstrrrrrrs    PK!Y0__build/metadata.pynu["""Metadata generation logic for source distributions. """ import os from pip._vendor.pep517.wrappers import Pep517HookCaller from pip._internal.build_env import BuildEnvironment from pip._internal.utils.subprocess import runner_with_spinner_message from pip._internal.utils.temp_dir import TempDirectory def generate_metadata(build_env: BuildEnvironment, backend: Pep517HookCaller) -> str: """Generate metadata using mechanisms described in PEP 517. Returns the generated metadata directory. """ metadata_tmpdir = TempDirectory(kind="modern-metadata", globally_managed=True) metadata_dir = metadata_tmpdir.path with build_env: # Note that Pep517HookCaller implements a fallback for # prepare_metadata_for_build_wheel, so we don't have to # consider the possibility that this hook doesn't exist. runner = runner_with_spinner_message("Preparing metadata (pyproject.toml)") with backend.subprocess_runner(runner): distinfo_dir = backend.prepare_metadata_for_build_wheel(metadata_dir) return os.path.join(metadata_dir, distinfo_dir) PK!}}build/wheel_editable.pynu[import logging import os from typing import Optional from pip._vendor.pep517.wrappers import HookMissing, Pep517HookCaller from pip._internal.utils.subprocess import runner_with_spinner_message logger = logging.getLogger(__name__) def build_wheel_editable( name: str, backend: Pep517HookCaller, metadata_directory: str, tempd: str, ) -> Optional[str]: """Build one InstallRequirement using the PEP 660 build process. Returns path to wheel if successfully built. Otherwise, returns None. """ assert metadata_directory is not None try: logger.debug("Destination directory: %s", tempd) runner = runner_with_spinner_message( f"Building editable for {name} (pyproject.toml)" ) with backend.subprocess_runner(runner): try: wheel_name = backend.build_editable( tempd, metadata_directory=metadata_directory, ) except HookMissing as e: logger.error( "Cannot build editable %s because the build " "backend does not have the %s hook", name, e, ) return None except Exception: logger.error("Failed building editable for %s", name) return None return os.path.join(tempd, wheel_name) PK!ȇe build/wheel_legacy.pynu[import logging import os.path from typing import List, Optional from pip._internal.cli.spinners import open_spinner from pip._internal.utils.setuptools_build import make_setuptools_bdist_wheel_args from pip._internal.utils.subprocess import ( LOG_DIVIDER, call_subprocess, format_command_args, ) logger = logging.getLogger(__name__) def format_command_result( command_args: List[str], command_output: str, ) -> str: """Format command information for logging.""" command_desc = format_command_args(command_args) text = f"Command arguments: {command_desc}\n" if not command_output: text += "Command output: None" elif logger.getEffectiveLevel() > logging.DEBUG: text += "Command output: [use --verbose to show]" else: if not command_output.endswith("\n"): command_output += "\n" text += f"Command output:\n{command_output}{LOG_DIVIDER}" return text def get_legacy_build_wheel_path( names: List[str], temp_dir: str, name: str, command_args: List[str], command_output: str, ) -> Optional[str]: """Return the path to the wheel in the temporary build directory.""" # Sort for determinism. names = sorted(names) if not names: msg = ("Legacy build of wheel for {!r} created no files.\n").format(name) msg += format_command_result(command_args, command_output) logger.warning(msg) return None if len(names) > 1: msg = ( "Legacy build of wheel for {!r} created more than one file.\n" "Filenames (choosing first): {}\n" ).format(name, names) msg += format_command_result(command_args, command_output) logger.warning(msg) return os.path.join(temp_dir, names[0]) def build_wheel_legacy( name: str, setup_py_path: str, source_dir: str, global_options: List[str], build_options: List[str], tempd: str, ) -> Optional[str]: """Build one unpacked package using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. """ wheel_args = make_setuptools_bdist_wheel_args( setup_py_path, global_options=global_options, build_options=build_options, destination_dir=tempd, ) spin_message = f"Building wheel for {name} (setup.py)" with open_spinner(spin_message) as spinner: logger.debug("Destination directory: %s", tempd) try: output = call_subprocess( wheel_args, cwd=source_dir, spinner=spinner, ) except Exception: spinner.finish("error") logger.error("Failed building wheel for %s", name) return None names = os.listdir(tempd) wheel_path = get_legacy_build_wheel_path( names=names, temp_dir=tempd, name=name, command_args=wheel_args, command_output=output, ) return wheel_path PK!jbuild/metadata_editable.pynu["""Metadata generation logic for source distributions. """ import os from pip._vendor.pep517.wrappers import Pep517HookCaller from pip._internal.build_env import BuildEnvironment from pip._internal.utils.subprocess import runner_with_spinner_message from pip._internal.utils.temp_dir import TempDirectory def generate_editable_metadata( build_env: BuildEnvironment, backend: Pep517HookCaller ) -> str: """Generate metadata using mechanisms described in PEP 660. Returns the generated metadata directory. """ metadata_tmpdir = TempDirectory(kind="modern-metadata", globally_managed=True) metadata_dir = metadata_tmpdir.path with build_env: # Note that Pep517HookCaller implements a fallback for # prepare_metadata_for_build_wheel/editable, so we don't have to # consider the possibility that this hook doesn't exist. runner = runner_with_spinner_message( "Preparing editable metadata (pyproject.toml)" ) with backend.subprocess_runner(runner): distinfo_dir = backend.prepare_metadata_for_build_editable(metadata_dir) return os.path.join(metadata_dir, distinfo_dir) PK! build/metadata_legacy.pynu["""Metadata generation logic for legacy source distributions. """ import logging import os from pip._internal.build_env import BuildEnvironment from pip._internal.cli.spinners import open_spinner from pip._internal.exceptions import InstallationError from pip._internal.utils.setuptools_build import make_setuptools_egg_info_args from pip._internal.utils.subprocess import call_subprocess from pip._internal.utils.temp_dir import TempDirectory logger = logging.getLogger(__name__) def _find_egg_info(directory: str) -> str: """Find an .egg-info subdirectory in `directory`.""" filenames = [f for f in os.listdir(directory) if f.endswith(".egg-info")] if not filenames: raise InstallationError(f"No .egg-info directory found in {directory}") if len(filenames) > 1: raise InstallationError( "More than one .egg-info directory found in {}".format(directory) ) return os.path.join(directory, filenames[0]) def generate_metadata( build_env: BuildEnvironment, setup_py_path: str, source_dir: str, isolated: bool, details: str, ) -> str: """Generate metadata using setup.py-based defacto mechanisms. Returns the generated metadata directory. """ logger.debug( "Running setup.py (path:%s) egg_info for package %s", setup_py_path, details, ) egg_info_dir = TempDirectory(kind="pip-egg-info", globally_managed=True).path args = make_setuptools_egg_info_args( setup_py_path, egg_info_dir=egg_info_dir, no_user_config=isolated, ) with build_env: with open_spinner("Preparing metadata (setup.py)") as spinner: call_subprocess( args, cwd=source_dir, command_desc="python setup.py egg_info", spinner=spinner, ) # Return the .egg-info directory. return _find_egg_info(egg_info_dir) PK!build/__init__.pynu[PK!<F''build/wheel.pynu[import logging import os from typing import Optional from pip._vendor.pep517.wrappers import Pep517HookCaller from pip._internal.utils.subprocess import runner_with_spinner_message logger = logging.getLogger(__name__) def build_wheel_pep517( name: str, backend: Pep517HookCaller, metadata_directory: str, tempd: str, ) -> Optional[str]: """Build one InstallRequirement using the PEP 517 build process. Returns path to wheel if successfully built. Otherwise, returns None. """ assert metadata_directory is not None try: logger.debug("Destination directory: %s", tempd) runner = runner_with_spinner_message( f"Building wheel for {name} (pyproject.toml)" ) with backend.subprocess_runner(runner): wheel_name = backend.build_wheel( tempd, metadata_directory=metadata_directory, ) except Exception: logger.error("Failed building wheel for %s", name) return None return os.path.join(tempd, wheel_name) PK! __init__.pynu[PK!ľ *&*& ;freeze.pynu[PK!kv &__init__.pyonu[PK!Ԟ+8ss l'freeze.pyonu[PK!% 6check.pycnu[PK!% q=check.pyonu[PK!ͯDcheck.pynu[PK!Ԟ+8ss Xfreeze.pycnu[PK!kv g__init__.pycnu[PK!)xx qh__pycache__/check.cpython-36.pycnu[PK!PH) ) !9n__pycache__/freeze.cpython-36.pycnu[PK!)xx&y__pycache__/check.cpython-36.opt-1.pycnu[PK!m-Wqq#__pycache__/__init__.cpython-36.pycnu[PK!m-Wqq)E__pycache__/__init__.cpython-36.opt-1.pycnu[PK!PH) ) '__pycache__/freeze.cpython-36.opt-1.pycnu[PK!;'99#__pycache__/prepare.cpython-310.pycnu[PK!3S5^^"__pycache__/freeze.cpython-310.pycnu[PK!#${__pycache__/__init__.cpython-310.pycnu[PK!S,!__pycache__/check.cpython-310.pycnu[PK!:e]] prepare.pynu[PK! >>=Ninstall/legacy.pynu[PK!>*^install/__pycache__/legacy.cpython-310.pycnu[PK!nRR)%minstall/__pycache__/wheel.cpython-310.pycnu[PK!3# 00, install/__pycache__/__init__.cpython-310.pycnu[PK!we  3install/__pycache__/editable_legacy.cpython-310.pycnu[PK!Zinstall/editable_legacy.pynu[PK!{33binstall/__init__.pynu[PK!X*kkinstall/wheel.pynu[PK!G1,9build/__pycache__/metadata_legacy.cpython-310.pycnu[PK!I'\Bbuild/__pycache__/wheel.cpython-310.pycnu[PK!k<30Gbuild/__pycache__/wheel_editable.cpython-310.pycnu[PK!q_p2 .Mbuild/__pycache__/wheel_legacy.cpython-310.pycnu[PK!|`*Ybuild/__pycache__/metadata.cpython-310.pycnu[PK!ں~*K^build/__pycache__/__init__.cpython-310.pycnu[PK!~-3_build/__pycache__/metadata_editable.cpython-310.pycnu[PK!Y0__ebuild/metadata.pynu[PK!}}ibuild/wheel_editable.pynu[PK!ȇe fobuild/wheel_legacy.pynu[PK!j{build/metadata_editable.pynu[PK! ubuild/metadata_legacy.pynu[PK!Vbuild/__init__.pynu[PK!<F''build/wheel.pynu[PK**