hyb
2025-12-31 6cdcd01f77e11b72c323603e27ebdb85b15223c9
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Ë
@ñúhãóܗdZddlZddlZddlZddlZddlZddlZddlZddlm    Z    ddl
Z
ddl m Z e
jjd«Gd„d««ZGd„d    «Zd
„Zd „Zd „Zd „Zy)z&Support code for distutils test cases.éN)Ú Distribution)Úalways_iterableÚdistutils_managed_tempdircó&—eZdZdZd„Zdd„Zdd„Zy)ÚTempdirManagerzI
    Mix-in class that handles temporary directories for test cases.
    cód—tj«}|jj|«|S)zjCreate a temporary directory that will be cleaned up.
 
        Returns the path of the directory.
        )ÚtempfileÚmkdtempÚtempdirsÚappend)ÚselfÚds  úVH:\Change_password\venv_build\Lib\site-packages\setuptools/_distutils/tests/support.pyr
zTempdirManager.mkdtemps)€ô
× Ñ Ó ˆØ  ‰ ×јQÔØˆócó\—tjt|«Žj|d¬«y)zVWrites a file in the given path.
 
        path can be a string or a sequence.
        zutf-8)ÚencodingN)ÚpathlibÚPathrÚ
write_text)r ÚpathÚcontents   rÚ
write_filezTempdirManager.write_files%€ô
     ‰ ”o dÓ+Ð,×7Ñ7¸È'Ð7ÕRrc ó¬—|j«}tjj||«}tj|«t |¬«}||fS)aWill generate a test environment.
 
        This function creates:
         - a Distribution instance using keywords
         - a temporary directory with a package structure
 
        It returns the package directory and the distribution
        instance.
        )Úattrs)r
ÚosrÚjoinÚmkdirr)r Úpkg_nameÚkwÚtmp_dirÚpkg_dirÚdists      rÚ create_distzTempdirManager.create_dist&sC€ð—,‘,“.ˆÜ—'‘'—,‘,˜w¨Ó1ˆÜ
‰ÔÜ "Ô%ˆà˜ˆ}ÐrN)Úxxx)Úfoo)Ú__name__Ú
__module__Ú __qualname__Ú__doc__r
rr#©rrrrs„ñòóSôrrcó—eZdZdZd„Zd„Zy)Ú DummyCommandzAClass to store options for retrieval via set_undefined_options().c ó8—t|«j|«y©N)ÚvarsÚupdate)r Úkwargss  rÚ__init__zDummyCommand.__init__;s€Ü ˆT‹
×ј&Õ!rcó—yr.r*)r s rÚensure_finalizedzDummyCommand.ensure_finalized>s€Ø rN)r&r'r(r)r2r4r*rrr,r,8s„ÙKò"ó rr,có|—tjt«tjj |d««y)akHelper for tests that need the xxmodule.c source file.
 
    Example use:
 
        def test_compile(self):
            copy_xxmodule_c(self.tmpdir)
            self.assertIn('xxmodule.c', os.listdir(self.tmpdir))
 
    If the source file can be found, it will be copied to *directory*.  If not,
    the test will be skipped.  Errors during copy are not caught.
    ú
xxmodule.cN)ÚshutilÚcopyÚ_get_xxmodule_pathrrr)Ú    directorys rÚcopy_xxmodule_cr;Bs%€ô ‡KKÔ"Ó$¤b§g¡g§l¡l°9¸lÓ&KÕLrcó²—tjdkDrdnd}tjj    tjj t «|«S)N)éé    r6zxxmodule-3.8.c)ÚsysÚ version_inforrrÚdirnameÚ__file__)Ú source_names rr9r9Qs9€Ü"%×"2Ñ"2°VÒ";‘,ÐAQ€KÜ 7‰7<‰<œŸ™Ÿ™¬Ó1°;Ó ?Ð?rcó´—tjdk(r%tjj    d«|_yt jd«r†t jd«}|€    dg|_ytjdk(rg|_y|jd«\}}}|jtj«Dcgc]}|sŒ|‘Œ    c}|_yycc}w)    aÑFunction needed to make build_ext tests pass.
 
    When Python was built with --enable-shared on Unix, -L. is not enough to
    find libpython<blah>.so, because regrtest runs in a tempdir, not in the
    source directory where the .so lives.
 
    When Python was built with in debug mode on Windows, build_ext commands
    need their debug attribute set, and it is not done automatically for
    some reason.
 
    This function handles both of these things.  Example use:
 
        cmd = build_ext(dist)
        support.fixup_build_ext(cmd)
        cmd.ensure_finalized()
 
    Unlike most other Unix platforms, Mac OS X embeds absolute paths
    to shared libraries into executables, so the fixup is not needed there.
    Úntz_d.exeÚPy_ENABLE_SHAREDÚ    RUNSHAREDNú.Údarwinú=) rÚnamer?Ú
executableÚendswithÚdebugÚ    sysconfigÚget_config_varÚ library_dirsÚplatformÚ    partitionÚsplitÚpathsep)ÚcmdÚ    runsharedrKÚequalsÚvaluers      rÚfixup_build_extrZVs®€ô(
‡ww$‚Ü—N‘N×+Ñ+¨HÓ5ˆ    Ü    ×    !Ñ    !Ð"4Ô    5ô×,Ñ,¨[Ó9ˆ    Ø Ð Ø #˜uˆCÕ ä|‰|˜xÒ'Ø#%Õ à&/×&9Ñ&9¸#Ó&>Ñ#f˜eØ/4¯{©{¼2¿:¹:Ó/FÖ#L¨!Ê!¢AÒ#LÕ ð
6ùò$Ms Â?CÃCc    ó¢—tj|g|j«Dcgc]}t|dg«D]}|‘ŒŒc}}|_|Scc}}w)z®
    pytest will honor markers as found on the class, but when
    markers are on multiple subclasses, only one appears. Use
    this decorator to combine those markers.
    Ú
pytestmark)Ú    itertoolsÚchainÚ    __bases__Úgetattrr\)ÚclsÚbaseÚmarks   rÚcombine_markersrd{sY€ô—O‘O S E¨3¯=©=Ó9÷à ܘD ,°Ó3òð ò     ðØ ó€C„Nð
€Jùó s¥A )r)r]rrr7r?rOr    Údistutils.corerÚpytestÚmore_itertoolsrrcÚ usefixturesrr,r;r9rZrdr*rrú<module>risrðÙ,ãÛ    ÛÛ Û
ÛÛÝ'ã Ý*ð‡×ÑÐ4Ó5÷$ð$ó6ð$÷N ñ ò Mò@ò
"MóJ r