§
v<ˆjX7 ã ó — d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ dgZ ej
e¦ « Z ej dej ¦ « Z ej d ej ej z ¦ « Zej dd
… Z G d„ de¦ « ZdS )zu
Class representing the list of files in a distribution.
Equivalent to distutils.filelist, but fixes some problems.
é Né )ÚDistlibException)Úfsdecode©Úconvert_pathÚManifestz\\w*
z#.*?(?=
)|
(?=$)é c óp — e Zd ZdZdd„Zd„ Zd„ Zd„ Zdd„Zd „ Z d
„ Z
d„ Z dd
„Z dd„Z
dd„Zd„ ZdS )r z€
A list of files built by exploring the filesystem and filtered by applying various
patterns to what we find there.
Nc ó — t j t j |pt j ¦ « ¦ « ¦ « | _ | j t j z | _ d| _ t ¦ « | _
dS )zd
Initialise an instance.
:param base: The base directory to explore under.
N)ÚosÚpathÚabspathÚnormpathÚgetcwdÚbaseÚsepÚprefixÚallfilesÚsetÚfiles)Úselfr s úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/distlib/manifest.pyÚ__init__zManifest.__init__, sZ € õ ”G—O’O¥B¤G×$4Ò$4°TÐ5H½R¼Y¹[¼[Ñ$IÔ$IÑJÔJˆŒ Ø”i¥"¤&Ñ(ˆŒØˆŒ
Ý‘U”UˆŒ
ˆ
ˆ
ó c ó — ddl m}m}m} g x| _ }| j }|g}|j }|j }|r± |¦ « }t j |¦ « } | D ]Œ}
t j
||
¦ « }t j |¦ « }|j }
||
¦ « r#| t |¦ « ¦ « Œk ||
¦ « r ||
¦ « s ||¦ « Œ�|°¯dS dS )zmFind all files under the base and set ``allfiles`` to the absolute
pathnames of files found.
r )ÚS_ISREGÚS_ISDIRÚS_ISLNKN)Ústatr r r r r ÚpopÚappendr Úlistdirr
ÚjoinÚst_moder )r r r r r ÚrootÚstackr ÚpushÚnamesÚnameÚfullnamer Úmodes r ÚfindallzManifest.findall; s € ð 3Ð2Ð2Ð2Ð2Ð2Ð2Ð2Ð2Ð2à#%Ð%ˆŒ
˜ØŒyˆØ�ˆØŒiˆØŒ|ˆàð
#Ø�3‘5”5ˆDÝ”J˜tÑ$Ô$ˆEàð
#ð
#�Ýœ7Ÿ<š<¨¨dÑ3Ô3�õ ”w˜xÑ(Ô(�Ø”|�Ø�7˜4‘=”=ð #Ø—O’O¥H¨XÑ$6Ô$6Ñ7Ô7Ð7Ð7Ø�W˜T‘]”]ð #¨7¨7°4©=¬=ð #Ø�D˜‘N”N�Nøð ð
#ð
#ð
#ð
#ð
#r c óò — | | j ¦ « s%t j | j |¦ « }| j t j |¦ « ¦ « dS )zz
Add a file to the manifest.
:param item: The pathname to add. This can be relative to the base.
N) Ú
startswithr r r
r# r r Úaddr )r Úitems r r/ zManifest.addV s[ € ð �Š˜tœ{Ñ+Ô+ð 1Ý”7—<’< ¤ ¨4Ñ0Ô0ˆDØŒ
�Š•r”w×'Ò'¨Ñ-Ô-Ñ.Ô.Ð.Ð.Ð.r c ó: — |D ]}| |¦ « ŒdS )z†
Add a list of files to the manifest.
:param items: The pathnames to add. These can be relative to the base.
N)r/ )r Úitemsr0 s r Úadd_manyzManifest.add_many` s. € ð ð ð ˆDØ�HŠH�T‰NŒNˆNˆNð ð r Fc ó ‡ ‡— ˆˆ fd„Št ‰ j ¦ « }|rAt ¦ « }|D ]+} ‰|t j |¦ « ¦ « Œ,||z }d„ t d„ |D ¦ « ¦ « D ¦ « S )z8
Return sorted files in directory order
c óê •— | |¦ « t d|¦ « |‰j k r6t j |¦ « \ }}|dvsJ ‚ ‰| |¦ « d S d S )Nzadd_dir added %s)Ú ú/)r/ ÚloggerÚdebugr r r
Úsplit)ÚdirsÚdÚparentÚ_Úadd_dirr s €€r r? z Manifest.sorted.