관리-도구
편집 파일: req_file.cpython-36.pyc
3 �Re�K � @ sV d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z ddlmZ ddl mZmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ e�rddlmZ dd lmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ ddl%m&Z& ddl'm(Z( ee$e)e#f Z*ee#ge$e+ef f Z,dgZ-ej.dej/�Z0ej.d�Z1ej.d�Z2ej3ej4ej5ej6ej7ej8ej9ej:ej;ej<ej=ej>ej?ej@gZAejBejCejDgZEdd� eED �ZFG dd� deG�ZHG dd� deG�ZId7dd�ZJdd� ZKd8dd�ZLd9d d!�ZMd:d"d#�ZNG d$d%� d%eG�ZOd&d'� ZPd(d)� ZQG d*d+� d+eR�ZSd,d-� ZTd.d/� ZUd0d1� ZVd2d3� ZWd;d4d5�ZXej.d6ej/�ZYdS )<z Requirements file parsing � )�absolute_importN)�parse)� cmdoptions)�InstallationError�RequirementsFileParseError)�SearchScope)�raise_for_status)�auto_decode)�MYPY_CHECK_RUNNING)�get_url_scheme)�Values) �Any�Callable�Dict�Iterator�List�NoReturn�Optional�Text�Tuple)� PackageFinder)� PipSession�parse_requirementsz^(http|https|file):z(^|\s+)#.*$z#(?P<var>\$\{(?P<name>[A-Z0-9_]+)\})c C s g | ]}t |� j��qS � )�str�dest)�.0�or 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/req_file.py� <listcomp>L s r c @ s e Zd Zddd�ZdS )�ParsedRequirementNc C s( || _ || _|| _|| _|| _|| _d S )N)�requirement�is_editable� comes_from�options� constraint�line_source)�selfr! r"