3
ՔRe7 @ s~ d dl mZ d dljjZd dlZd dlZd dlZd dl Z d dl
mZ ddlm
Z
d dlZeZdddZG d d
d
e
ejZdS ) )logN)six )sdist_add_defaults c c s4 x.t jdD ] }x|j | D ]
}|V qW qW dS )z%Find all files under revision controlzsetuptools.file_findersN)
pkg_resourcesiter_entry_pointsload)dirnameepitem r
/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/command/sdist.pywalk_revctrl s r c s e Zd ZdZd0d2d3gZi Zdd
ddgZedd eD Zdd Z dd Z
dd Zdd Ze
ejdd Zdd Zejd4k pd5ej kod6k n pd7ej kod8k n ZereZd$d% Z fd&d'Zd(d) Zd*d+ Zd,d- Zd.d/ Z ZS )9sdistz=Smart sdist that finds anything supported by revision controlformats=N6formats for source distribution (comma-separated list) keep-tempkz1keep the distribution tree around after creating zarchive file(s) dist-dir=dFdirectory to put the source distribution archive(s) in [default: dist]r z.rstz.txtz.mdc c s | ]}d j |V qdS )z README{0}N)format).0extr
r
r ) s zsdist.c C s | j d | jd}|j| _| jjtjj|jd | j x| j D ]}| j | qFW | j
t| jdg }x*| j
D ] }dd|f}||krv|j| qvW d S )Negg_infozSOURCES.txt
dist_filesr r )run_commandget_finalized_commandfilelistappendospathjoinr check_readmeget_sub_commandsmake_distributiongetattrdistributionZ
archive_files)selfZei_cmdcmd_namer filedatar
r
r run+ s
z sdist.runc C s t jj| | j d S )N)origr initialize_options_default_to_gztar)r* r
r
r r0 > s zsdist.initialize_optionsc C s t jdkrd S dg| _d S )N r betar gztar)r2 r3 r r4 r )sysversion_infoformats)r* r
r
r r1 C s
zsdist._default_to_gztarc C s$ | j tjj| W dQ R X dS )z%
Workaround for #516
N)_remove_os_linkr/ r r' )r* r
r
r r' I s
zsdist.make_distributionc c s^ G dd d} t td| }yt`W n tk
r6 Y nX z
dV W d|| k rXttd| X dS )zG
In a context, remove and restore os.link if it exists
c @ s e Zd ZdS )z&sdist._remove_os_link..NoValueN)__name__
__module____qualname__r
r
r
r NoValueW s r= linkN)r( r" r> Exceptionsetattr)r= Zorig_valr
r
r r9 P s
zsdist._remove_os_linkc C sL yt jj| W n6 tk
rF tj \}}}|jjjd j Y nX d S )Ntemplate)
r/ r
read_templater? r6 exc_infotb_nexttb_framef_localsclose)r* _tbr
r
r Z__read_template_hacke s zsdist.__read_template_hack r2 r r c sb | j j r^| jd}| jj|j | j js^x0|jD ]&\} }}| jj fdd|D q4W dS )zgetting python filesbuild_pyc s g | ]}t jj |qS r
)r" r# r$ )r filename)src_dirr
r