관리-도구
편집 파일: constructors.cpython-36.pyc
3 �Re@ � @ s� d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m Z ddlmZm Z ddlmZ ddlmZmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlm Z m!Z! ddl"m#Z# ddl$m%Z% ddl&m'Z'm(Z( e#�r"ddl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/ ddl0m1Z1 dddgZ2ej3e4�Z5e j6j7� Z8dd� Z9dd� Z:dd� Z;dd� Z<dd � Z=G d!d"� d"e>�Z?d#d$� Z@d2d&d�ZAd'd(� ZBd)d*� ZCd+d,� ZDd3d-d�ZEd4d.d/�ZFd5d0d1�ZGdS )6a~ Backing implementation for InstallRequirement's various constructors The idea here is that these formed a major chunk of InstallRequirement's size so, moving them and support code dedicated to them outside of that class helps creates for better understandability for the rest of the code. These are meant to be used elsewhere within pip to create instances of InstallRequirement. � N)�Marker)�InvalidRequirement�Requirement)� Specifier)�RequirementParseError�parse_requirements)�InstallationError)�PyPI�TestPyPI)�Link)�Wheel)�make_pyproject_path)�InstallRequirement)� deprecated)�ARCHIVE_EXTENSIONS)�is_installable_dir�splitext)�MYPY_CHECK_RUNNING)�path_to_url)�is_url�vcs)�Any�Dict�Optional�Set�Tuple�Union)�ParsedRequirement�install_req_from_editable�install_req_from_line�parse_editablec C s t | �d j� }|tkrdS dS )z9Return True if `name` is a considered as an archive file.� TF)r �lowerr )�name�ext� r% ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/req/constructors.py�is_archive_file1 s r'