Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
utils
/
__pycache__
[ HOME ]
Exec
Submit
File Name : egg_link.cpython-312.pyc
� p�/i� � �h � d dl mZ d dlZd dlZd dlZd dlmZmZ d dlm Z m Z ddgZd d�Zdd�Z dd �Zy)� )�annotationsN)� site_packages� user_site)�running_under_virtualenv�virtualenv_no_global�egg_link_path_from_sys_path�egg_link_path_from_locationc �@ � t j dd| � dz | � d�gS )a� 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. We also look for the raw name (without normalization) as setuptools 69 changed the way it names .egg-link files (https://github.com/pypa/setuptools/issues/4167). z[^A-Za-z0-9.]+�-z .egg-link)�re�sub)�raw_names �K/opt/hc_python/lib/python3.12/site-packages/pip/_internal/utils/egg_link.py�_egg_link_namesr s. � � �����h�/�+�=��*�I��� � c �� � t | � }t j D ]N }|D ]G }t j j ||� }t j j |� s�C|c c S �P y)zJ Look for a .egg-link file for project name, by walking sys.path. N)r �sys�path�os�join�isfile)r �egg_link_names� path_item� egg_link_name�egg_links r r r "