£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
U
    ʗRe                     @   s   d dl Z d dlZd dlZd dlmZ d dlmZmZ d dlm	Z	m
Z
 ddgZeeddd	Zeee dd
dZeee dddZdS )    N)Optional)site_packages	user_site)running_under_virtualenvvirtualenv_no_globalegg_link_path_from_sys_pathegg_link_path_from_location)raw_namereturnc                 C   s   t dd| d S )z
    Convert a Name metadata value to a .egg-link name, by applying
    the same substitution as pkg_resources's safe_name function.
    Note: we cannot use canonicalize_name because it has a different logic.
    z[^A-Za-z0-9.]+-z	.egg-link)resub)r	    r   /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/utils/egg_link.py_egg_link_name   s    r   c                 C   s:   t | }tjD ]&}tj||}tj|r|  S qdS )zJ
    Look for a .egg-link file for project name, by walking sys.path.
    N)r   syspathosjoinisfile)r	   egg_link_name	path_itemegg_linkr   r   r   r      s    

c                 C   sz   g }t  r*|t t sBtrB|t ntr8|t |t t| }|D ]&}tj||}tj	|rN|  S qNdS )a  
    Return the path for the .egg-link file if it exists, otherwise, None.

    There's 3 scenarios:
    1) not in a virtualenv
       try to find in site.USER_SITE, then site_packages
    2) in a no-global virtualenv
       try to find in site_packages
    3) in a yes-global virtualenv
       try to find in site_packages, then site.USER_SITE
       (don't look in global location)

    For #1 and #3, there could be odd cases, where there's an egg-link in 2
    locations.

    This method will just return the first one found.
    N)
r   appendr   r   r   r   r   r   r   r   )r	   sitesr   siteegglinkr   r   r   r   *   s    




)r   r   r   typingr   pip._internal.locationsr   r   pip._internal.utils.virtualenvr   r   __all__strr   r   r   r   r   r   r   <module>   s   	