$50 GRAYBYTE WORDPRESS FILE MANAGER $28

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/distutils/command/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/distutils/command/__pycache__//sdist.cpython-34.pyc
�
h f-G�@s�dZddlZddlZddlZddlTddlmZddlmZddlm	Z	ddl
mZmZm
Z
mZddlmZddlTdd	lmZdd
l
mZddlmZdd
�ZGdd�de	�ZdS)zadistutils.command.sdist

Implements the Distutils 'sdist' command (create a source distribution).�N)�*)�glob)�warn)�Command)�dir_util�dep_util�	file_util�archive_util)�TextFile)�FileList)�log)�convert_pathcCs�ddlm}ddlm}g}x6|j�D](}|jd|d||df�q3W|j�||�jd�dS)zoPrint all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    r)�FancyGetopt)�ARCHIVE_FORMATSzformats=N�z.List of available source distribution formats:)Zdistutils.fancy_getoptrZdistutils.archive_utilr�keys�append�sortZ
print_help)rr�formats�format�r�</opt/alt/python34/lib64/python3.4/distutils/command/sdist.py�show_formatss
rc@skeZdZdZdd�ZdMdNdOdPdQdRdSdTdUddddfdVdWdXdYgZd
ddddd"gZd*dd+efgZid
d
6dd6Z	id,d-6d.d/6Z
d0efgZd1d2�Zd3d4�Z
d5d6�Zd7d8�Zd9d:�Zd;d<�Zd=d>�Zd?d@�ZdAdB�ZdCdD�ZdEdF�ZdGdH�ZdIdJ�ZdKdL�ZdS)Z�sdistz6create a source distribution (tarball, zip file, etc.)cCs|jS)zYCallable used for the check sub-command.

        Placed here so user_options can view it)�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)z	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 formatsZgztar�posix�zip�nt�checkcCsyd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_dS)N�r)
�template�manifest�use_defaultsr'�
manifest_onlyZforce_manifestr�	keep_temp�dist_dir�
archive_filesr�owner�group)rrrr�initialize_optionsds												zsdist.initialize_optionscCs�|jdkrd|_n|jdkr6d|_n|jd�|jdkr�y|jtjg|_Wq�tk
r�tdtj��Yq�Xnt	j
|j�}|r�td|��n|jdkr�d|_ndS)NZMANIFESTzMANIFEST.inrz<don't know how to create source distributions on platform %szunknown archive format '%s'Zdist)
rErDZensure_string_listr�default_format�os�name�KeyErrorZDistutilsPlatformErrorr	Zcheck_archive_formatsZDistutilsOptionErrorrI)rZ
bad_formatrrr�finalize_options{s$

zsdist.finalize_optionscCsUt�|_x!|j�D]}|j|�qW|j�|jrGdS|j�dS)N)r�filelistZget_sub_commandsZrun_command�
get_file_listrG�make_distribution)rZcmd_namerrr�run�s
	z	sdist.runcCs7tdt�|jjd�}|j�|j�dS)zDeprecated API.zadistutils.command.sdist.check_metadata is deprecated,               use the check command insteadrBN)r�PendingDeprecationWarning�distributionZget_command_objZensure_finalizedrV)rrBrrr�check_metadata�s


zsdist.check_metadatacCs�tjj|j�}|rP|j�rP|j�|jj�|jj�dS|sq|j	dd|j�n|jj
�|jr�|j�n|r�|j
�n|jr�|j�n|jj�|jj�|j�dS)aCFigure 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 z(using default file list))rO�path�isfilerD�_manifest_is_not_generated�
read_manifestrSrZremove_duplicatesr�findallrF�add_defaults�
read_templater'�prune_file_list�write_manifest)rZtemplate_existsrrrrT�s(


	
	

	


zsdist.get_file_listcCs	d|jjg}x�|D]�}t|t�r�|}d}x:|D]2}tjj|�rAd}|jj|�PqAqAW|s�|j	ddj
|��q�qtjj|�r�|jj|�q|j	d|�qWdd	g}x9|D]1}ttjjt
|��}|jj|�q�W|jd
�}|jj�rV|jj|j��nxM|jD]B\}	}
}}x-|D]%}
|jjtjj
|
|
��qyWq`W|jj�r`x�|jjD]�}t|t�rt|�}tjj|�rY|jj|�qYq�|\}}x?|D]7}t|�}tjj|�r|jj|�qqWq�Wn|jj�r�|jd�}|jj|j��n|jj�r�|jd�}|jj|j��n|jj�r|jd
�}|jj|j��ndS)a9Add 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 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.
        �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_scriptsN)rcrd)rXZscript_name�
isinstance�tuplerOrZ�existsrSrr�join�filterr[r�extend�get_finalized_commandZhas_pure_modulesZget_source_filesZ
data_filesZhas_data_files�strr
Zhas_ext_modulesZhas_c_librariesZhas_scripts)rZ	standards�fnZaltsZgot_itZoptional�pattern�filesreZpkgZsrc_dirZ	build_dir�	filenames�filename�item�dirnamer/rfrgrhrrrr_�s\

	

'
zsdist.add_defaultscCs�tjd|j�t|jdddddddddddd�}z�x�|j�}|d	krhPny|jj|�WqLttfk
r�}z%|j	d
|j
|j|f�WYd	d	}~XqLXqLWWd	|j�Xd	S)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'Zstrip_commentsrCZskip_blanksZ
join_linesZ	lstrip_wsZ	rstrip_wsZ
collapse_joinNz%s, line %d: %s)
r�inforDr
�readlinerSZprocess_template_lineZDistutilsTemplateError�
ValueErrorrruZcurrent_line�close)rrD�line�msgrrrr`(s 	&zsdist.read_templatecCs�|jd�}|jj�}|jjdd|j�|jjdd|�tjdkred}nd}ddd	d
ddd
g}d|dj|�|f}|jj|dd�dS)avPrune 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/|\\�/ZRCSZCVSz\.svnz\.hgz\.gitz\.bzrZ_darcsz(^|%s)(%s)(%s).*�|Zis_regexrC)	rorX�get_fullnamerSZexclude_patternZ
build_base�sys�platformrl)rr~�base_dirZsepsZvcs_dirsZvcs_ptrnrrrraEs		zsdist.prune_file_listcCst|j�r$tjd|j�dS|jjdd�}|jdd�|jtj	|j|fd|j�dS)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'.
        z5not writing to manually maintained manifest file '%s'Nrz*# file GENERATED by distutils, do NOT editzwriting manifest file '%s')
r\rrxrErSrs�insertZexecuterZ
write_file)rZcontentrrrrb]s	zsdist.write_manifestc
CsPtjj|j�sdSt|j�}z|j�}Wd|j�X|dkS)NFz+# file GENERATED by distutils, do NOT edit
)rOrZr[rE�openryr{)r�fpZ
first_linerrrr\lsz sdist._manifest_is_not_generatedcCsytjd|j�t|j�}xF|D]>}|j�}|jd�s)|rWq)n|jj|�q)W|j�dS)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'�#N)	rrxrEr��strip�
startswithrSrr{)rrEr|rrrr]xs
zsdist.read_manifestcCs�|j|�tj||d|j�ttd�rHd}d|}nd}d|}|sntjd�n
tj|�x_|D]W}tj	j
|�s�tjd|�q�tj	j||�}|j||d|�q�W|j
jj|�dS)	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�linkZhardzmaking hard links in %s...Nzcopying files to %s...z)no files to distribute -- empty manifest?z#'%s' not a regular file -- skipping)ZmkpathrZcreate_treer��hasattrrOrrrxrZr[rlZ	copy_filerXZmetadataZwrite_pkg_info)rr�rsr�r}�file�destrrr�make_release_tree�s 
	



zsdist.make_release_treec
Cs|jj�}tjj|j|�}|j||jj�g}d|j	kr}|j	j
|j	j|j	jd���nxd|j	D]Y}|j
||d|d|jd|j�}|j
|�|jjj
dd|f�q�W||_|jstj|d|j�ndS)	a�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()'.
        Ztarr�rKrLr�r�N)rXr�rOrZrlrIr�rSrsrr�pop�indexZmake_archiverKrLZ
dist_filesrJrHrZremove_treer�)rr�Z	base_namerJZfmtr�rrrrU�s
+
 		zsdist.make_distributioncCs|jS)zzReturn the list of archive files created when the command
        was run, or None if the command hasn't run yet.
        )rJ)rrrr�get_archive_files�szsdist.get_archive_files)rrr)r r!r")r#Nr$)r%Nr&)zpruneNr()r)Nr*)r+r,r-)r.r/r0)r1Nr2)r4r5r6)r7Nr8)r9r:r;)r<r=r>)�__name__�
__module__�__qualname__ZdescriptionrZuser_optionsZboolean_optionsrZhelp_optionsZnegative_optrNZsub_commandsrMrRrVrYrTr_r`rarbr\r]r�rUr�rrrrr"sn	



(P*r)�__doc__rO�stringr��typesr�warningsrZdistutils.corerZ	distutilsrrrr	Zdistutils.text_filer
Zdistutils.errorsZdistutils.filelistrrZdistutils.utilr
rrrrrr�<module>s
"



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-34.pyc
0.558 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.558 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist.cpython-34.pyc
3.938 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist.cpython-34.pyo
3.938 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_dumb.cpython-34.pyc
3.875 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_dumb.cpython-34.pyo
3.875 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_msi.cpython-34.pyc
21.328 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_msi.cpython-34.pyo
21.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_rpm.cpython-34.pyc
13.981 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_rpm.cpython-34.pyo
13.905 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_wininst.cpython-34.pyc
8.637 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_wininst.cpython-34.pyo
8.565 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build.cpython-34.pyc
3.972 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build.cpython-34.pyo
3.972 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_clib.cpython-34.pyc
5.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_clib.cpython-34.pyo
5.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_ext.cpython-34.pyc
16.728 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_ext.cpython-34.pyo
16.728 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_py.cpython-34.pyc
11.262 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_py.cpython-34.pyo
11.191 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_scripts.cpython-34.pyc
4.633 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_scripts.cpython-34.pyo
4.633 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
check.cpython-34.pyc
5.144 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
check.cpython-34.pyo
5.144 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
clean.cpython-34.pyc
2.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
clean.cpython-34.pyo
2.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyc
10.804 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyo
10.804 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install.cpython-34.pyc
14.774 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install.cpython-34.pyo
14.774 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_data.cpython-34.pyc
2.49 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_data.cpython-34.pyo
2.49 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_egg_info.cpython-34.pyc
3.12 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_egg_info.cpython-34.pyo
3.12 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_headers.cpython-34.pyc
1.808 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_headers.cpython-34.pyo
1.808 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_lib.cpython-34.pyc
5.557 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_lib.cpython-34.pyo
5.557 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_scripts.cpython-34.pyc
2.326 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_scripts.cpython-34.pyo
2.326 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
register.cpython-34.pyc
9.038 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
register.cpython-34.pyo
9.038 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sdist.cpython-34.pyc
13.861 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sdist.cpython-34.pyo
13.861 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
upload.cpython-34.pyc
5.667 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
upload.cpython-34.pyo
5.667 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF