config root man

Current Path : /usr/local/lib/python2.5/distutils/command/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/distutils/command/sdist.pyc

³ò
h”Rc@sÙdZdZddkZddkZddkZddkTddklZddklZddk	l
Z
lZlZl
Z
ddklZddkTdd	klZdd
k	lZd„Zdefd
„ƒYZdS(sadistutils.command.sdist

Implements the Distutils 'sdist' command (create a source distribution).s:$Id: sdist.py 61268 2008-03-06 07:14:26Z martin.v.loewis $iÿÿÿÿN(t*(tglob(tCommand(tdir_utiltdep_utilt	file_utiltarchive_util(tTextFile(tFileList(tlogcCs†ddkl}ddkl}g}x6|iƒD](}|id|d||dfƒq3W|iƒ||ƒ}|idƒdS(soPrint all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    iÿÿÿÿ(tFancyGetopt(tARCHIVE_FORMATSsformats=is.List of available source distribution formats:N(	tdistutils.fancy_getoptR
tdistutils.archive_utilRtkeystappendtNonetsortt
print_help(R
Rtformatstformattpretty_printer((s3/usr/local/lib/python2.5/distutils/command/sdist.pytshow_formatss

tsdistc
BseZdZd1d2d4d5d6d7d8d9d:ddddfd;gZdddddgZdd3defgZhdd	<dd
<Zhd d!<d"d#<Z	d$„Z
d%„Zd&„Zd'„Z
d(„Zd)„Zd*„Zd+„Zd,„Zd-„Zd.„Zd/„Zd0„ZRS(<s6create 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 formatstgztartposixtziptntcCs^d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
dS(Nii(Rttemplatetmanifesttuse_defaultsRt
manifest_onlytforce_manifestRt	keep_temptdist_dirt
archive_files(tself((s3/usr/local/lib/python2.5/distutils/command/sdist.pytinitialize_optionsUs									cCsê|idjo
d|_n|idjo
d|_n|idƒ|idjoHy|itig|_WqŸtj
ot	ddti‚qŸXnt
i|iƒ}|otd|‚n|i
djo
d|_
ndS(NtMANIFESTsMANIFEST.inRs.don't know how to create source distributions son platform %ssunknown archive format '%s'tdist(R$RR#tensure_string_listRtdefault_formattostnametKeyErrortDistutilsPlatformErrorRtcheck_archive_formatstDistutilsOptionErrorR)(R+t
bad_format((s3/usr/local/lib/python2.5/distutils/command/sdist.pytfinalize_optionsjs$


cCs@tƒ|_|iƒ|iƒ|iodSn|iƒdS(N(Rtfilelisttcheck_metadatat
get_file_listR&tmake_distribution(R+((s3/usr/local/lib/python2.5/distutils/command/sdist.pytrun‚s


cCsï|ii}g}x?dD]7}t||ƒo
t||ƒp|i|ƒqqW|o!|idti|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.
        R2tversionturlsmissing 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(snamesversionR?(tdistributiontmetadatathasattrtgetattrRtwarntstringtjointauthortauthor_emailt
maintainertmaintainer_email(R+RAtmissingtattr((s3/usr/local/lib/python2.5/distutils/command/sdist.pyR:šs( 	

	

	cCs~tii|iƒ}|oti|i|iƒ}n|id|ii	|ifƒti|ii	|iƒ}|o|p|}|i
p|i}tii|iƒ}|o|}|p|p|o|p|idd|iƒn|i
iƒ|io|iƒn|o|iƒn|io|iƒn|i
iƒ|i
iƒ|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(R1tpathtisfileR#RtnewerR$tdebug_printR@tscript_nameR'R&RDR9tfindallR%tadd_defaultst
read_templateRtprune_file_listRtremove_duplicatestwrite_manifestt
read_manifest(R+ttemplate_existsttemplate_newertsetup_newertmanifest_outofdatetforce_regentmanifest_existstneither_exists((s3/usr/local/lib/python2.5/distutils/command/sdist.pyR;»s8
		
	




cCs d|iig}xÐ|D]È}t|ƒtjow|}d}x<|D]4}tii|ƒod}|ii|ƒPqEqEW|p!|i	dt
i|dƒƒqáqtii|ƒo|ii|ƒq|i	d|ƒqWdd	g}xD|D]<}ttii
t|ƒƒ}|o|ii|ƒqøqøW|iiƒo)|id
ƒ}|ii|iƒƒn|iiƒo)|idƒ}	|ii|	iƒƒn|iiƒo)|idƒ}
|ii|
iƒƒn|iiƒo)|id
ƒ}|ii|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(R@RQttypet	TupleTypeR1RMtexistsR9RRDRERFtfilterRNRtextendthas_pure_modulestget_finalized_commandtget_source_filesthas_ext_modulesthas_c_librariesthas_scripts(R+t	standardstfntaltstgot_ittoptionaltpatterntfilesRaRbRcRd((s3/usr/local/lib/python2.5/distutils/command/sdist.pyRSsH		cCsºtid|iƒt|iddddddddddddƒ}xm|iƒ}|d
joPny|ii|ƒWqItj
o)}|i	d	|i
|i|fƒqIXqId
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(R	tinfoR#RtreadlineRR9tprocess_template_linetDistutilsTemplateErrorRDtfilenametcurrent_line(R+R#tlinetmsg((s3/usr/local/lib/python2.5/distutils/command/sdist.pyRT:s$	
cCsg|idƒ}|iiƒ}|iidd|iƒ|iidd|ƒ|iidddƒdS(svPrune 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
        tbuildtprefixs/(^|/)(RCS|CVS|\.svn|\.hg|\.git|\.bzr|_darcs)/.*tis_regexiN(RkR@tget_fullnameR9texclude_patternRt
build_base(R+R…tbase_dir((s3/usr/local/lib/python2.5/distutils/command/sdist.pyRUXs
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(texecuteRt
write_fileR$R9Rv(R+((s3/usr/local/lib/python2.5/distutils/command/sdist.pyRWhscCs|tid|iƒt|iƒ}xS|iƒ}|djoPn|ddjo|dd!}n|ii|ƒq%dS(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'tiÿÿÿÿs
iN(R	R}R$topenR~R9R(R+R$Rƒ((s3/usr/local/lib/python2.5/distutils/command/sdist.pyRXts
cCsú|i|ƒti||d|iƒttdƒod}d|}nd}d|}|ptidƒnti	|ƒxa|D]Y}ti
i|ƒptid|ƒq†ti
i||ƒ}|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(tmkpathRtcreate_treeRRBR1RR	RDR}RMRNRFt	copy_fileR@RAtwrite_pkg_info(R+R‹RvR‘R„tfiletdest((s3/usr/local/lib/python2.5/distutils/command/sdist.pytmake_release_tree†s"
	

cCsÉ|iiƒ}tii|i|ƒ}|i||iiƒg}xR|i	D]G}|i
||d|ƒ}|i|ƒ|iiidd|fƒ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‹RRŽRN(R@RˆR1RMRFR)R™R9RvRtmake_archiveRt
dist_filesR*R(Rtremove_treeR(R+R‹t	base_nameR*tfmtR—((s3/usr/local/lib/python2.5/distutils/command/sdist.pyR<²s


 	
cCs|iS(szReturn the list of archive files created when the command
        was run, or None if the command hasn't run yet.
        (R*(R+((s3/usr/local/lib/python2.5/distutils/command/sdist.pytget_archive_filesËs(s	template=Rs5name of manifest template file [default: MANIFEST.in](s	manifest=Rs)name of manifest file [default: MANIFEST]N(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__tdescriptionRtuser_optionstboolean_optionsRthelp_optionstnegative_optR0R,R8R=R:R;RSRTRURWRXR™R<RŸ(((s3/usr/local/lib/python2.5/distutils/command/sdist.pyR#s\		

				!	F	9					,	(t__doc__t__revision__tsysR1REttypesRtdistutils.coreRt	distutilsRRRRtdistutils.text_fileRtdistutils.errorstdistutils.filelistRR	RR(((s3/usr/local/lib/python2.5/distutils/command/sdist.pys<module>s$
"
	

Man Man