KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/distutils/command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/distutils/command/sdist.pyo
mò
‚=5Dc@s¸dZdZdkZdkZdkZdkTdklZdklZdk	l
Z
lZlZl
Z
dklZdkTdklZd	k	lZd
„Zdefd„ƒYZdS(
sadistutils.command.sdist

Implements the Distutils 'sdist' command (create a source distribution).s1$Id: sdist.py 37828 2004-11-10 22:23:15Z loewis $N(t*(sglob(sCommand(sdir_utilsdep_utils	file_utilsarchive_util(sTextFile(sFileList(slogcCs€dkl}dkl}g}x6|iƒD](}|id|d||dfƒq-W|i	ƒ||ƒ}|idƒdS(soPrint all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    (sFancyGetopt(sARCHIVE_FORMATSsformats=is.List of available source distribution formats:N(tdistutils.fancy_getopttFancyGetopttdistutils.archive_utiltARCHIVE_FORMATStformatstkeystformattappendtNonetsorttpretty_printert
print_help(RRRRR((t//usr/lib64/python2.4/distutils/command/sdist.pytshow_formatss


&
tsdistc
BstZdZd2d3d4d5d6d7d8d9d:ddddfd;gZdddddgZddd efgZhd
d<dd<Zhd!d"<d#d$<Z	d%„Z
d&„Zd'„Zd(„Z
d)„Zd*„Zd+„Zd,„Zd-„Zd.„Zd/„Zd0„Zd1„ZRS(<Ns6create a source distribution (tarball, zip file, etc.)s	template=tts5name of manifest template file [default: MANIFEST.in]s	manifest=tms)name of manifest file [default: MANIFEST]suse-defaultssRinclude the default file set in the manifest [default; disable with --no-defaults]sno-defaultss"don't include the default file settprunes‰specifically exclude files/directories that should not be distributed (build tree, RCS/CVS dirs, etc.) [default; disable with --no-prune]sno-prunes$don't automatically exclude anythings
manifest-onlytosEjust regenerate the manifest and then stop (implies --force-manifest)sforce-manifesttfs6forcibly regenerate the manifest and carry on as usualsformats=s6formats for source distribution (comma-separated list)s	keep-temptks1keep the distribution tree around after creating sarchive file(s)s	dist-dir=tdsFdirectory to put the source distribution archive(s) in [default: dist]shelp-formatss#list available distribution formatstposixtgztartnttzipcCs^d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_dS(Nii(R	tselfttemplatetmanifesttuse_defaultsRt
manifest_onlytforce_manifestRt	keep_temptdist_dirt
archive_files(R((R
tinitialize_optionsUs									cCsê|idjo
d|_n|idjo
d|_n|idƒ|idjoHy|itig|_WqŸt	j
ot
ddti‚qŸXnti|iƒ}|otd|‚n|idjo
d|_ndS(NtMANIFESTsMANIFEST.inRs.don't know how to create source distributions son platform %ssunknown archive format '%s'tdist(RRR	Rtensure_string_listRtdefault_formattostnametKeyErrortDistutilsPlatformErrortarchive_utiltcheck_archive_formatst
bad_formattDistutilsOptionErrorR"(RR/((R
tfinalize_optionsjs


cCs@tƒ|_|iƒ|iƒ|iodSn|iƒdS(N(tFileListRtfilelisttcheck_metadatat
get_file_listRtmake_distribution(R((R
trun‚s


cCsï|ii}g}x?dD]7}t||ƒo
t||ƒp|i|ƒqqW|o!|idt	i
|dƒƒn|io#|ip|iddƒqënC|i
o#|ip|idd	ƒqën|id
ddƒd
S(sæEnsure that all required elements of meta-data (name, version,
        URL, (author and author_email) or (maintainer and
        maintainer_email)) are supplied by the Distribution object; warn if
        any are missing.
        R*tversionturlsmissing required meta-data: s, s)missing meta-data: if 'author' supplied, s#'author_email' must be supplied toos-missing meta-data: if 'maintainer' supplied, s''maintainer_email' must be supplied toos4missing meta-data: either (author and author_email) s%or (maintainer and maintainer_email) smust be suppliedN(snamesversionR9(RtdistributiontmetadatatmissingtattrthasattrtgetattrRtwarntstringtjointauthortauthor_emailt
maintainertmaintainer_email(RR=R<R;((R
R4šs  !



cCs~tii|iƒ}|oti|i|iƒ}n|i
d|ii|ifƒti|ii|iƒ}|o|p|}|ip|i}tii|iƒ}|o|}|p|p|o|p|idd|iƒn|iiƒ|io|iƒn|o|iƒn|io|iƒn|iiƒ|iiƒ|iƒn|iƒdS(scFigure 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 and the state of the filesystem.
        schecking if %s newer than %ss&manifest template '%s' does not exist s(using default file list)N( R)tpathtisfileRRttemplate_existstdep_utiltnewerRttemplate_newertdebug_printR:tscript_nametsetup_newertmanifest_outofdateR Rtforce_regentmanifest_existstneither_existsR@R3tfindallRtadd_defaultst
read_templateRtprune_file_listR
tremove_duplicatestwrite_manifestt
read_manifest(RRSRORQRLRRRIRP((R
R5»s2	 




cCs d|iig}xÐ|D]È}t|ƒtjow|}
d}x<|
D]4}t	i
i|ƒod}|ii
|ƒPqEqEW|p!|idti|
dƒƒqáqt	i
i|ƒo|ii
|ƒq|id|ƒqWdd	g}xD|D]<}tt	i
it|ƒƒ}|o|ii|ƒqøqøW|iiƒo)|id
ƒ}|ii|iƒƒn|iiƒo)|idƒ}|ii|iƒƒn|iiƒo)|idƒ}	|ii|	iƒƒn|ii ƒo)|id
ƒ}|ii|iƒƒndS(s©Add all the default files to self.filelist:
          - README or README.txt
          - setup.py
          - test/test*.py
          - all pure Python modules mentioned in setup script
          - 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.
        tREADMEs
README.txtiis,standard file not found: should have one of s, sstandard file '%s' not founds
test/test*.pys	setup.cfgtbuild_pyt	build_extt
build_clibt
build_scriptsN(R[s
README.txt("RR:RNt	standardstfnttypet	TupleTypetaltstgot_itR)RGtexistsR3RR@RARBtoptionaltpatterntfilterRHtglobtfilestextendthas_pure_modulestget_finalized_commandR\tget_source_filesthas_ext_modulesR]thas_c_librariesR^thas_scriptsR_(RRkR]R\R`ReRgRhR_R^RdRa((R
RUsH
	%cCs¼tid|iƒt|iddddddddddddƒ}xo|iƒ}|d
joPny|ii	|ƒWqIt
j
o)}|id	|i
|i|fƒqIXqIWd
S(sÈ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.
        sreading manifest template '%s'tstrip_commentsitskip_blankst
join_linest	lstrip_wst	rstrip_wst
collapse_joins%s, line %d: %sN(tlogtinfoRRtTextFiletreadlinetlineR	R3tprocess_template_linetDistutilsTemplateErrortmsgR@tfilenametcurrent_line(RRR€R}((R
RV:s$	
cCsg|idƒ}|iiƒ}|iidd|i	ƒ|iidd|ƒ|iidddƒdS(s`Prune 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 and .svn directories
        tbuildtprefixs/(RCS|CVS|\.svn)/.*tis_regexiN(
RRnRƒR:tget_fullnametbase_dirR3texclude_patternR	t
build_base(RRƒR‡((R
RWXscCs0|iti|i|iifd|iƒdS(s²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'.
        swriting manifest file '%s'N(Rtexecutet	file_utilt
write_fileRR3Rk(R((R
RYhscCs~tid|iƒt|iƒ}xU|iƒ}|djoPn|ddjo|dd!}n|ii|ƒq%WdS(sª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.
        sreading manifest file '%s'itiÿÿÿÿs
iN(	RyRzRRtopenR|R}R3R(RR}R((R
RZts
cCsú|i|ƒti||d|iƒttdƒod}d|}nd}d|}|pti
dƒnti|ƒxa|D]Y}tii|ƒpti
d|ƒq†tii||ƒ}|i||d|ƒq†W|iii|ƒdS(	sÆ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.
        tdry_runtlinkthardsmaking hard links in %s...scopying files to %s...s)no files to distribute -- empty manifest?s#'%s' not a regular file -- skippingN(RtmkpathR‡tdir_utiltcreate_treeRkRR>R)RR€R	RyR@RztfileRGRHRBtdestt	copy_fileR:R;twrite_pkg_info(RR‡RkR–R•R€R((R
tmake_release_tree†s$
	

cCs­|iiƒ}tii|i|ƒ}|i	||i
iƒg}x6|i
D]+}|i||d|ƒ}|i|ƒqMW||_|ipti|d|iƒndS(s¯Create 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()'.
        R‡RN(RR:R†R‡R)RGRBR"t	base_nameR™R3RkR#Rtfmttmake_archiveR•RR!R“tremove_treeR(RRšR#R•R›R‡((R
R6²s
	
cCs|iS(szReturn the list of archive files created when the command
        was run, or None if the command hasn't run yet.
        N(RR#(R((R
tget_archive_filesÊs(s	template=Rs5name of manifest template file [default: MANIFEST.in](s	manifest=Rs)name of manifest file [default: MANIFEST](suse-defaultsNsRinclude the default file set in the manifest [default; disable with --no-defaults](sno-defaultsNs"don't include the default file set(spruneNs‰specifically exclude files/directories that should not be distributed (build tree, RCS/CVS dirs, etc.) [default; disable with --no-prune](sno-pruneNs$don't automatically exclude anything(s
manifest-onlyRsEjust regenerate the manifest and then stop (implies --force-manifest)(sforce-manifestRs6forcibly regenerate the manifest and carry on as usual(sformats=Ns6formats for source distribution (comma-separated list)(s	dist-dir=RsFdirectory to put the source distribution archive(s) in [default: dist](t__name__t
__module__tdescriptionR	tuser_optionstboolean_optionsRthelp_optionstnegative_optR(R$R1R7R4R5RURVRWRYRZR™R6Rž(((R
R#s&4				!	F	9					,	(t__doc__t__revision__tsysR)RAttypesRjtdistutils.coretCommandt	distutilsR“RJR‹R-tdistutils.text_fileR{tdistutils.errorstdistutils.filelistR2RyRR(RJR§RAR‹RjR2R¨R-R«R“R{R)RRRy((R
t?s




	

Anon7 - 2021