Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
pip
/
_internal
/
utils
/
__pycache__
/
File Content:
glibc.cpython-311.pyc
� .|oi� � �B � d dl mZ d dlZd dlZd d�Zd d�Zd d�Zdd �ZdS )� )�annotationsN�return� str | Nonec �: � t � � p t � � S )z9Returns glibc version string, or None if not using glibc.)�glibc_version_string_confstr�glibc_version_string_ctypes� � �k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/utils/glibc.py�glibc_version_stringr s � �'�)�)�J�-H�-J�-J�Jr c �� � t j dk rdS t j d� � } | �dS | � � � \ }}n# t t t f$ r Y dS w xY w|S )z@Primary implementation of glibc_version_string using os.confstr.�win32N�CS_GNU_LIBC_VERSION)�sys�platform�os�confstr�split�AttributeError�OSError� ValueError)�gnu_libc_version�_�versions r r r s~ � � �|�w����t���:�&;�<�<���#��4�%�+�+�-�-� ��7�7���G�Z�0� � � ��t�t����� �Ns �A �A �A�Ac �8 � ddl } n# t $ r Y dS w xY w | � d� � }n# t $ r Y dS w xY w |j }n# t $ r Y dS w xY w| j |_ |� � }t |t � � s|� d� � }|S )z=Fallback implementation of glibc_version_string using ctypes.r N�ascii)�ctypes�ImportError�CDLLr �gnu_get_libc_versionr �c_char_p�restype� isinstance�str�decode)r �process_namespacer �version_strs r r r s� � ��� � � � ��� � � ��t�t����� �"�K�K��-�-����� � � ��t�t������0�E����� � � � �t�t����� $*�?�� �+�+�-�-�K��k�3�'�'� 2�!�(�(��1�1���s* � � ��/ � =�=�A � A�A�tuple[str, str]c �. � t � � } | �dS d| fS )z�Try to determine the glibc version Returns a tuple of strings (lib, version) which default to empty strings in case the lookup fails. N)� r* �glibc)r )� glibc_versions r �libc_verr- \ s% � � )�*�*�M����x���'�'r )r r )r r( )� __future__r r r r r r r- r r r �<module>r/ s� �� "� "� "� "� "� "� � � � � � � � �K� K� K� K� � � � �((� (� (� (�x (� (� (� (� (� (r
Submit
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.pyc
219 bytes
0644
_jaraco_text.cpython-311.pyc
4782 bytes
0644
_log.cpython-311.pyc
2040 bytes
0644
appdirs.cpython-311.pyc
2609 bytes
0644
compat.cpython-311.pyc
3152 bytes
0644
compatibility_tags.cpython-311.pyc
8083 bytes
0644
datetime.cpython-311.pyc
729 bytes
0644
deprecation.cpython-311.pyc
4590 bytes
0644
direct_url_helpers.cpython-311.pyc
3708 bytes
0644
egg_link.cpython-311.pyc
3513 bytes
0644
entrypoints.cpython-311.pyc
4330 bytes
0644
filesystem.cpython-311.pyc
8801 bytes
0644
filetypes.cpython-311.pyc
1281 bytes
0644
glibc.cpython-311.pyc
2645 bytes
0644
hashes.cpython-311.pyc
8916 bytes
0644
logging.cpython-311.pyc
16023 bytes
0644
misc.cpython-311.pyc
36490 bytes
0644
packaging.cpython-311.pyc
2053 bytes
0644
retry.cpython-311.pyc
2289 bytes
0644
subprocess.cpython-311.pyc
9496 bytes
0644
temp_dir.cpython-311.pyc
13309 bytes
0644
unpacking.cpython-311.pyc
16418 bytes
0644
urls.cpython-311.pyc
2317 bytes
0644
virtualenv.cpython-311.pyc
4870 bytes
0644
wheel.cpython-311.pyc
6956 bytes
0644
N4ST4R_ID | Naxtarrr