ok
Direktori : /usr/lib/python2.7/site-packages/setuptools/command/ |
Current File : //usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyc |
� b-�Qc @ st d d l m Z d d l m Z d d l m Z m Z d d l Z d d l Z d d l Z d e f d � � YZ d S( i����( t Command( t unpack_archive( t logt dir_utilNt install_egg_infoc B s\ e Z d Z d Z d g Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s. Install an .egg-info directory for the packages install-dir=t ds directory to install toc C s d | _ d S( N( t Nonet install_dir( t self( ( sG /usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyt initialize_options s c C s� | j d d � | j d � } t j d d | j | j � j � d } | j | _ t j j | j | � | _ | j g | _ d S( Nt install_libR t egg_infos .egg-info( s install_dirs install_dir( t set_undefined_optionst get_finalized_commandt pkg_resourcest DistributionR t egg_namet egg_versionR t sourcet ost patht joinR t targett outputs( R t ei_cmdt basename( ( sG /usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyt finalize_options s c C s� | j d � | j } t j j | j � r] t j j | j � r] t j | j d | j �n; t j j | j � r� | j t j | j f d | j � n | j s� t j | j � n | j | j d d | j | j f � | j � d S( NR t dry_runs Removing s Copying %s to %s( ( t run_commandR R R t isdirt islinkR t remove_treeR t existst executet unlinkR t ensure_directoryt copytreeR t install_namespaces( R R ( ( sG /usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyt run s +& c C s | j S( N( R ( R ( ( sG /usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyt get_outputs* s c s) � f d � } t � j � j | � d S( Nc s[ x1 d D]) } | j | � s, d | | k r d Sq W� j j | � t j d | | � | S( Ns .svn/s CVS/t /s Copying %s to %s( s .svn/s CVS/( t startswithR R t appendR t debug( t srct dstt skip( R ( sG /usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyt skimmer/ s ( R R R ( R R/ ( ( R sG /usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyR$ - s c C s | j � } | s d St j j | j � \ } } | d 7} | j j | � t j d | � | j s� t | d � } xy | D]q } t | � } t | j d � � } d } d | k r� d d j | d � | d f } n | j d t � � qz W| j � n d S( Ns -nspkg.pths Installing %st wtt .s s( ; m and setattr(sys.modules[%r], %r, m) i����s7 import sys,types,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *%(pth)r); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault(%(pkg)r,types.ModuleType(%(pkg)r)); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)%(trailer)s( t _get_all_ns_packagesR R t splitextR R R* R t infoR t opent strt tuplet splitR t writet localst close( R t nspt filenamet extt ft pkgt ptht trailer( ( sG /usr/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyR% S s( !c C sv i } xS | j j p g D]? } | j d � } x'