Your IP : 18.118.144.239
�
��Rec @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m
Z
m Z d d d d d d
d g Z d e f d � � YZ
d
� Z e d d � Z e d � Z e d � Z e d � Z e e e f Z d S( s/ Utilities for extracting common archive formatsi����N( t DistutilsError( t ensure_directoryt ContextualZipFilet unpack_archivet unpack_zipfilet unpack_tarfilet default_filtert UnrecognizedFormatt extraction_driverst unpack_directoryc B s e Z d Z RS( s# Couldn't recognize the archive type( t __name__t
__module__t __doc__( ( ( s� /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/archive_util.pyR s c C s | S( s@ The default progress/filter callback; returns True for all files( ( t srct dst( ( s� /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/archive_util.pyR s c C sZ xS | p t D]5 } y | | | | � Wn t k
r= q
q
Xd Sq
Wt d | � � d S( s� Unpack `filename` to `extract_dir`, or raise ``UnrecognizedFormat``
`progress_filter` is a function taking two arguments: a source path
internal to the archive ('/'-separated), and a filesystem path where it
will be extracted. The callback must return the desired extract path
(which may be the same as the one passed in), or else ``None`` to skip
that file or directory. The callback can thus be used to report on the
progress of the extraction, as well as to filter the items extracted or
alter their extraction paths.
`drivers`, if supplied, must be a non-empty sequence of functions with the
same signature as this function (minus the `drivers` argument), that raise
``UnrecognizedFormat`` if they do not support extracting the designated
archive type. The `drivers` are tried in sequence until one is found that
does not raise an error, or until all are exhausted (in which case
``UnrecognizedFormat`` is raised). If you do not supply a sequence of
drivers, the module's ``extraction_drivers`` constant will be used, which
means that ``unpack_zipfile`` and ``unpack_tarfile`` will be tried, in that
order.
Ns! Not a recognized archive type: %s( R R ( t filenamet extract_dirt progress_filtert driverst driver( ( s� /builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/archive_util.pyR s
c C s: t j j | � s% t d | � � n i d | f | 6} x� t j | � D]� \ } } } | | \ } } xD | D]<