403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/sdist.cpython-313.pyc
�

�h�J����SrSSKJr SSKrSSKrSSKJr SSKJrJ	r	J
r
 SSKJr SSK
J
r
 SSKJr SS	KJr S
SKJr S
SKJrJr S
S
KJr S
SKJr S
SKJr Sr"SS\5rSSjrg)zadistutils.command.sdist

Implements the Distutils 'sdist' command (create a source distribution).�)�annotationsN)�Callable)�archive_util�dir_util�	file_util)�log)�glob)�filterfalse)�ClassVar�)�Command)�DistutilsOptionError�DistutilsTemplateError)�FileList)�TextFile)�convert_pathc�^�SSKJm SSKJn [	U4SjTR555nU"U5R
S5 g)zgPrint all possible values for the 'formats' option (used by
the "--help-formats" command-line option).
r)�ARCHIVE_FORMATS)�FancyGetoptc3�@># �UHnSU-STUS4v� M g7f)�formats=Nr�)�.0�formatrs  ��E/usr/lib/python3/dist-packages/setuptools/_distutils/command/sdist.py�	<genexpr>�show_formats.<locals>.<genexpr>s.�����,�F�
�f�	�d�O�F�$;�A�$>�?�,�s�z.List of available source distribution formats:N)rr�fancy_getoptr�sorted�keys�
print_help)r�formatsrs  @r�show_formatsr#sA���/�*���%�*�*�,���G����#�#�$T�U�c�2�\rSrSr%SrS,Sjr/SQr/SQrS\S'SS	S
\	4/r
S\S'S
SS.rS\S'S\4/rSr
S\S'SrS-SjrS-SjrS-SjrS-Sjr\S5rSrSrSrSrS rS!rS"rS-S#jrS-S$jrS-S%jrS&rS-S'jr S-S(jr!S-S)jr"S*r#S+r$g	).�sdist�%z6create a source distribution (tarball, zip file, etc.)c��UR$)zQCallable used for the check sub-command.

Placed here so user_options can view it)�metadata_check��selfs r�checking_metadata�sdist.checking_metadata(s���"�"�"r$))z	template=�tz5name of manifest template file [default: MANIFEST.in])z	manifest=�mz)name of manifest file [default: MANIFEST])�use-defaultsNzRinclude the default file set in the manifest [default; disable with --no-defaults])�no-defaultsNz"don't include the default file set)�pruneNz�specifically exclude files/directories that should not be distributed (build tree, RCS/CVS dirs, etc.) [default; disable with --no-prune])�no-pruneNz$don't automatically exclude anything)�
manifest-only�ozEjust regenerate the manifest and then stop (implies --force-manifest))�force-manifest�fzkforcibly regenerate the manifest and carry on as usual. Deprecated: now the manifest is always regenerated.)rNz6formats for source distribution (comma-separated list))�	keep-temp�kz@keep the distribution tree around after creating archive file(s))z	dist-dir=�dzFdirectory to put the source distribution archive(s) in [default: dist])�metadata-checkNz[Ensure that all required elements of meta-data are supplied. Warn if any missing. [default])zowner=�uz@Owner name used when creating a tar file [default: current user])zgroup=�gzAGroup name used when creating a tar file [default: current group])r0r2r4r6r8r;zClassVar[list[str]]�boolean_optionszhelp-formatsNz#list available distribution formatszAClassVar[list[tuple[str, str | None, str, Callable[[], object]]]]�help_optionsr0r2)r1r3zClassVar[dict[str, str]]�negative_opt�check)�READMEz
README.txtz
README.rstzClassVar[tuple[str, ...]]�READMESc��SUlSUlSUlSUlSUlSUlS/UlSUlSUlSUl	SUl
SUlSUlg)NTF�gztar)
�template�manifest�use_defaultsr2�
manifest_only�force_manifestr"�	keep_temp�dist_dir�
archive_filesr)�owner�groupr*s r�initialize_options�sdist.initialize_options~sh����
���
�!�����
�"���#����y��������
�!���"�����
���
r$c��URcSUlURcSUlURS5 [R"UR
5nU(a[
SUS35eURcSUlgg)N�MANIFESTzMANIFEST.inr"zunknown archive format '�'�dist)rGrF�ensure_string_listr�check_archive_formatsr"rrL)r+�
bad_formats  r�finalize_options�sdist.finalize_options�st���=�=� �&�D�M��=�=� �)�D�M����	�*�!�7�7����E�
��&�)A�*��Q�'O�P�P��=�=� �"�D�M�!r$c���[5UlUR5HnURU5 M UR	5 UR
(agUR
5 g�N)r�filelist�get_sub_commands�run_command�
get_file_listrI�make_distribution)r+�cmd_names  r�run�	sdist.run�sZ��!�
��
��-�-�/�H����X�&�0�	
��������	
��� r$c���[RRUR5nU(dZUR	5(aEUR5 URR5 URR5 gU(dURSUR-5 URR5 UR(aUR5 U(aUR5 UR(aUR5 URR5 URR5 UR!5 g)aFigure out the list of files to include in the source
distribution, and put it in 'self.filelist'.  This might involve
reading the manifest template (and writing the manifest), or just
reading the manifest, or just using the default file set -- it all
depends on the user's options.
Nz?manifest template '%s' does not exist (using default file list))�os�path�isfilerF�_manifest_is_not_generated�
read_manifestr]�sort�remove_duplicates�warn�findallrH�add_defaults�
read_templater2�prune_file_list�write_manifest)r+�template_existss  rr`�sdist.get_file_list�s����'�'�.�.����7���4�#B�#B�#D�#D���� ��M�M��� ��M�M�+�+�-����I�I�W��-�-� �
�	
�
�
��������������� ��:�:�� � �"��
�
�����
�
�'�'�)����r$c���UR5 UR5 UR5 UR5 UR	5 UR5 UR
5 g)a�Add all the default files to self.filelist:
  - README or README.txt
  - setup.py
  - tests/test*.py and test/test*.py
  - all pure Python modules mentioned in setup script
  - all files pointed by package_data (build_py)
  - all files defined in data_files.
  - all files defined as scripts.
  - all C sources listed as part of extensions or C libraries
    in the setup script (doesn't catch C headers!)
Warns if (README or README.txt) or setup.py are missing; everything
else is optional.
N)�_add_defaults_standards�_add_defaults_optional�_add_defaults_python�_add_defaults_data_files�_add_defaults_ext�_add_defaults_c_libs�_add_defaults_scriptsr*s rro�sdist.add_defaults�sX��	
�$�$�&��#�#�%��!�!�#��%�%�'���� ��!�!�#��"�"�$r$c��[RRU5(dg[RRU5n[RR	U5up#U[R
"U5;$)z�
Case-sensitive path existence check

>>> sdist._cs_path_exists(__file__)
True
>>> sdist._cs_path_exists(__file__.upper())
False
F)rfrg�exists�abspath�split�listdir)�fspathr��	directory�filenames    r�_cs_path_exists�sdist._cs_path_exists�sU���w�w�~�~�f�%�%���'�'�/�/�&�)�� �g�g�m�m�G�4��	��2�:�:�i�0�0�0r$c���URURR/nUH�n[U[5(apUnSnUH8nURU5(dMSnURRU5  O U(d%URSSRU5-5 M�M�URU5(aURRU5 M�URSUS35 M� g)NFTz,standard file not found: should have one of z, zstandard file 'z' not found)
rC�distribution�script_name�
isinstance�tupler�r]�appendrm�join)r+�	standards�fn�alts�got_its     rrv�sdist._add_defaults_standards
s����\�\�4�#4�#4�#@�#@�A�	��B��"�e�$�$������B��+�+�B�/�/�!%���
�
�,�,�R�0��	���I�I�F����SW��X���
�'�'��+�+��M�M�(�(��,��I�I���t�;�?�@�%r$c��/SQnUHKn[[RR[	U55nUR
R
U5 MM g)N)ztests/test*.pyz
test/test*.pyz	setup.cfg)�filterrfrgrhr	r]�extend)r+�optional�pattern�filess    rrw�sdist._add_defaults_optional s;��C���G��2�7�7�>�>�4��=�9�E��M�M� � ��'� r$c�d�URS5nURR5(a)URR	UR55 URHGup#pEUH;nURR[RRX655 M= MI g)N�build_py)�get_finalized_commandr��has_pure_modulesr]r��get_source_files�
data_filesr�rfrgr�)r+r��_pkg�src_dir�
_build_dir�	filenamesr�s       rrx�sdist._add_defaults_python&s����-�-�j�9�����-�-�/�/��M�M� � ��!:�!:�!<�=�5=�4G�4G�0�D�:�%���
�
�$�$�R�W�W�\�\�'�%D�E�&�5Hr$c��URR5(a�URRH�n[U[5(aN[U5n[RRU5(aURRU5 MdMfUup#UHOn[U5n[RRU5(dM4URRU5 MQ M� ggr\)r��has_data_filesr�r��strrrfrgrhr]r�)r+�item�dirnamer�r7s     rry�sdist._add_defaults_data_files6s������+�+�-�-��)�)�4�4���d�C�(�(�'��-�D��w�w�~�~�d�+�+��
�
�,�,�T�2�,�*.�&�G�&��(��O���7�7�>�>�!�,�,� �M�M�0�0��3�'�5�.r$c��URR5(a;URS5nURR	UR55 gg)N�	build_ext)r��has_ext_modulesr�r]r�r�)r+r�s  rrz�sdist._add_defaults_extGsG�����,�,�.�.��2�2�;�?�I��M�M� � ��!;�!;�!=�>�/r$c��URR5(a;URS5nURR	UR55 gg)N�
build_clib)r��has_c_librariesr�r]r�r�)r+r�s  rr{�sdist._add_defaults_c_libsLsG�����,�,�.�.��3�3�L�A�J��M�M� � ��!<�!<�!>�?�/r$c��URR5(a;URS5nURR	UR55 gg)N�
build_scripts)r��has_scriptsr�r]r�r�)r+r�s  rr|�sdist._add_defaults_scriptsQsG�����(�(�*�*� �6�6��G�M��M�M� � ��!?�!?�!A�B�+r$c
���[R"SUR5 [URSSSSSSS9nUR	5nUcOUR
R
U5 M2UR5 g![[4a@nURURS[UR5SU35 SnAN^SnAff=f!UR5 f=f)z�Read and parse manifest template file named by self.template.

(usually "MANIFEST.in") The parsing and processing is done by
'self.filelist', which updates itself accordingly.
zreading manifest template '%s'T)�strip_comments�skip_blanks�
join_lines�	lstrip_ws�	rstrip_ws�
collapse_joinNz, line z: )r�inforFr�readliner]�process_template_liner�
ValueErrorrmr��int�current_line�close)r+rF�line�msgs    rrp�sdist.read_templateVs���	���1�4�=�=�A���M�M�������
��	���(�(�*���<����M�M�7�7��=�
�
�N�N���/�
�;���I�I�#�,�,�-�W�S��9N�9N�5O�4P�PR�SV�RW�X������

�N�N��s5�C�B�-C�C�6C�C�C�C�C%c��URS5nURR5nURR	S[
R"UR5S9 URR	SUS9 [RS:XaSnOSn/SQnSRUS	RU5U5nURR	US
S9 g)aFPrune off branches that might slip into the file list as created
by 'read_template()', but really don't belong there:
  * the build tree (typically "build")
  * the release tree itself (only an issue if we ran "sdist"
    previously with --keep-temp, or it aborted)
  * any RCS, CVS, .svn, .hg, .git, .bzr, _darcs directories
�buildN)�prefix�win32z/|\\�/)�RCS�CVSz\.svnz\.hgz\.gitz\.bzr�_darcsz(^|{})({})({}).*�|T)�is_regex)r�r��get_fullnamer]�exclude_patternrfr��
build_base�sys�platformrr�)r+r��base_dir�seps�vcs_dirs�vcs_ptrns      rrq�sdist.prune_file_listys����*�*�7�3���$�$�1�1�3���
�
�%�%�d�2�9�9�U�=M�=M�3N�%�O��
�
�%�%�d�8�%�<��<�<�7�"��D��D�R��&�-�-�d�C�H�H�X�4F��M���
�
�%�%�h��%�>r$c�D�UR5(a%[R"SURS35 gURR
SSnUR
SS5 UR[RURU4SURS35 g)z�Write the file list in 'self.filelist' (presumably as filled in
by 'add_defaults()' and 'read_template()') to the manifest file
named by 'self.manifest'.
z2not writing to manually maintained manifest file 'rTNrz*# file GENERATED by distutils, do NOT editzwriting manifest file ')
rirr�rGr]r��insert�executer�
write_file)r+�contents  rrr�sdist.write_manifest�s���
�*�*�,�,��H�H�D�T�]�]�O�ST�U�
�
��-�-�%�%�a�(�����q�F�G����� � �
�]�]�G�$�%�d�m�m�_�A�6�	
r$c���[RRUR5(dg[	URSS9n[U5nSSS5 US:g$!,(df   WS:g$=f)NF�utf-8��encodingz+# file GENERATED by distutils, do NOT edit
)rfrgrhrG�open�next)r+�fp�
first_lines   rri� sdist._manifest_is_not_generated�s[���w�w�~�~�d�m�m�,�,��
�$�-�-�'�
2�b��b��J�3��K�K�K�3�
2��K�K�K�s�A�
A/c
�8�[R"SUR5 [URSS9nURR[
S[[[[RU5555 SSS5 g!,(df   g=f)z�Read the manifest file (named by 'self.manifest') and use it to
fill in 'self.filelist', the list of files to include in the source
distribution.
zreading manifest file '%s'r�r�N)rr�rGr�r]r�r�r
�
is_comment�mapr��strip)r+�liness  rrj�sdist.read_manifest�sa��
	���-�t�}�}�=�
�$�-�-�'�
2�e��M�M� � ��t�[��S����E�5J�K�L�
�3�
2�
2�s�AB�
Bc�L�URU5 [R"XURS9 [	[
S5(a	SnSUS3nOSnSUS3nU(d[R"S5 O[R"U5 UHon[
RRU5(d[R"S	U5 M@[
RRX5nURXVUS
9 Mq URRRU5 g)a�Create the directory tree that will become the source
distribution archive.  All directories implied by the filenames in
'files' are created under 'base_dir', and then we hard link or copy
(if hard linking is unavailable) those files into place.
Essentially, this duplicates the developer's source tree, but in a
directory named after the distribution, containing only the files
to be distributed.
��dry_run�link�hardzmaking hard links in z...Nzcopying files to z)no files to distribute -- empty manifest?z#'%s' not a regular file -- skipping)r�)�mkpathr�create_treer��hasattrrfr�warningr�rgrhr��	copy_filer��metadata�write_pkg_info)r+r�r�r�r��file�dests       r�make_release_tree�sdist.make_release_tree�s���	
���H�����X�d�l�l�C��2�v����D�)�(��3�7�C��D�%�h�Z�s�3�C���K�K�C�D��H�H�S�M��D��7�7�>�>�$�'�'����A�4�H��w�w�|�|�H�3�����t���5��	
���"�"�1�1�(�;r$c	���URR5n[RR	UR
U5nUR
XRR5 /nSUR;aMURRURRURRS555 URHanURX$XRURS9nURU5 URR RSSU45 Mc X0lUR$(d[&R("XR*S9 gg)aCreate the source distribution(s).  First, we create the release
tree with 'make_release_tree()'; then, we create all required
archive files (according to 'self.formats') from the release tree.
Finally, we clean up by blowing away the release tree (unless
'self.keep_temp' is true).  The list of archive files created is
stored so it can be retrieved later by 'get_archive_files()'.
�tar)r�rNrOr&�r�N)r�r�rfrgr�rLrr]r�r"r��pop�index�make_archiverNrO�
dist_filesrMrKr�remove_treer�)r+r��	base_namerM�fmtr�s      rra�sdist.make_distribution�s���$�$�1�1�3���G�G�L�L�����9�	����x���)<�)<�=��
��D�L�L� ��L�L������ 0� 0����1C�1C�E�1J� K�L��<�<�C��$�$�����4�:�:�%��D�
� � ��&����(�(�/�/��"�d�0C�D� �+���~�~�� � ��<�<�@�r$c��UR$)zjReturn the list of archive files created when the command
was run, or None if the command hasn't run yet.
)rMr*s r�get_archive_files�sdist.get_archive_filess���!�!�!r$)rMrLr]rJr"rOrKrGrIr)rNr2rFrH)�return�bool)r�None)%�__name__�
__module__�__qualname__�__firstlineno__�descriptionr,�user_optionsr>�__annotations__r#r?r@�sub_commandsrCrPrYrcr`ro�staticmethodr�rvrwrxryrzr{r|rprqrrrirjrrar�__static_attributes__rr$rr&r&%s���J�K�#�8�L�t,�O�(��
��D�l�S�W�L�S��
&��.�L�*��
�/�0�1�L�)O�G�
&�O��.
#�!�,'�R%�,�1��1� A�,(�F� 4�"?�
@�
C�
!�F?�.
�&L�
�(<�TA�>"r$r&c�$�URS5$)N�#)�
startswith)r�s rr�r�s���?�?�3��r$)r�r�rr) �__doc__�
__future__rrfr��collections.abcr�	distutilsrrr�distutils._logrr	�	itertoolsr
�typingr�corer
�errorsrrr]r�	text_filer�utilrr#r&r�rr$r�<module>r+sT��L�#�	�
�$�7�7���!���A�� ��V�`"�G�`"�F r$

Youez - 2016 - github.com/yon3zu
LinuXploit