ok
Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/ |
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/dirtools.pyo |
� Bu�_c @ s| 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 Z e j d � � Z d � Z d � Z d S( i����Nc c s* t j � } z | VWd t j | � Xd S( s2 Create a temporary directory in a context manager.N( t tempfilet mkdtempt shutilt rmtree( t td( ( sL /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/dirtools.pyt tempdir s c O sF y t j | | � SWn+ t k rA } | j t j k rB � qB n Xd S( sW Like `mkdir`, but does not raise an exception if the directory already exists. N( t ost mkdirt OSErrort errnot EEXIST( t argst kwargst exc( ( sL /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/dirtools.pyt mkdir_p s c C s� t j � } t j | d � } x� t j | � D]� \ } } } xL | D]D } t j j | | � } t j j | | � } | j | d d � qD WxH | D]@ } t j j | | � } t j j | | � } | j | | � q� Wq. W| S( s0 Construct an in-memory zip file for a directory.t wt /t ( t iot BytesIOt zipfilet ZipFileR t walkt patht joint relpatht writestrt write( t roott buffert zip_filet dirst filesR t fs_patht rel_path( ( sL /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/dirtools.pyt dir_to_zipfile s ( R R t contextlibR R R R t contextmanagerR R R# ( ( ( sL /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/dirtools.pyt <module> s