????
| Current Path : /usr/lib/python2.7/site-packages/pip/_internal/distributions/ |
| Current File : //usr/lib/python2.7/site-packages/pip/_internal/distributions/source.pyc |
�
}�\]c @ se d d l Z d d l m Z d d l m Z d d l m Z e j e � Z d e f d � � YZ
d S( i����N( t BuildEnvironment( t AbstractDistribution( t InstallationErrort SourceDistributionc B s e Z d Z d � Z d � Z RS( s� Represents a source distribution.
The preparation step for these needs metadata for the packages to be
generated, either using PEP 517 or using the legacy `setup.py egg_info`.
NOTE from @pradyunsg (14 June 2019)
I expect SourceDistribution class will need to be split into
`legacy_source` (setup.py based) and `source` (PEP 517 based) when we start
bringing logic for preparation out of InstallRequirement into this class.
c C s
| j j � S( N( t reqt get_dist( t self( ( sA /tmp/pip-install-ewDPok/pip/pip/_internal/distributions/source.pyt get_pkg_resources_distribution s c s� � j j � � j j o | } � � f d � } | rdt � � j _ � j j j | � j j d d � � j j j � j j � \ � } � r� | d � � n | r� t j
d � j � t j
d d j t t
t | � � � � n � j j �# d � j _ � j j j � } Wd QX� j j j | � \ � } � rE| d � � n � j j j | | d
d � n � j j � � j j � d S( Nc s9 t d � j | d j d � t � � D� � f � � d S( Ns4 Some build dependencies for %s conflict with %s: %s.s , c s s% | ] \ } } d | | f Vq d S( s %s is incompatible with %sN( ( t .0t installedt wanted( ( sA /tmp/pip-install-ewDPok/pip/pip/_internal/distributions/source.pys <genexpr>% s ( R R t joint sorted( t conflicting_witht conflicting_reqs( t conflictingR ( sA /tmp/pip-install-ewDPok/pip/pip/_internal/distributions/source.pyt _raise_conflicts! s
t overlays Installing build dependenciess"