๓
Vพ๗Xc        +   @` sU  d  d l  m Z d  d l  m Z d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m	 Z	 m
 Z
 m Z d  d l m Z d  d l m Z d Z d	 d
 d g Z e j j d k rำ e j d  n e j d  e j d  d g Z d g Z d e f d     YZ d e f d     YZ d e f d     YZ d   Z g  e d d  D] Z d e k rZd e ^ qZZ e j d k rd Z n d Z e
 d  d! d" e d# d$ d% d& d' d( d) d* d+ d, d- e	   d. i e d/ 6d0 e d1 e e d2 e  d3 i e g e d! 6d4 e! d5 e d6 i e d7 6d8 d9 d: d; d< d= d> d? d@ dA g	 dB dC dD dE  d S(F   i    (   t   absolute_import(   t   division(   t   print_functionN(   t   find_packagest   setupt   Command(   t   install(   t   Distributions   1.0.1-cmake-experimentals   numpy >= 1.11.0s   six >= 1.10.0s   protobuf == 3.0.0i   s   wheel >= 0.26t   wheels   mock >= 2.0.0s5   tensorboard = tensorflow.tensorboard.tensorboard:mains   scipy >= 0.15.1t   BinaryDistributionc           B` s   e  Z d    Z RS(   c         C` s   t  S(   N(   t   False(   t   self(    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt   is_pure8   s    (   t   __name__t
   __module__R   (    (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyR	   7   s   t   InstallCommandc           B` s   e  Z d  Z d   Z RS(   s&   Override the dir where the headers go.c         C` s1   t  j |   } t j j |  j d d  |  _ | S(   Nt
   tensorflowt   include(   t   InstallCommandBaset   finalize_optionst   ost   patht   joint   install_purelibt   install_headers(   R   t   ret(    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyR   ?   s    (   R   R   t   __doc__R   (    (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyR   <   s   t   InstallHeadersc           B` s_   e  Z d  Z d Z d d g Z d g Z d   Z d	   Z d
   Z d   Z	 d   Z
 d   Z RS(   s็   Override how headers are copied.

  The install_headers that comes with setuptools copies all files to
  the same directory. But we need the files to be in a specific directory
  hierarchy for -I <include_dir> to work correctly.
  s   install C/C++ header filess   install-dir=t   ds$   directory to install header files tot   forcet   fs-   force installation (overwrite existing files)c         C` s   d  |  _ d |  _ g  |  _ d  S(   Ni    (   t   Nonet   install_dirR   t   outfiles(   R   (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt   initialize_optionsW   s    		c         C` s   |  j  d d d  d  S(   NR   R   R    R   (   s   install_headerss   install_dir(   s   forces   force(   t   set_undefined_options(   R   (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyR   \   s    	c         C` sพ   t  j j |  j t  j j |   } t j d d |  } d | k r | j d d  } t  j j |  sy |  j	 |  n  |  j
 | |  n  t  j j |  sฎ |  j	 |  n  |  j
 | |  S(   Ns   /google/protobuf/srct    s   external/eigen_archive/s   external/eigen_archive(   R   R   R   R    t   dirnamet   ret   subt   replacet   existst   mkpatht	   copy_file(   R   t   headerR    t	   extra_dir(    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt   mkdir_and_copy_filea   s    $c         C` s`   |  j  j } | s d  S|  j |  j  x3 | D]+ } |  j |  \ } } |  j j |  q- Wd  S(   N(   t   distributiont   headersR*   R    R.   R!   t   append(   R   t   hdrsR,   t   outt   _(    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt   runv   s    c         C` s   |  j  j p g  S(   N(   R/   R0   (   R   (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt
   get_inputs   s    c         C` s   |  j  S(   N(   R!   (   R   (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt   get_outputs   s    (   s   install-dir=R   s$   directory to install header files to(   s   forceR   s-   force installation (overwrite existing files)(   R   R   R   t   descriptiont   user_optionst   boolean_optionsR"   R   R.   R5   R6   R7   (    (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyR   F   s     						
	c         c` sX   xQ t  j |  D]@ \ } } } x. t j | |   D] } t  j j | |  Vq2 Wq Wd S(   s5   Return all the files matching pattern below root dir.N(   R   t   walkt   fnmatcht   filterR   R   (   t   patternt   rootR   R4   t   filest   filename(    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt
   find_files   s    t   *t   externals   .pys   ../t   nts   python/_pywrap_tensorflow.pyds   python/_pywrap_tensorflow.sot   nameR   t   versionR8   s!   TensorFlow helps the tensors flowt   long_descriptionR$   t   urls   http://tensorflow.org/t   authors   Google Inc.t   author_emails   opensource@google.comt   packagest   entry_pointst   console_scriptst   install_requirest   tests_requiret   include_package_datat   package_datat   zip_safet	   distclasst   cmdclassR   t   classifierss   Development Status :: 4 - Betas   Intended Audience :: Developerss   Intended Audience :: Educations%   Intended Audience :: Science/Researchs2   License :: OSI Approved :: Apache Software Licenses%   Programming Language :: Python :: 2.7s.   Topic :: Scientific/Engineering :: Mathematicss<   Topic :: Software Development :: Libraries :: Python Moduless*   Topic :: Software Development :: Librariest   licenses
   Apache 2.0t   keywordss"   tensorflow tensor machine learning("   t
   __future__R    R   R   R<   R   R&   t   syst
   setuptoolsR   R   R   t   setuptools.command.installR   R   t   setuptools.distR   t   _VERSIONt   REQUIRED_PACKAGESt   version_infot   majorR1   t   CONSOLE_SCRIPTSt   TEST_PACKAGESR	   R   R   RB   t   xt   matchesRF   t   EXTENSION_NAMEt   TrueR
   (    (    (    s`   /tmp/pip-build-h1VYrz/tensorflow/tensorflow-1.0.1.data/purelib/tensorflow/contrib/cmake/setup.pyt   <module>   st   			
A	2	
	


	