� �fc @ s d d l m Z d d l m Z d d l j j 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 m Z y d d l m Z Wn$ e k r� d d d � � YZ n Xd e j e f d � � YZ d d � Z d � Z d S( i����( t glob( t convert_pathN( t six( t mapt filtert filterfalse( t Mixin2to3R c B s e Z e d � Z RS( c C s d S( s do nothingN( ( t selft filest doctests( ( s? /usr/lib/python2.7/site-packages/setuptools/command/build_py.pyt run_2to3 t ( t __name__t __module__t TrueR ( ( ( s? /usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR s t build_pyc B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � � Z RS( sX Enhanced 'build_py' command that includes data files with packages The data files are specified via a 'package_data' argument to 'setup()'. See 'setuptools.dist.Distribution' for more details. Also, this version of the 'build_py' command allows you to specify both 'py_modules' and 'packages' in the same setup operation. c C sf t j j | � | j j | _ | j j p. i | _ d | j k rP | j d =n g | _ g | _ d S( Nt data_files( t origR t finalize_optionst distributiont package_datat exclude_package_datat __dict__t _build_py__updated_filest _build_py__doctests_2to3( R ( ( s? /usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR ! s c C s� | j r | j r d S| j r. | j � n | j rN | j � | j � n | j | j t � | j | j t � | j | j t � | j t j j | d d �� d S( s? Build modules, packages, and copy data files to build directoryNt include_bytecodei ( t py_modulest packagest build_modulest build_packagest build_package_dataR R t FalseR R t byte_compileR R t get_outputs( R ( ( s? /usr/lib/python2.7/site-packages/setuptools/command/build_py.pyt run+ s c C s5 | d k r" | j � | _ | j St j j | | � S( s lazily compute data filesR ( t _get_data_filesR R R t __getattr__( R t attr( ( s? /usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR$ ? s c C sq t j r- t | t j � r- | j d � } n t j j | | | | � \ } } | rg | j j | � n | | f S( Nt .( R t PY2t isinstancet string_typest splitR R t build_moduleR t append( R t modulet module_filet packaget outfilet copied( ( s? /usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR+ F s c C s) | j � t t | j | j p" d � � S( s? Generate list of '(package,src_dir,build_dir,filenames)' tuples( ( t analyze_manifestt listR t _get_pkg_data_filesR ( R ( ( s? /usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR# P s c C sx | j | � } t j j | j g | j d � � } g | j | | � D] } t j j | | � ^ qG } | | | | f S( NR&