zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
U
H=®dèã@s®ddlmZddlZddlZddlZddlmZddlmZm    Z    ddl
m Z m Z ddl mZddlmZer€ddlmZmZmZd    d
„Zd d „Zed ddddgƒZdd„ZdS)é)Úabsolute_importN)Ú
namedtuple)ÚsixÚtoml)ÚInvalidRequirementÚ Requirement)ÚInstallationError)ÚMYPY_CHECK_RUNNING)ÚAnyÚOptionalÚListcCst|tƒotdd„|DƒƒS)Ncss|]}t|tjƒVqdS)N)Ú
isinstancerÚ string_types)Ú.0Úitem©rúND:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/pyproject.pyÚ    <genexpr>sz"_is_list_of_str.<locals>.<genexpr>)r ÚlistÚall)ÚobjrrrÚ_is_list_of_strs
þrcCs2tj |d¡}tjr.t|tjƒr.| t     ¡¡}|S)Nzpyproject.toml)
ÚosÚpathÚjoinrÚPY2r Ú    text_typeÚencodeÚsysÚgetfilesystemencoding)Úunpacked_source_directoryrrrrÚmake_pyproject_pathsr!ÚBuildSystemDetailsÚrequiresÚbackendÚcheckÚ backend_pathc
Cs®tj |¡}tj |¡}|rLtj|dd}t |¡}W5QRX| d¡}nd}|rr|sr|dk    rl|sltdƒ‚d}n<|r¢d|kr¢|dk    rœ|sœtd     |d¡ƒ‚d}n |dkr®|}|dk    sºt
‚|sÂdS|dkrØd    d
gd d œ}|dk    sät
‚d }    d|krt|    j    |ddƒ‚|d}
t |
ƒs(t|    j    |ddƒ‚|
D]B} z t | ƒWn.t k
rjt|    j    |d     | ¡dƒ‚YnXq,| d¡} | dg¡} g}| dkr d } d    d
g}t|
| || ƒS)aBLoad the pyproject.toml file.
 
    Parameters:
        use_pep517 - Has the user requested PEP 517 processing? None
                     means the user hasn't explicitly specified.
        pyproject_toml - Location of the project's pyproject.toml file
        setup_py - Location of the project's setup.py file
        req_name - The name of the requirement we're processing (for
                   error reporting)
 
    Returns:
        None if we should use the legacy code path, otherwise a tuple
        (
            requirements from pyproject.toml,
            name of PEP 517 backend,
            requirements we should check are installed after setting
                up the build environment
            directory paths to import the backend from (backend-path),
                relative to the project root.
        )
    zutf-8)Úencodingz build-systemNzIDisabling PEP 517 processing is invalid: project does not have a setup.pyTú build-backendzbDisabling PEP 517 processing is invalid: project specifies a build backend of {} in pyproject.tomlzsetuptools>=40.8.0Úwheelz setuptools.build_meta:__legacy__)r#r(zO{package} has a pyproject.toml file that does not comply with PEP 518: {reason}r#z]it has a 'build-system' table but not 'build-system.requires' which is mandatory in the table)ÚpackageÚreasonz1'build-system.requires' is not a list of strings.z='build-system.requires' contains an invalid requirement: {!r}z backend-path)rrÚisfileÚioÚopenrÚloadÚgetrÚformatÚAssertionErrorrrrr")Ú
use_pep517Úpyproject_tomlÚsetup_pyÚreq_nameÚ has_pyprojectÚ    has_setupÚfÚpp_tomlÚ build_systemÚerror_templater#Ú requirementr$r&r%rrrÚload_pyproject_toml*s€    ÿ  ýÿ 
þ     ÿ
ÿÿ
þ ÿýÿ
 
 
r>)Ú
__future__rr-rrÚ collectionsrÚ pip._vendorrrZ"pip._vendor.packaging.requirementsrrÚpip._internal.exceptionsrÚpip._internal.utils.typingr    Útypingr
r r rr!r"r>rrrrÚ<module>s&     ÿ