관리-도구
편집 파일: requirement.cpython-311.pyc
� �܋f� � �v � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z d� Zd� Zd � Z G d � d� � ZdS )aF This module represents the various types of requirement that can be specified for a project. It is somewhat redundant to re-implement here as we could use `pip.req.InstallRequirement`, but that would require depending on pip which is not easy to do since it will usually be installed by the user at a specific version. Additionally, the pip implementation has a lot of extra features that we don't need - we don't expect relative file paths to exist, for example. Note that the parsing here is also intentionally more lenient - it is not our job to validate the requirements list. � N)�Path)�Optional)�parse)�Requirementc �R � t j j | v p| � d� � S )N�.)�os�path�sep� startswith)�reqs �r/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/requirements_detector/requirement.py�_is_filepathr s"