Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 \¢Eã@s¨ddlZddlZddlTddlmZddlmZddlmZddlm Z m Z m Z m Z ddl mZddlTddlmZdd lmZdd lmZd d „ZGd d„deƒZdS)éN)Ú*)Úglob)Úwarn)ÚCommand)Údir_utilÚdep_utilÚ file_utilÚ archive_util)ÚTextFile)ÚFileList)Úlog)Ú convert_pathcCsdddlm}ddlm}g}x,|jƒD] }|jd|d||dfƒq&W|jƒ||ƒjdƒdS)Nr)Ú FancyGetopt)ÚARCHIVE_FORMATSzformats=éz.List of available source distribution formats:)Zdistutils.fancy_getoptrZdistutils.archive_utilrÚkeysÚappendÚsortZ print_help)rrÚformatsÚformat©rú//usr/lib64/python3.6/distutils/command/sdist.pyÚ show_formatss   rc@sÚeZdZdZdd„ZdJdKdLdMdNdOdPdQdRdTdUdVdWdXgZd ddddd"gZd*d d+efgZd dd,œZ d-efgZ d.d/„Z d0d1„Z d2d3„Z d4d5„Zd6d7„Zd8d9„Zd:d;„Zdd?„Zd@dA„ZdBdC„ZdDdE„ZdFdG„ZdHdI„Zd S)YÚsdistz6create a source distribution (tarball, zip file, etc.)cCs|jS)N)Úmetadata_check)ÚselfrrrÚchecking_metadata%szsdist.checking_metadataú template=Útú5name of manifest template file [default: MANIFEST.in]ú manifest=Úmú)name of manifest file [default: MANIFEST]ú use-defaultsNúRinclude the default file set in the manifest [default; disable with --no-defaults]ú no-defaultsú"don't include the default file setÚpruneú‰specifically exclude files/directories that should not be distributed (build tree, RCS/CVS dirs, etc.) [default; disable with --no-prune]úno-pruneú$don't automatically exclude anythingú manifest-onlyÚoúEjust regenerate the manifest and then stop (implies --force-manifest)úforce-manifestÚfúkforcibly regenerate the manifest and carry on as usual. Deprecated: now the manifest is always regenerated.úformats=ú6formats for source distribution (comma-separated list)ú keep-tempÚkz1keep the distribution tree around after creating zarchive file(s)ú dist-dir=ÚdúFdirectory to put the source distribution archive(s) in [default: dist]úmetadata-checkú[Ensure that all required elements of meta-data are supplied. Warn if any missing. [default]úowner=Úuú@Owner name used when creating a tar file [default: current user]úgroup=ÚgúAGroup name used when creating a tar file [default: current group]z help-formatsz#list available distribution formats)z no-defaultszno-pruneÚcheckcCsTd|_d|_d|_d|_d|_d|_dg|_d|_d|_d|_ d|_ d|_ d|_ dS)NérZgztar) ÚtemplateÚmanifestÚ use_defaultsr'Ú manifest_onlyZforce_manifestrÚ keep_tempÚdist_dirÚ archive_filesrÚownerÚgroup)rrrrÚinitialize_options`szsdist.initialize_optionscCsZ|jdkrd|_|jdkr d|_|jdƒtj|jƒ}|rFtd|ƒ‚|jdkrVd|_dS)NZMANIFESTz MANIFEST.inrzunknown archive format '%s'Zdist)rCrBZensure_string_listr Zcheck_archive_formatsrZDistutilsOptionErrorrG)rZ bad_formatrrrÚfinalize_optionsws      zsdist.finalize_optionscCsBtƒ|_x|jƒD]}|j|ƒqW|jƒ|jr6dS|jƒdS)N)r ÚfilelistZget_sub_commandsZ run_commandÚ get_file_listrEÚmake_distribution)rZcmd_namerrrÚrun‡sz sdist.runcCs*tdtƒ|jjdƒ}|jƒ|jƒdS)Nzadistutils.command.sdist.check_metadata is deprecated, use the check command insteadr@)rÚPendingDeprecationWarningÚ distributionZget_command_objZensure_finalizedrP)rr@rrrÚcheck_metadata�s  zsdist.check_metadatacCs¢tjj|jƒ}| r<|jƒr<|jƒ|jjƒ|jjƒdS|sP|j d|jƒ|jj ƒ|j rh|j ƒ|rt|j ƒ|jr‚|jƒ|jjƒ|jjƒ|jƒdS)Nz&manifest template '%s' does not exist z(using default file list)z?manifest template '%s' does not exist (using default file list))ÚosÚpathÚisfilerBÚ_manifest_is_not_generatedÚ read_manifestrMrZremove_duplicatesrÚfindallrDÚ add_defaultsÚ read_templater'Úprune_file_listÚwrite_manifest)rZtemplate_existsrrrrN¥s(      zsdist.get_file_listcCs2d|jjg}xŒ|D]„}t|tƒrn|}d}x*|D]"}tjj|ƒr.d}|jj|ƒPq.W|s–|j ddj |ƒƒqtjj|ƒrˆ|jj|ƒq|j d|ƒqWdd g}x*|D]"}t tjj t |ƒƒ}|jj|ƒq¨W|jd ƒ}|jjƒrò|jj|jƒƒx>|jD]4\} } } } x$| D]} |jjtjj | | ƒƒ�q W�qúW|jjƒ�r¼x||jjD]p}t|tƒ�r|t|ƒ}tjj |ƒ�r¶|jj|ƒn:|\}} x0| D](}t|ƒ}tjj |ƒ�rŠ|jj|ƒ�qŠW�qHW|jjƒ�râ|jd ƒ}|jj|jƒƒ|jjƒ�r|jd ƒ}|jj|jƒƒ|jjƒ�r.|jd ƒ}|jj|jƒƒdS)NÚREADMEú README.txtFTz,standard file not found: should have one of z, zstandard file '%s' not foundz test/test*.pyz setup.cfgÚbuild_pyÚ build_extÚ build_clibÚ build_scripts)r^r_)rRZ script_nameÚ isinstanceÚtuplerTrUÚexistsrMrrÚjoinÚfilterrVrÚextendÚget_finalized_commandZhas_pure_modulesZget_source_filesZ data_filesZhas_data_filesÚstrr Zhas_ext_modulesZhas_c_librariesZ has_scripts)rZ standardsÚfnZaltsZgot_itZoptionalÚpatternÚfilesr`ZpkgZsrc_dirZ build_dirÚ filenamesÚfilenameÚitemÚdirnamer/rarbrcrrrrZÍs\           "         zsdist.add_defaultscCs¢tjd|jƒt|jddddddd�}zlxf|jƒ}|dkrr?)Ú__name__Ú __module__Ú __qualname__Z descriptionrZ user_optionsZboolean_optionsrZ help_optionsZ negative_optZ sub_commandsrKrLrPrSrNrZr[r\r]rWrXrŒrOr�rrrrr!sj  (P *r)rTr~ÚtypesrÚwarningsrZdistutils.corerZ distutilsrrrr Zdistutils.text_filer Zdistutils.errorsZdistutils.filelistr r Zdistutils.utilr rrrrrrÚs