✏️ 编辑:__init__.cpython-39.pyc
路径:
/usr/lib/python3.9/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-39.pyc
大小:1.84 KB · 修改:2026-05-23 08:59:54 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �lj| � @ sp d dl mZmZ ddlmZmZmZmZmZ g d�Z ed�dd�Z eee ed�d d �Zeeed�dd �Z dS )� )�List�Optional� )�BaseDistribution�BaseEnvironment�FilesystemWheel�MemoryWheel�Wheel)r r r r r �get_default_environment�get_environment�get_wheel_distribution)�returnc C s ddl m} | �� S )a Get the default representation for the current environment. This returns an Environment instance from the chosen backend. The default Environment instance should be built from ``sys.path`` and may use caching to share instance state accorss calls. r ��Environment)� pkg_resourcesr �defaultr � r �C/usr/lib/python3.9/site-packages/pip/_internal/metadata/__init__.pyr s r )�pathsr c C s ddl m} |�| �S )a' Get a representation of the environment specified by ``paths``. This returns an Environment instance from the chosen backend based on the given import paths. The backend must build a fresh instance representing the state of installed distributions when this function is called. r r )r r Z from_paths)r r r r r r s r )�wheel�canonical_namer c C s ddl m} |�| |�S )a Get the representation of the specified wheel's distribution metadata. This returns a Distribution instance from the chosen backend based on the given wheel's ``.dist-info`` directory. :param canonical_name: Normalized project name of the given wheel. r )�Distribution)r r Z from_wheel)r r r r r r r ) s r N)�typingr r �baser r r r r �__all__r �strr r r r r r �<module> s
💾 保存
取消
保存为 UTF-8,换行统一为 LF