
Xc           @` s  d  Z  d d l m Z m Z m 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 e j d d k  r d d l m Z d d l m Z n  d d l m Z d d l m Z d d	 l m Z d d
 l m Z d d l Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m  Z  m! Z! 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+ i d d 6d d 6Z, e, e+ j-   d Z. d   Z/ e j+ d k r-d e j0 j1 e j2 j3 d  g Z4 g  Z5 g  Z6 d g Z7 g  Z8 g  Z9 ne/ d d d d d g e.  Z4 g  Z5 d d  d! d" d# d$ d% g Z6 d d& d' d( g Z7 e/ d) d* d g e.  Z8 d+ d, d! g Z9 e j0 j: d-  re
 d.  Z; e; re j0 j< e; d  d Z= e8 j> e= d- g  e9 j> d/ d0 g  n  n  d d l? Z@ eA ZB z y: eC e jD d1  ZB e@ jE d2 d3 g d4 e@ jF d5 eB ZG Wn eH e f k
 rwnm XeI eG jJ   d jK   jL    ZM eG jN d k re8 e j0 j1 d6 eM  g 7Z8 e4 e j0 j1 d6 eM  g 7Z4 n  Wd eB eA k	 reB jO   n  Xe j0 j1 e jP d7  e4 k re4 jQ d e j0 j1 e jP d7   e6 jR e j0 j1 e jP d8   e7 jR e j0 j1 e jP d9   n  g  e4 D] ZS e j0 jT eS  reS ^ qZ4 g  e5 D] ZS e j0 jT eS  reS ^ qZ5 g  e6 D] ZS e j0 jT eS  reS ^ qZ6 g  e7 D] ZS e j0 jT eS  r)eS ^ qZ7 e"   ZU d:   ZV d d;  ZW d< e f d=     YZX d> eX f d?     YZY d@ eX f dA     YZZ dB eZ f dC     YZ[ dD eX f dE     YZ\ dF e\ f dG     YZ] dH eX f dI     YZ^ dJ eX f dK     YZ_ dL eX f dM     YZ` dN eX f dO     YZa dP eX f dQ     YZb dR ec f dS     YZd dT ed f dU     YZe dV ed f dW     YZf dX ef f dY     YZg dZ ef f d[     YZh d\ ef f d]     YZi d^ ef f d_     YZj d` ef f da     YZk db ef f dc     YZl dd ef f de     YZm df ed f dg     YZn dh ed f di     YZo dj eo f dk     YZp dl eo f dm     YZq dn ed f do     YZr dp er f dq     YZs dr er f ds     YZt dt es f du     YZu dv er f dw     YZv dx et f dy     YZw dz er f d{     YZx d| ex f d}     YZy d~ ex f d     YZz d ey f d     YZ{ d ex f d     YZ| d ez f d     YZ} d ed f d     YZ~ d ed f d     YZ d Z i  Z d   Z d ed f d     YZ d ed f d     YZ d ed f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d ed f d     YZ d ed f d     YZ d ed f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d ed f d     YZ d ed f d     YZ d ed f d     YZ d ed f d     YZ d ed f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d ed f d     YZ d ed f d     YZ d   Z i d d 6d d 6d d 6d d 6Z i d d 6d d 6d d 6d d 6Z d   Z eA f d  Z eA d  Z e d k re   n  d S(   sk  
This file defines a set of system_info classes for getting
information about various resources (libraries, library directories,
include directories, etc.) in the system. Currently, the following
classes are available:

  atlas_info
  atlas_threads_info
  atlas_blas_info
  atlas_blas_threads_info
  lapack_atlas_info
  lapack_atlas_threads_info
  atlas_3_10_info
  atlas_3_10_threads_info
  atlas_3_10_blas_info,
  atlas_3_10_blas_threads_info,
  lapack_atlas_3_10_info
  lapack_atlas_3_10_threads_info
  blas_info
  lapack_info
  openblas_info
  blis_info
  blas_opt_info       # usage recommended
  lapack_opt_info     # usage recommended
  fftw_info,dfftw_info,sfftw_info
  fftw_threads_info,dfftw_threads_info,sfftw_threads_info
  djbfft_info
  x11_info
  lapack_src_info
  blas_src_info
  numpy_info
  numarray_info
  numpy_info
  boost_python_info
  agg2_info
  wx_info
  gdk_pixbuf_xlib_2_info
  gdk_pixbuf_2_info
  gdk_x11_2_info
  gtkp_x11_2_info
  gtkp_2_info
  xft_info
  freetype2_info
  umfpack_info

Usage:
    info_dict = get_info(<name>)
  where <name> is a string 'atlas','x11','fftw','lapack','blas',
  'lapack_src', 'blas_src', etc. For a complete list of allowed names,
  see the definition of get_info() function below.

  Returned info_dict is a dictionary which is compatible with
  distutils.setup keyword arguments. If info_dict == {}, then the
  asked resource is not available (system_info could not find it).

  Several *_info classes specify an environment variable to specify
  the locations of software. When setting the corresponding environment
  variable to 'None' then the software will be ignored, even when it
  is available in system.

Global parameters:
  system_info.search_static_first - search static libraries (.a)
             in precedence to shared ones (.so, .sl) if enabled.
  system_info.verbosity - output the results to stdout if enabled.

The file 'site.cfg' is looked for in

1) Directory of main setup.py file being run.
2) Home directory of user running the setup.py file as ~/.numpy-site.cfg
3) System wide directory (location of this file...)

The first one found is used to get system configuration options The
format is that used by ConfigParser (i.e., Windows .INI style). The
section ALL has options that are the default for each section. The
available sections are fftw, atlas, and x11. Appropriate defaults are
used if nothing is specified.

The order of finding the locations of resources is the following:
 1. environment variable
 2. section in site.cfg
 3. ALL section in site.cfg
Only the first complete match is returned.

Example:
----------
[ALL]
library_dirs = /usr/lib:/usr/local/lib:/opt/lib
include_dirs = /usr/include:/usr/local/include:/opt/include
src_dirs = /usr/local/src:/opt/src
# search static libraries (.a) in preference to shared ones (.so)
search_static_first = 0

[fftw]
fftw_libs = rfftw, fftw
fftw_opt_libs = rfftw_threaded, fftw_threaded
# if the above aren't found, look for {s,d}fftw_libs and {s,d}fftw_opt_libs

[atlas]
library_dirs = /usr/lib/3dnow:/usr/lib/3dnow/atlas
# for overriding the names of the atlas libraries
atlas_libs = lapack, f77blas, cblas, atlas

[x11]
library_dirs = /usr/X11R6/lib
include_dirs = /usr/X11R6/include
----------

Authors:
  Pearu Peterson <pearu@cens.ioc.ee>, February 2002
  David M. Cooke <cookedm@physics.mcmaster.ca>, April 2002

Copyright 2002 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@cens.ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy (BSD style) license.  See LICENSE.txt that came with
this distribution for specifics.

NO WARRANTY IS EXPRESSED OR IMPLIED.  USE AT YOUR OWN RISK.

i    (   t   divisiont   absolute_importt   print_functionN(   t   glob(   t   reducei   (   t   NoOptionError(   t   RawConfigParser(   t   DistutilsError(   t   Distribution(   t   log(   t   get_platform(   t   find_executablet   exec_commandt   get_pythonexe(   t   is_sequencet	   is_stringt   get_shared_lib_extension(   t   config(   t   get_exceptioni    t   32biti@   t   64bitc         C` s]   | d k r t  d   n  | d k r+ |  Sg  } x% |  D] } | j | d | g  q8 W| S(   s  Return a list of library paths valid on 32 or 64 bit systems.

    Inputs:
      paths : sequence
        A sequence of strings (typically paths)
      bits : int
        An integer, the only valid values are 32 or 64.  A ValueError exception
      is raised otherwise.

    Examples:

    Consider a list of directories
    >>> paths = ['/usr/X11R6/lib','/usr/X11/lib','/usr/lib']

    For a 32-bit platform, this is already valid:
    >>> np.distutils.system_info.libpaths(paths,32)
    ['/usr/X11R6/lib', '/usr/X11/lib', '/usr/lib']

    On 64 bits, we prepend the '64' postfix
    >>> np.distutils.system_info.libpaths(paths,64)
    ['/usr/X11R6/lib64', '/usr/X11R6/lib', '/usr/X11/lib64', '/usr/X11/lib',
    '/usr/lib64', '/usr/lib']
    i    i@   s+   Invalid bit size in libpaths: 32 or 64 onlyt   64(   i    i@   (   t
   ValueErrort   extend(   t   pathst   bitst   outt   p(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   libpaths   s    t   win32s   C:\t   libst   .s   /usr/local/libs   /opt/libs   /usr/libs   /opt/local/libs   /sw/libs   /usr/local/includes   /opt/includes   /usr/includes   /opt/local/include/ufsparses   /opt/local/includes   /sw/includes   /usr/include/suitesparses   /usr/local/srcs   /opt/srcs   /sw/srcs   /usr/X11R6/libs   /usr/X11/libs   /usr/X11R6/includes   /usr/X11/includes   /usr/lib/X11s   /usr/lib/*/libX11.sos   /usr/lib/X11/includes   /usr/include/X11t   wt   gccs   -print-multiarcht   stdoutt   stderrs	   /usr/lib/t   libt   includet   srcc         C` s  g  } y
 t  } Wn t k
 r0 t j d } nT Xt j j t j j t j j |   d |   } t j j	 |  r | j
 |  n  y t j j d  } Wn t k
 r n8 Xt j j | |   } t j j	 |  r | j
 |  n  t j j	 |   r| j
 t j j |    n  | S(   s   Returns a list of files named 'fname' from
    1) System-wide directory (directory-location of this module)
    2) Users HOME directory (os.environ['HOME'])
    3) Local directory
    i    t   ~(   t   __file__t	   NameErrort   syst   argvt   ost   patht   joint   splitt   abspatht   isfilet   appendt
   expandusert   KeyError(   t   fnamet	   filenamest   ft   sysfilet	   user_file(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   get_standard_file  s&    
(	c         C` s  i= t  d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d	 6t	 d
 6t
 d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d 6t d  6t  d! 6t! d" 6t" d# 6t# d$ 6t# d% 6t$ d& 6t% d' 6t& d( 6t' d) 6t( d* 6t) d+ 6t* d, 6t+ d- 6t+ d. 6t, d/ 6t, d0 6t- d1 6t. d2 6t. d3 6t/ d4 6t/ d5 6t0 d6 6t0 d7 6t1 d8 6t1 d9 6t2 d: 6t3 d; 6t4 d< 6t5 d= 6j6 |  j7   t8  } |   j9 |  S(>   sg   
    notfound_action:
      0 - do nothing
      1 - display warning message
      2 - raise error
    t   atlast   atlas_threadst
   atlas_blast   atlas_blas_threadst   lapack_atlast   lapack_atlas_threadst
   atlas_3_10t   atlas_3_10_threadst   atlas_3_10_blast   atlas_3_10_blas_threadst   lapack_atlas_3_10t   lapack_atlas_3_10_threadst   mklt   openblast   openblas_lapackt   blist
   lapack_mklt   blas_mklt   x11t   fft_optt   fftwt   fftw2t   fftw3t   dfftwt   sfftwt   fftw_threadst   dfftw_threadst   sfftw_threadst   djbfftt   blast   lapackt
   lapack_srct   blas_srct   numpyt   f2pyt   Numerict   numerict   numarrayt   numerixt
   lapack_optt   blas_optt   boost_pythont   agg2t   wxt   gdk_pixbuf_xlib_2s   gdk-pixbuf-xlib-2.0t   gdk_pixbuf_2s   gdk-pixbuf-2.0t   gdkt   gdk_2s   gdk-2.0t	   gdk_x11_2s   gdk-x11-2.0t
   gtkp_x11_2s   gtk+-x11-2.0t   gtkp_2s   gtk+-2.0t   xftt	   freetype2t   umfpackt   amd(:   t
   atlas_infot   atlas_threads_infot   atlas_blas_infot   atlas_blas_threads_infot   lapack_atlas_infot   lapack_atlas_threads_infot   atlas_3_10_infot   atlas_3_10_threads_infot   atlas_3_10_blas_infot   atlas_3_10_blas_threads_infot   lapack_atlas_3_10_infot   lapack_atlas_3_10_threads_infot   mkl_infot   openblas_infot   openblas_lapack_infot	   blis_infot   lapack_mkl_infot   blas_mkl_infot   x11_infot   fft_opt_infot	   fftw_infot
   fftw2_infot
   fftw3_infot
   dfftw_infot
   sfftw_infot   fftw_threads_infot   dfftw_threads_infot   sfftw_threads_infot   djbfft_infot	   blas_infot   lapack_infot   lapack_src_infot   blas_src_infot
   numpy_infot	   f2py_infot   Numeric_infot   numarray_infot   numerix_infot   lapack_opt_infot   blas_opt_infot   boost_python_infot	   agg2_infot   wx_infot   gdk_pixbuf_xlib_2_infot   gdk_pixbuf_2_infot   gdk_infot
   gdk_2_infot   gdk_x11_2_infot   gtkp_x11_2_infot   gtkp_2_infot   xft_infot   freetype2_infot   umfpack_infot   amd_infot   gett   lowert   system_infot   get_info(   t   namet   notfound_actiont   cl(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   5  s~    

t   NotFoundErrorc           B` s   e  Z d  Z RS(   s1   Some third-party program or library is not found.(   t   __name__t
   __module__t   __doc__(    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   AtlasNotFoundErrorc           B` s   e  Z d  Z RS(   s   
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   LapackNotFoundErrorc           B` s   e  Z d  Z RS(   s   
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   LapackSrcNotFoundErrorc           B` s   e  Z d  Z RS(   s   
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   BlasNotFoundErrorc           B` s   e  Z d  Z RS(   s   
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   BlasSrcNotFoundErrorc           B` s   e  Z d  Z RS(   s   
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   FFTWNotFoundErrorc           B` s   e  Z d  Z RS(   s   
    FFTW (http://www.fftw.org/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [fftw]) or by setting
    the FFTW environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   DJBFFTNotFoundErrorc           B` s   e  Z d  Z RS(   s   
    DJBFFT (http://cr.yp.to/djbfft.html) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [djbfft]) or by setting
    the DJBFFT environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   NumericNotFoundErrorc           B` s   e  Z d  Z RS(   sv   
    Numeric (http://www.numpy.org/) module not found.
    Get it from above location, install it, and retry setup.py.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   X11NotFoundErrorc           B` s   e  Z d  Z RS(   s   X11 libraries not found.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   t   UmfpackNotFoundErrorc           B` s   e  Z d  Z RS(   s  
    UMFPACK sparse solver (http://www.cise.ufl.edu/research/sparse/umfpack/)
    not found. Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [umfpack]) or by setting
    the UMFPACK environment variable.(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s  e  Z d  Z d Z d Z d Z d Z i  Z e	 Z
 e e d d  Z d   Z d   Z d   Z d   Z d	   Z d d
  Z d   Z d d  Z d d  Z d d  Z d d  Z d   Z d d  Z d   Z g  d  Z g  d  Z d   Z d   Z d   Z  d   Z! RS(   s=    get_info() is the only public method. Don't use others.
    t   ALLi    i   c         C` s#  i  |  j  _ g  |  _ i t j j |  d 6t j j |  d 6t j j t  d 6d d 6t j j t  d 6t |  j	  d 6d d 6d d	 6} t
 |  |  _ g  |  _ |  j j t d
   |  j j t d   |  j   |  j d  k	 r|  j j |  j d  |  _	 n  t |  j	 t  st  d  S(   Nt   library_dirst   include_dirst   runtime_library_dirst    t   rpatht   src_dirst   search_static_firstt   extra_compile_argst   extra_link_argss   .numpy-site.cfgs   site.cfg(   t	   __class__t   infot   local_prefixesR,   t   pathsepR.   t   default_runtime_dirst   default_src_dirst   strR   t   ConfigParsert   cpt   filesR   R:   t   parse_config_filest   sectiont   Nonet
   getbooleant
   isinstancet   intt   AssertionError(   t   selft   default_lib_dirst   default_include_dirst	   verbosityt   defaults(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   __init__  s$    		
	c         C` sT   |  j  j |  j  |  j  j |  j  sP |  j d  k	 rP |  j  j |  j  qP n  d  S(   N(   R   t   readR   t   has_sectionR   R   t   add_section(   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    c         C` s   |  j    } |  j   } |  j   } | j |  j d d   i  } x | D] } |  j | | g  } | d  k	 r t | |  n t j d |  | rJ |  j | | g  } | d  k	 r | d =| j	 d  | d <t | |  q t j d |  qJ qJ W| S(   Nt   keyR   s"   Library %s was not found. Ignoringt	   librariesR   R   s*   Runtime library %s was not found. Ignoring(
   t   get_librariest   get_lib_dirst   get_runtime_lib_dirsR   t
   check_libsR   t   dict_appendR	   R   t   pop(   R   R   t   dirst   r_dirsR   R$   t   i(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   calc_libraries_info  s$    c         K` sR   | r; |  j    } t | |  |  j   } t | |  n  | |  j |  j j <d  S(   N(   R   R   t   calc_extra_infot   saved_resultsR   R   (   R   R   t   lib_infot
   extra_info(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   set_info  s    c         C` s   |  j  j |  j k S(   N(   R   R   R   (   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   has_info!  s    c         C` s_   i  } xR d d g D]D } |  j  j |  j |  } | r i | g | 6} t | |  q q W| S(   s    Updates the information in the current information with
        respect to these flags:
          extra_compile_args
          extra_link_args
        R   R   (   R   R   R   R   (   R   R   R   t   optt   tmp(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   $  s    c         C` s  d } |  j    s d } t j |  j j d  t |  d  rK |  j   n  | r |  j    s | d k r t j |  j	 j
 d d q | d k r |  j	 |  j	 j
   q t t |    q n  |  j    s t j d  |  j   q t j d  n  |  j j |  j j  } |  j d k r| rxp | j   D]b \ } } t |  } | d k rt |  d k r| d  d | d } n  t j d | |  q1Wt j d  n  t j |  S(   su    Return a dictonary with items that are compatible
            with numpy.distutils.setup keyword arguments.
        i    i   t   :t	   calc_infot
   stackleveli   s     NOT AVAILABLEs     FOUND:t   sourcesR   i  ix   s   ...
...
...is       %s = %sR   (   s   sourcess	   libraries(   R   R	   R   R   R   t   hasattrR   t   warningst   warnt   notfounderrorR   R   t   reprR   R   R   R   t   itemsR   t   lent   copyt   deepcopy(   R   R   t   flagt   rest   kt   v(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   3  s4    c         C` s+  |  j  j | |  j t j  } |  j } | r t |  r | d } x' | D] } | t j k rM | } PqM qM W| d | k s t j	 d | d | f  n  | } q n  | re| t j k ret j | } | d k r t j	 d |  j
 j d | f  g  St j j |  rt j j |  g | } t |  d g   } t |  d k rbt j j |  }	 t j j |	  d }	 |	 d	  d
 k rt j	 d |  j d |	 d	 f  |	 d	 |  j d <qqbqe| j t j  }
 g  } x~ |
 D]v } t j j |  r| j |  xN d d
 g D]= } t j j | |  } t j j |  r| j |  qqWqqW| | } n  |  j  j |  j |  j t j  } | j |  g  } xl | D]d } t |  d k rt j j |  rt j d | d d qn  | | k r| j |  qqWt j d | d j |   | S(   Nii    s   Setting %s=%sR   s   Disabled %s: %ss   (%s is None)t
   _lib_namesi   i   R$   s#   Replacing _lib_names[0]==%r with %rR%   s   Specified path %s is invalid.R   i   s   ( %s = %s )R   (   R   R   R/   R,   R   t   dir_env_varR   t   environR	   R   R   R   R-   R1   t   dirnamet   getattrR   t   basenamet   splitextR  t   isdirR2   R.   R   R   R   R   t   debug(   R   R   R   R   t   env_vart   e0t   et   dt   lt   bt   dst   ds2t   ddt   d1t   default_dirst   ret(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt	   get_pathsW  sd    !	
		$%R   c         C` s   |  j  |  j |  S(   N(   R  R   (   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    R   c         C` s1   |  j  |  j |  } | d g k r- g  } n  | S(   NR   (   R  R   (   R   R   R-   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    	R   c         C` s   |  j  |  j |  S(   N(   R  R   (   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   get_include_dirs  s    R   c         C` s   |  j  |  j |  S(   N(   R  R   (   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   get_src_dirs  s    c         C` s   y |  j  j |  j |  } Wn/ t k
 rM | s6 g  St |  rI | g S| SXg  g  | j d  D] } | j   ^ qa D] } | rw | ^ qw S(   Nt   ,(   R   R   R   R   R   R/   t   strip(   R   R   t   defaultR   t   aR  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   get_libs  s    R   c         C` s9   t  |  d  r% |  j | d |  j S|  j | d  Sd  S(   NR  R   R   (   R   R"  R  (   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    c         C` s   d g } t  j d k r( | j d  n  |  j rA | t g } n t g | } t  j d k rm | j d  n  t  j d k r | j d  n  | S(   Ns   .aR   s   .libt   cygwins   .dll.at   darwins   .dylib(   R*   t   platformR2   R   t   so_ext(   R   t   static_extst   exts(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   library_extensions  s    		c         C` sw   |  j    } d } x9 | D]1 } |  j | | | | g  } | d k	 r Pq q W| ss t j d d j |  |  n  | S(   s   If static or shared libraries are available then return
        their info dictionary.

        Checks for all libraries as shared libraries first, then
        static (or vice versa if self.search_static_first is True).
        s     libraries %s not found in %sR  N(   R)  R   t   _check_libsR	   R   R.   (   R   t   lib_dirsR   t   opt_libsR(  R   t   ext(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    
c         C` sM   |  j    } |  j | | | |  } | sI t j d d j |  |  n  | S(   s   If static or shared libraries are available then return
        their info dictionary.

        Checks each library for shared or static.
        s     libraries %s not found in %sR  (   R)  R*  R	   R   R.   (   R   R+  R   R,  R(  R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   check_libs2  s    
c         C` s   t  |  s t  t j d k r0 d d g } n	 d g } x~ | D]v } x2 | D]* } |  j | | | |  } | rM PqM qM W| r@ t |  d k s t  | d k r | d 7} n  | Sq@ Wt S(   NR   R   R$   i   s   .dll.as   .dll(   R   R   R*   R%  t   combine_pathsR   t   False(   R   t   lib_dirR$   R(  t   lib_prefixesR-  t   prefixR   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt	   _find_lib  s    	c   	      C` s   g  g  } } xg | D]_ } xV | D]N } |  j  | | |  } | r! | j |  | | k rk | j |  n  Pq! q! Wq W| | f S(   N(   R4  R2   (	   R   R+  R   R(  t
   found_dirst
   found_libsR$   R1  t	   found_lib(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt
   _find_libs  s    c         C` s   t  |  s | g } n  |  j | | |  \ } } t |  d k r t |  t |  k r |  j | | |  \ } } | j |  x* | D]" }	 |	 | k r | j |	  q q Wi | d 6| d 6}
 |
 Sd Sd S(   sx   Find mandatory and optional libs in expected paths.

        Missing optional libraries are silently forgotten.
        i    R   R   N(   R   R8  R   R   R2   R   (   R   R+  R   R,  R(  R5  R6  t   opt_found_dirst   opt_found_libsR1  R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR*     s    *c         G` s   t  | i |  j d 6  S(   sj   Return a list of existing paths composed by all combinations
        of items from the arguments.
        R   (   R/  R   (   R   t   args(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR/    s    N("   R   R   R   R   R   R  R   R   R   R   R   R   R   R   R   R   R   R   R   R   R  R   R   R  R  R"  R   R)  R   R.  R4  R8  R*  R/  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s<   						$	7					R   c           B` s   e  Z d    Z RS(   c         C` st   i  } t  d  p' t  d  p' t  d  } t  d  } | rp t | |  | r_ t | |  n  |  j |   d  Sd  S(   NRQ   RP   RR   RW   (   R   R   R   (   R   R   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    $(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d Z e Z i d d 6d g d 6d g d 6d g d 6i d	 d 6d
 d  g d 6d d g d 6d g d 6g Z d   Z d   Z	 RS(   RO   t   FFTWRQ   R   R   s   fftw3.ht   includest   SCIPY_FFTW3_Ht   macrosRP   t   rfftws   fftw.hs   rfftw.ht   SCIPY_FFTW_Hc         C` s  |  j    } |  j   } |  j |  j d | d  } |  j | |  } | d k	 r d } x` | D]X } t |  j | | d   t | d  k r` t | d | g d } | g } Pq` q` W| r t | d | d q d } n  | d k	 r |  j	 |   t
 St j d	 | d
  t Sd S(   s8   Returns True on successful version detection, else Falset   _libsR   i    R=  R   i   t   define_macrosR?  s     %s not foundR   N(   R   R  R"  R   R   R   R   R/  R   R   t   TrueR	   R   R0  (   R   t	   ver_paramR+  t	   incl_dirsR   R   R  R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   calc_ver_info8  s*    		c         C` s+   x$ |  j  D] } |  j |  r
 Pq
 q
 Wd  S(   N(   t   ver_infoRG  (   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   R  s    N(   R>  N(   RA  N(
   R   R   R   R  R   R   R   RH  RG  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   *  s   




	R   c           B` sN   e  Z d  Z d Z e Z i d d 6d d  g d 6d d g d 6d g d
 6g Z RS(   RO   R<  RP   R   R@  R   s   fftw.hs   rfftw.hR=  RA  R?  N(   s   SCIPY_FFTW_HN(   R   R   R   R  R   R   R   RH  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   X  s   
R   c           B` sH   e  Z d  Z d Z e Z i d  d 6d  g d 6d g d 6d	 g d 6g Z RS(
   RQ   t   FFTW3R   R   s   fftw3.hR=  R>  R?  N(   s   SCIPY_FFTW3_HN(   R   R   R   R  R   R   R   RH  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   d  s   


R   c           B` sH   e  Z d  Z d Z i d d 6d d g d 6d d g d 6d g d
 6g Z RS(   RO   R<  RR   R   t   drfftwR   s   dfftw.hs   drfftw.hR=  t   SCIPY_DFFTW_HR?  N(   RK  N(   R   R   R   R  R   RH  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   p  s   
R   c           B` sH   e  Z d  Z d Z i d d 6d d g d 6d d g d 6d g d
 6g Z RS(   RO   R<  RS   R   t   srfftwR   s   sfftw.hs   srfftw.hR=  t   SCIPY_SFFTW_HR?  N(   RM  N(   R   R   R   R  R   RH  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   y  s   
R   c           B` sH   e  Z d  Z d Z i d d 6d d g d 6d d g d	 6d g d 6g Z RS(   RO   R<  s   fftw threadsR   t   rfftw_threadsRT   R   s   fftw_threads.hs   rfftw_threads.hR=  t   SCIPY_FFTW_THREADS_HR?  N(   RO  N(   R   R   R   R  R   RH  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   
R   c           B` sH   e  Z d  Z d Z i d d 6d d g d 6d d g d	 6d g d 6g Z RS(   RO   R<  s   dfftw threadsR   t   drfftw_threadsRU   R   s   dfftw_threads.hs   drfftw_threads.hR=  t   SCIPY_DFFTW_THREADS_HR?  N(   RQ  N(   R   R   R   R  R   RH  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   
R   c           B` sH   e  Z d  Z d Z i d d 6d d g d 6d d g d	 6d g d 6g Z RS(   RO   R<  s   sfftw threadsR   t   srfftw_threadsRV   R   s   sfftw_threads.hs   srfftw_threads.hR=  t   SCIPY_SFFTW_THREADS_HR?  N(   RS  N(   R   R   R   R  R   RH  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   
R   c           B` s,   e  Z d  Z d Z e Z d   Z d   Z RS(   RW   t   DJBFFTc         C` sx   t  j |  | |  } g  } x1 | D]) } | j |  j | d g  | g  q" Wg  | D] } t j j |  rV | ^ qV S(   NRW   (   R   R  R   R/  R,   R-   R  (   R   R   R   t   pre_dirsR   R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR    s
    'c         C` s  |  j    } |  j   } d  } xz | D]r } |  j | d g  } | rW i | d 6} Pn  |  j | d d t g  } | r% i d g d 6| g d 6} Pq% q% W| d  k r d  Sx_ | D]W } t |  j | d d	 g   d
 k r t | d | g d d g |  j |   d  Sq Wd  S(   Ns   djbfft.at   extra_objectss   libdjbfft.at	   libdjbfftRW   R   R   s   fftc8.hs	   fftfreq.hi   R   RC  t   SCIPY_DJBFFT_H(   RX  N(   R   R  R   R/  R&  R   R   R   (   R   R+  RF  R   R  R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s*    $
(   R   R   R   R  R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s
   	R~   c           B` s8   e  Z d  Z d Z d g Z d   Z d   Z d   Z RS(   RG   t   MKLROOTt   mkl_rtc         C` s  t  j j d d   } | d  k	 r% | St  j j d d  j t  j  } d } t  j j |  r t | d  : } x0 | D]( } | j	   } | rw | j
 |  qw qw WWd  QXn  g  } xt | D]l } | j t  j  } xQ | D]I }	 |	 j d  r t  j j | | j |	  d   } | j
 |  Pq q Wq Wx | D]y } t t  j j | d d   }
 |
 t t  j j | d	   7}
 x3 |
 D]+ } t  j j t  j j | d
   rz| SqzWq0Wd  S(   NRY  t   LD_LIBRARY_PATHR   s   /etc/ld.so.conft   rRG   i   t   *s   mkl*R$   (   R,   R  R   R   R/   R   R-   R1   t   openR  R2   t   sept
   startswithR.   t   indexR   R  (   R   t   mklrootR   t
   ld_so_confR7   R  t   intel_mkl_dirsR-   t
   path_atomst   mR   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   get_mkl_rootdir  s4    !#!c         C` s   |  j    } | d  k r( t j |   n d d l m } | j   rM d } n' | j   rn | j   rn d } n d } t j |  d t	 j
 j | d |  g d t	 j
 j | d	  g d  S(
   Ni   (   t   cpuR   t   intel64t   32R   R$   R   R%   (   Rg  R   R   R   t   cpuinfoRh  t
   is_Itaniumt   is_Intelt   is_64bitR,   R-   R.   (   R   Rb  Rh  t   plt(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    		c         C` s   |  j    } |  j   } |  j d |  j  } |  j | |  } | d  k rO d  St | d d	 d
 g d | t j d k r} n t | d d g |  j	 |   d  S(   Nt   mkl_libsRC  t   SCIPY_MKL_Ht
   HAVE_CBLASR   R   R   t   pthread(   Rq  N(   Rr  N(
   R   R  R"  t   _lib_mklR.  R   R   R*   R%  R   (   R   R+  RF  Rp  R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    		(   R   R   R   R  Rt  Rg  R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR~     s   			R   c           B` s   e  Z RS(    (   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z RS(    (   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   	  s   Rr   c           B` sr   e  Z d  Z d Z d d g Z e j d  d k rF d g Z d g Z n d  g Z d g Z e	 Z
 d	   Z d
   Z RS(   R;   t   ATLASt   f77blast   cblasi   t   freebsdt   atlas_rt	   alapack_rRY   c      	   C` s   t  j |  | |  } g  } x= | D]5 } | j |  j | d d d d d g  | g  q" Wg  | D] } t j j |  rb | ^ qb S(   Ns   atlas*s   ATLAS*t   sset   3dnowt   sse2(   R   R  R   R/  R,   R-   R  (   R   R   R   RU  R   R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR    s    c         C` s  |  j    } i  } |  j d |  j |  j  } |  j d |  j  } d  } d  } d  } x | D] } |  j | | g   } |  j | d g g   }	 | d  k	 r | g |  j | d d g  }
 |  j |
 | g   } | d  k	 r Pq n  | r\ | } q\ q\ Wt j	 |  j
  | d  k r| } n  | d  k r*d  S|  j   } |  j | | d  pRd  g } | d } | rt j j |  } t | d | g n  d	 | d
 <| d  k	 rt | |  t | |  n d | d k rt | |  t | d d g |  j |   d  St | |  t | d d g d } t j | d d |  j |   d  S| d d } | d d } d  } d g } t j d k r| j d  n  xh |  j   D]Z } xG | D]? } t j j | | | |  } t j j |  r| } PqqW| rPqqW| d  k	 rbt j |  d } | d k rUd | | d f } t j | d d qbd | d
 <n  t |   \ } } t | |  |  j |   d  S(   Nt
   atlas_libst   lapack_libsR?   s   atlas*s   ATLAS*s   cblas.hi    R   t   ct   languageR   RC  t   ATLAS_WITH_LAPACK_ATLASt   ATLAS_WITHOUT_LAPACKs   
*********************************************************************
    Could not find lapack library within the ATLAS installation.
*********************************************************************
R   i   R   R$   R   R   i   i  i   sM  
*********************************************************************
    Lapack library (from ATLAS) is probably incomplete:
      size of %s is %sk (expected >4000k)

    Follow the instructions in the KNOWN PROBLEMS section of the file
    numpy/INSTALL.txt.
*********************************************************************
t   f77(   R  N(   R  Ni > (   R   R"  R  t
   _lib_atlast   _lib_lapackR   R.  R/  R	   R   R   R  R,   R-   R	  R   R   R   R   R*   R%  R2   R)  R.   t   existst   statt   get_atlas_version(   R   R+  R   R~  R  R;   RY   t   atlas_1R  R?   t	   lib_dirs2R   t   ht   messaget
   lapack_dirt   lapack_namet
   lapack_libR2  R  R3  t   fnt   szt   atlas_versiont   atlas_extra_info(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   "  s    		

	
		(   R   R   R   R  R  R*   R%  R  R  R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRr     s   				Rt   c           B` s   e  Z d  d g Z d   Z RS(   Rv  Rw  c   	      C` s
  |  j    } i  } |  j d |  j |  j  } |  j | | g   } | d  k rS d  S|  j   } |  j | | d  p{ d  g } | d } | r t j	 j
 |  } t | d | g n  d | d <d	 g | d <t |   \ } } t | |  t | |  |  j |   d  S(
   NR~  s   cblas.hi    R   R  R  Rr  RC  (   s
   HAVE_CBLASN(   R   R"  R  R  R.  R   R  R/  R,   R-   R	  R   R  R   (	   R   R+  R   R~  R;   R   R  R  R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   ~  s(    	

(   R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRt   {  s   Rs   c           B` s    e  Z d  d g Z d d g Z RS(   t   PTATLASRu  t	   ptf77blast   ptcblas(   R   R   R  R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRs     s   Ru   c           B` s    e  Z d  d g Z d d g Z RS(   R  Ru  R  R  (   R   R   R  R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRu     s   Rv   c           B` s   e  Z d  g e j Z RS(   R?   (   R   R   Rr   R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRv     s   Rw   c           B` s   e  Z d  g e j Z RS(   R?   (   R   R   Rs   R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRw     s   Rx   c           B` s   e  Z d  g Z e Z e Z RS(   t   satlas(   R   R   R  R  R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRx     s   	Rz   c           B` s   e  Z d  g Z d   Z RS(   R  c   	      C` s  |  j    } i  } |  j d |  j  } |  j | | g   } | d  k rL d  S|  j   } |  j | | d  pt d  g } | d } | r t j j	 |  } t
 | d | g n  d | d <d	 g | d <t |   \ } } t
 | |  t
 | |  |  j |   d  S(
   NR~  s   cblas.hi    R   R  R  Rr  RC  (   s
   HAVE_CBLASN(   R   R"  R  R.  R   R  R/  R,   R-   R	  R   R  R   (	   R   R+  R   R~  R;   R   R  R  R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s(    	

(   R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRz     s   	Ry   c           B` s)   e  Z d  d g Z d g Z e Z e Z RS(   R  Ru  t   tatlas(   R   R   R  R  R  R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRy     s   	R{   c           B` s   e  Z d  d g Z d g Z RS(   R  Ru  R  (   R   R   R  R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR{     s   R|   c           B` s   e  Z RS(    (   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR|     s   R}   c           B` s   e  Z RS(    (   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR}     s   R   c           B` s,   e  Z d  Z d Z d  g Z e Z d   Z RS(   RY   t   LAPACKc         C` sa   |  j    } |  j d |  j  } |  j | | g   } | d  k rF d  Sd | d <|  j |   d  S(   NR  R  R  (   R   R"  R  R   R   R   (   R   R+  R  R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    
(   R   R   R   R  R  R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s
   	R   c           B` s,   e  Z d  Z d Z e Z d   Z d   Z RS(   RZ   t
   LAPACK_SRCc         C` s{   t  j |  | |  } g  } x4 | D], } | j | g |  j | d d g   q" Wg  | D] } t j j |  rY | ^ qY S(   Ns   LAPACK*/SRCt   SRC(   R   R  R   R/  R,   R-   R  (   R   R   R   RU  R   R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR    s
    *c         C` s  |  j    } d } x9 | D]1 } t j j t j j | d   r | } Pq q W| sX d  Sd } d } d } d } d } | d }	 | d	 }
 | | } | | } | | d
 } | | d } d } d } g  |	 | j   D] } d | ^ q g  |
 | j   D] } d | ^ q g  | j   D] } d | ^ qg  | j   D] } d | ^ q=g  | | | j   D] } d | ^ qf} g  | D] } t j j | |  ^ q} t j j | d d  } | g  d D] } t j j | | d  ^ q7} | g  d D] } t j j | | d  ^ q7} | g  d D]# } t j j | d | d  ^ q'7} | g  d D]# } t j j | d | d  ^ q[7} g  | D] } t j j |  r| ^ q} i | d 6d d 6} |  j |   d  S(   NR   s   dgesv.fsB   
        ilaenv ieeeck lsame lsamen xerbla
        iparmq
        s  
        bdsdc bdsqr disna labad lacpy ladiv lae2 laebz laed0 laed1
        laed2 laed3 laed4 laed5 laed6 laed7 laed8 laed9 laeda laev2
        lagtf lagts lamch lamrg lanst lapy2 lapy3 larnv larrb larre
        larrf lartg laruv las2 lascl lasd0 lasd1 lasd2 lasd3 lasd4
        lasd5 lasd6 lasd7 lasd8 lasd9 lasda lasdq lasdt laset lasq1
        lasq2 lasq3 lasq4 lasq5 lasq6 lasr lasrt lassq lasv2 pttrf
        stebz stedc steqr sterf

        larra larrc larrd larr larrk larrj larrr laneg laisnan isnan
        lazq3 lazq4
        s  
        gbbrd gbcon gbequ gbrfs gbsv gbsvx gbtf2 gbtrf gbtrs gebak
        gebal gebd2 gebrd gecon geequ gees geesx geev geevx gegs gegv
        gehd2 gehrd gelq2 gelqf gels gelsd gelss gelsx gelsy geql2
        geqlf geqp3 geqpf geqr2 geqrf gerfs gerq2 gerqf gesc2 gesdd
        gesv gesvd gesvx getc2 getf2 getrf getri getrs ggbak ggbal
        gges ggesx ggev ggevx ggglm gghrd gglse ggqrf ggrqf ggsvd
        ggsvp gtcon gtrfs gtsv gtsvx gttrf gttrs gtts2 hgeqz hsein
        hseqr labrd lacon laein lags2 lagtm lahqr lahrd laic1 lals0
        lalsa lalsd langb lange langt lanhs lansb lansp lansy lantb
        lantp lantr lapll lapmt laqgb laqge laqp2 laqps laqsb laqsp
        laqsy lar1v lar2v larf larfb larfg larft larfx largv larrv
        lartv larz larzb larzt laswp lasyf latbs latdf latps latrd
        latrs latrz latzm lauu2 lauum pbcon pbequ pbrfs pbstf pbsv
        pbsvx pbtf2 pbtrf pbtrs pocon poequ porfs posv posvx potf2
        potrf potri potrs ppcon ppequ pprfs ppsv ppsvx pptrf pptri
        pptrs ptcon pteqr ptrfs ptsv ptsvx pttrs ptts2 spcon sprfs
        spsv spsvx sptrf sptri sptrs stegr stein sycon syrfs sysv
        sysvx sytf2 sytrf sytri sytrs tbcon tbrfs tbtrs tgevc tgex2
        tgexc tgsen tgsja tgsna tgsy2 tgsyl tpcon tprfs tptri tptrs
        trcon trevc trexc trrfs trsen trsna trsyl trti2 trtri trtrs
        tzrqf tzrzf

        lacn2 lahr2 stemr laqr0 laqr1 laqr2 laqr3 laqr4 laqr5
        s  
        laexc lag2 lagv2 laln2 lanv2 laqtr lasy2 opgtr opmtr org2l
        org2r orgbr orghr orgl2 orglq orgql orgqr orgr2 orgrq orgtr
        orm2l orm2r ormbr ormhr orml2 ormlq ormql ormqr ormr2 ormr3
        ormrq ormrz ormtr rscl sbev sbevd sbevx sbgst sbgv sbgvd sbgvx
        sbtrd spev spevd spevx spgst spgv spgvd spgvx sptrd stev stevd
        stevr stevx syev syevd syevr syevx sygs2 sygst sygv sygvd
        sygvx sytd2 sytrd
        s  
        bdsqr hbev hbevd hbevx hbgst hbgv hbgvd hbgvx hbtrd hecon heev
        heevd heevr heevx hegs2 hegst hegv hegvd hegvx herfs hesv
        hesvx hetd2 hetf2 hetrd hetrf hetri hetrs hpcon hpev hpevd
        hpevx hpgst hpgv hpgvd hpgvx hprfs hpsv hpsvx hptrd hptrf
        hptri hptrs lacgv lacp2 lacpy lacrm lacrt ladiv laed0 laed7
        laed8 laesy laev2 lahef lanhb lanhe lanhp lanht laqhb laqhe
        laqhp larcm larnv lartg lascl laset lasr lassq pttrf rot spmv
        spr stedc steqr symv syr ung2l ung2r ungbr unghr ungl2 unglq
        ungql ungqr ungr2 ungrq ungtr unm2l unm2r unmbr unmhr unml2
        unmlq unmql unmqr unmr2 unmr3 unmrq unmrz unmtr upgtr upmtr
        s    econd s    secnd s    srot srscl s    drot drscl s    icmax1 scsum1 s    izmax1 dzsum1 s   s%s.fs   d%s.fs   c%s.fs   z%s.fs   %s.fs   ..t   INSTALLt   sdczs   lamch.fs   larfp.ft   ilas   lr.fs   lc.fR   R  R  (   R  R,   R-   R1   R.   R/   R   (   R   R   t   src_dirR  t   allauxt   lauxt   lasrct   sd_lasrct   cz_lasrct   sclauxt   dzlauxt   slasrct   dlasrct   clasrct   zlasrct   oclasrct   ozlasrcR7   R   t   src_dir2R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s>    !	



(0044+(   R   R   R   R  R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s
   	s   
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
  ATL_buildinfo();
  return 0;
}
c       	   K` s  |  j  d g   } |  j  d g   } t |  t |  f } | t k rP t | St t    } d  } i  } y | j t d | d | d t j	 d k \ } } | r+t
 j d | t
 j  r+| j t d | d g d | d t j	 d k \ } } | s+t j d d d	 t | d
 d d d g q+n  Wn t k
 rxH | D]@ } t
 j d |  }	 |	 rs|	 j d  } n  | d  k	 rCPqCqCW| d  k rt j j  d d   } n  | rt | d d d | f g n t | d d g | pd | f SX| s(t
 j d |  }	 |	 r(|	 j d  } q(n  | d  k rxt
 j d | t
 j  rUd } qxt j d |  t j d |  n  | d k rt | d d g n t | d d d | f g | | f }
 t | <|
 S(   NR   R   t   use_teei    s!   undefined reference to `_gfortrant   gfortrans3  
*****************************************************
Linkage with ATLAS requires gfortran. Use

  python setup.py config_fc --fcompiler=gnu95 ...

when building extension libraries that use ATLAS.
Make sure that -lgfortran is used for C++ extensions.
*****************************************************
R   i   R  t   f90RC  t   ATLAS_REQUIRES_GFORTRANs#   ATLAS_(?P<version>\d+[.]\d+[.]\d+)_t   versiont   ATLAS_VERSIONt
   ATLAS_INFOs   "\"%s\""t   NO_ATLAS_INFOis   ?.?.?s*   ATLAS version (?P<version>\d+[.]\d+[.]\d+)s   undefined symbol: ATL_buildinfos   3.2.1_pre3.3.6s
   Status: %ds
   Output: %si(   R  N(   R  i(   R  i(   R   t   tuplet   _cached_atlas_versiont
   cmd_configR   R   t
   get_outputt   atlas_version_c_textR   R   t   ret   searcht   MR   R   R   t	   Exceptiont   groupR,   R  R	   R   (   R   R   R   R   R  R  R   t   st   oRf  t   result(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR  r  sf    				R   c           B` s   e  Z e Z d    Z RS(   c      	   C` s  t  d  } | r# |  j |   d  St  d  } | rF |  j |   d  St  d  } | sg t  d  } n  | s| t  d  } n  | s t  d  } n  t j d k r| p | p | rg  } g  } t   d d	 k sd
 t   k sd t   k sd	 t j   k rd } n d } t j j d  rb| r<| j d g  n | j d g  | j d d g  nQ t j j d  r| r| j d g  n | j d g  | j d d g  n  | r|  j d | d | d d& d' g  d  Sn  d } d } i  }	 | r6| j
 d g   }
 d( |
 k s$d) |
 k r-d } n  | }	 n5 t j t j d d d } d } t |	 d d* g | rt  d  } | rt |	 |  qt j t j d d t  d   } | st j t j d d d  St |	 d! d" | f g n  | rwt  d#  } | rt |	 |  qwt j t j d d t  d$  } | s[t j t j d d d  St |	 d! d% | f g n  |  j |	   d  S(+   NRK   RI   RB   RA   R<   R;   R$  it   i386t   intelt   x86_64i   i    s0   /System/Library/Frameworks/Accelerate.framework/s   -msse3s	   -faltivecs   -Wl,-frameworks   -Wl,Accelerates,   /System/Library/Frameworks/vecLib.framework/s
   -Wl,vecLibR   R   RC  R  i   Rr  R  R  R   i   RY   RZ   R   t   flapack_srcRX   R[   t	   fblas_src(   s   NO_ATLAS_INFOi   (   s
   HAVE_CBLASN(   s   ATLAS_WITH_LAPACK_ATLASN(   s   ATLAS_WITHOUT_LAPACKN(   s   NO_ATLAS_INFOi   (   R   R   R*   R%  R
   R,   R-   R  R   R   R   R   R   R   R   R   R   R   R   R   (   R   R   R   Rr   R;  t	   link_argsR  t   need_lapackt	   need_blasR   R  R   R   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    "	
		(   R   R   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z e Z d    Z RS(   c      	   C` s  t  d  } | r# |  j |   d  St  d  } | rF |  j |   d  St  d  } | ri |  j |   d  St  d  } | s t  d  } n  | s t  d  } n  | s t  d  } n  t j d k r+| p | p | p | r+g  } g  } t   d	 d
 k s+d t   k s+d t   k s+d
 t j   k r4d } n d } t j j d  r| re| j d g  n | j d g  | j d g  | j d d g  na t j j d  r| r| j d g  n | j d g  | j d g  | j d d g  n  | r+|  j d | d | d d# d$ g  d  Sn  d } i  }	 | rF| }	 n/ t
 j t j d d d } t |	 d d% g | rt  d  }
 |
 rt |	 |
  qt
 j t j d d t  d   } | st
 j t j d d d  St |	 d! d" | f g n  |  j |	   d  S(&   NRL   RJ   RH   RD   RC   R>   R=   R$  iR  R  R  i   i    s0   /System/Library/Frameworks/Accelerate.framework/s   -msse3s	   -faltivecs5   -I/System/Library/Frameworks/vecLib.framework/Headerss   -Wl,-frameworks   -Wl,Accelerates,   /System/Library/Frameworks/vecLib.framework/s
   -Wl,vecLibR   R   RC  R  i   Rr  R   i   RX   R[   R   R  (   s   NO_ATLAS_INFOi   (   s
   HAVE_CBLASN(   s   NO_ATLAS_INFOi   (   R   R   R*   R%  R
   R,   R-   R  R   R   R   R   R   R   R   R   R   (   R   R   R   R   Rr   R;  R  R  R  R   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   $  s    "	


	(   R   R   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR      s   R   c           B` s5   e  Z d  Z d Z d  g Z e Z d   Z d   Z RS(   RX   t   BLASc         C` s   |  j    } |  j d |  j  } |  j | | g   } | d  k rF d  St j   d k re d | d <nB |  j |  } | d  k	 r d | d <| g | d <d	 g | d <n  |  j |   d  S(
   Nt	   blas_libst   WindowsR  R  R  R   Rr  RC  (   s
   HAVE_CBLASN(	   R   R"  R  R   R   R%  t   systemt	   has_cblasR   (   R   R+  R  R   R$   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    
c   	      C` s  t  } t j j   } | j d  t j   } d } t j j	 | d  } z#t
 | d   } | j |  Wd  QXy | j | g d | d |  j   } yN | j | t j j	 | d  d d	 g d
 | d
 d | j d g   d	 } Wna t j j k
 rI| j | t j j	 | d  d d g d
 | d
 d | j d g   d } n XWn t j j k
 rjd  } n XWd  t j |  X| S(   NR   s   #include <cblas.h>
        int main(int argc, const char *argv[])
        {
            double a[4] = {1,2,3,4};
            double b[4] = {5,6,7,8};
            return cblas_ddot(4, a, 1, b, 1) > 10;
        }s   source.ct   wtt
   output_dirR   s   a.outR   Rw  R   t   extra_postargsR   RX   (   R0  t	   distutilst	   ccompilert   new_compilert	   customizet   tempfilet   mkdtempR,   R-   R.   R^  t   writet   compileR  t   link_executableR   t	   LinkErrort   CompileErrorR   t   shutilt   rmtree(	   R   R   R  R  t   tmpdirR  R&   R7   t   obj(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR    s8    	

	
(	   R   R   R   R  R  R   R   R   R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   z  s   		R   c           B` s5   e  Z d  Z d Z d  g Z e Z d   Z d   Z RS(   RH   t   OPENBLASc         C` s   t  S(   N(   RD  (   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   check_embedded_lapack  s    c         C` s   |  j    } |  j d |  j  } | |  j k rH |  j d |  j  } n  |  j | | g   } | d  k rm d  S|  j   } t | |  |  j |  s d  Sd | d <d g | d <|  j |   d  S(   NR   t   openblas_libsR  R  Rr  RC  (   s
   HAVE_CBLASN(	   R   R"  R  R   R   R   R   R  R   (   R   R+  R  R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    
(	   R   R   R   R  R  R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   		R   c           B` s,   e  Z d  Z d Z d  g Z e Z d   Z RS(   RH   R  c      
   C` s&  t  } t j j   } | j d  t j   } d } t j j	 | d  } t j j	 | d  } y | d } Wn g  } n Xz t
 | d   }	 |	 j |  Wd  QX| j | g d | }
 y4 | j |
 | d | d d	 | d	 d
 | t } Wn t j j k
 rt  } n XWd  t j |  X| S(   NR   s~   void zungqr();
        int main(int argc, const char *argv[])
        {
            zungqr_();
            return 0;
        }s   source.cs   a.outR   R  R  R   R   R  (   R0  R  R  R  R  R  R  R,   R-   R.   R^  R  R  R  RD  R  R  R  (   R   R   R  R  R  R  R&   R   t
   extra_argsR7   R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR    s0    


(   R   R   R   R  R  R   R   R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s
   	R   c           B` s,   e  Z d  Z d Z d  g Z e Z d   Z RS(   RJ   t   BLISc         C` s   |  j    } |  j d |  j  } | |  j k rH |  j d |  j  } n  |  j | | g   } | d  k rm d  S|  j   } t | d d d d g d | |  j |   d  S(	   NR   t	   blis_libsR  R  RC  Rr  R   (   s
   HAVE_CBLASN(   R   R"  R  R.  R   R  R   R   (   R   R+  R  R   RF  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    		(   R   R   R   R  R  R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   	  s
   	R   c           B` s,   e  Z d  Z d Z e Z d   Z d   Z RS(   R[   t   BLAS_SRCc         C` sx   t  j |  | |  } g  } x1 | D]) } | j | g |  j | d g   q" Wg  | D] } t j j |  rV | ^ qV S(   NRX   (   R   R  R   R/  R,   R-   R  (   R   R   R   RU  R   R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR  '  s
    'c   
      C` s   |  j    } d } x9 | D]1 } t j j t j j | d   r | } Pq q W| sX d  Sd } d } d } g  | | | j   D] } t j j | | d  ^ q } g  | D] } t j j |  r | ^ q } i | d 6d d	 6}	 |  j |	   d  S(
   NR   s   daxpy.fso  
        caxpy csscal dnrm2 dzasum saxpy srotg zdotc ccopy cswap drot
        dznrm2 scasum srotm zdotu cdotc dasum drotg icamax scnrm2
        srotmg zdrot cdotu daxpy drotm idamax scopy sscal zdscal crotg
        dcabs1 drotmg isamax sdot sswap zrotg cscal dcopy dscal izamax
        snrm2 zaxpy zscal csrot ddot dswap sasum srot zcopy zswap
        scabs1
        s  
        cgbmv chpmv ctrsv dsymv dtrsv sspr2 strmv zhemv ztpmv cgemv
        chpr dgbmv dsyr lsame ssymv strsv zher ztpsv cgerc chpr2 dgemv
        dsyr2 sgbmv ssyr xerbla zher2 ztrmv cgeru ctbmv dger dtbmv
        sgemv ssyr2 zgbmv zhpmv ztrsv chbmv ctbsv dsbmv dtbsv sger
        stbmv zgemv zhpr chemv ctpmv dspmv dtpmv ssbmv stbsv zgerc
        zhpr2 cher ctpsv dspr dtpsv sspmv stpmv zgeru ztbmv cher2
        ctrmv dspr2 dtrmv sspr stpsv zhbmv ztbsv
        s   
        cgemm csymm ctrsm dsyrk sgemm strmm zhemm zsyr2k chemm csyr2k
        dgemm dtrmm ssymm strsm zher2k zsyrk cher2k csyrk dsymm dtrsm
        ssyr2k zherk ztrmm cherk ctrmm dsyr2k ssyrk zgemm zsymm ztrsm
        s   .fR   R  R  (   R  R,   R-   R1   R.   R/   R   (
   R   R   R  R  t   blas1t   blas2t   blas3R7   R   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   .  s     !	7+(   R   R   R   R  R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   "  s
   	R   c           B` s&   e  Z d  Z e Z d   Z d   Z RS(   RM   c         C` s   t  j |  d t d t d  S(   NR   R   (   R   R   t   default_x11_lib_dirst   default_x11_include_dirs(   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   Z  s    c         C` s   t  j d k r d  S|  j   } |  j   } |  j d d g  } |  j | | g   } | d  k re d  Sd  } x* | D]" } |  j | d  rr | } Pqr qr W| d  k	 r t | d | g n  |  j	 |   d  S(   NR   t   x11_libst   X11s   X11/X.hR   (   s   win32(
   R*   R%  R   R  R"  R   R   R/  R   R   (   R   R+  R   R  R   t   inc_dirR  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   _  s     (   R   R   R   R   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   V  s   	t   _numpy_infoc           B` s,   e  Z d  Z d  Z e Z d   Z d   Z RS(   R^   c         C` s  g  } y t  |  j  } g  } x: | j j t j  D]# } | d k rJ Pn  | j |  q4 Wy | j t | d     Wn t k
 r n X| j t	 j
 j d t j j |    Wn t k
 r n Xt	 j
 j   } | j |  t	 j
 j d t  } | | k r| j |  n  xK t D]C } t j j | t j j |   } | | k r| j |  qqWt j |  d g  d | d  S(   NR$   t   get_includeR3  t   plat_specificR   R   (   t
   __import__t
   modulenameR(   R/   R,   R_  R2   R
  t   AttributeErrorR  t	   sysconfigt   get_python_incR.   t   ImportErrorRD  R   R-   R  R   R   (   R   R   t   moduleR3  R   t   py_incl_dirt   py_pincl_dirR  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   w  s8    !c   	      C` s?  y t  |  j  } Wn t k
 r' d  SXi  } g  } xk d d g D]] } t | | d   } | d  k rk qA n  |  j j   d d | f |  j j   d  f g } PqA Wt | d | |  j   } d  } x< | D]4 } |  j | t	 j
 j |  j d   r | } Pq q W| d  k	 r%t | d | g n  | r;|  j |   n  d  S(   Nt   __version__R  t   _VERSIONs   "\"%s\""RC  s   arrayobject.hR   (   R  R  R  R
  R   t   upperR   R  R/  R,   R-   R.   R   (	   R   R  R   R?  R  t   vrsR   R  R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s8    
	(   R   R   R   R  R   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR  r  s
   	"R   c           B` s   e  Z d  Z d  Z RS(   R`   (   R   R   R   R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d  Z RS(   R^   (   R   R   R   R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d  Z RS(   R\   (   R   R   R   R  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d   Z RS(   Ra   c         C` s  d
 } t j d  r- t j d  d f } n  | d d  k rd } y d d  l } d } Wqt k
 rt t    } y d d  l } d } Wqt k
 rt t    } y d d  l } d } Wqt k
 rt t    } t	 j
 |  t	 j
 |  t	 j
 |  qXqXqXn  | d j   j   | d f } | d d k rit d	 | d | d f   n  | d t j d <|  j t | d    d  S(   Nt   NUMERIXs   environment vari    R\   t	   defaultedR_   R`   i   so   numerix selector must be either 'Numeric' or 'numarray' or 'numpy' but the value obtained from the %s was '%s'.(   NN(   s   numpyR  (   s   numpyR  (   s   numericR  (   s   numarrayR  (   s   numerics   numarrays   numpy(   R   R,   t   getenvR\   R  R   R   R^   R`   R	   R   R  R   R   R  R   R   (   R   t   whichR\   t   msg1R^   t   msg2R`   t   msg3(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s:    


 (   R   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d    Z RS(   c         C` s{   y d d  l  j } Wn t k
 r' d  SXt j j t j j | j  d  } |  j d t j j | d  g d | g  d  S(   Ni    R&   R   s   fortranobject.cR   (	   t
   numpy.f2pyR]   R  R,   R-   R.   R	  R(   R   (   R   R]   t   f2py_dir(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s    $!
(   R   R   R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s&   e  Z d  Z d Z d   Z d   Z RS(   Rd   t   BOOSTc         C` sx   t  j |  | |  } g  } x1 | D]) } | j | g |  j | d g   q" Wg  | D] } t j j |  rV | ^ qV S(   Ns   boost*(   R   R  R   R/  R,   R-   R  (   R   R   R   RU  R   R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR    s
    'c   	      C` sK  |  j    } d } xB | D]: } t j j t j j | d d d d   r | } Pq q W| sa d  St j j   g } t j j d t  } | | k r | j	 |  n  t j j | d d d  } t
 t j j | d   } | t
 t j j | d d   7} i d	 i | g | d
 6| d 6f g d 6| g d
 6} | rG|  j |   n  d  S(   NR   R   t   pythonR&   s
   module.cppR  s   *.cppR]  t   boost_python_srcR   R   R   (   R  R,   R-   R1   R.   R  R  R  RD  R2   R   R   (	   R   R   R  R  t   py_incl_dirsR  t   srcs_dirt   bpl_srcsR   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s.    "(   R   R   R   R  R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   	R   c           B` s&   e  Z d  Z d Z d   Z d   Z RS(   Re   t   AGG2c         C` sx   t  j |  | |  } g  } x1 | D]) } | j | g |  j | d g   q" Wg  | D] } t j j |  rV | ^ qV S(   Ns   agg2*(   R   R  R   R/  R,   R-   R  (   R   R   R   RU  R   R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR  #  s
    'c         C` s=  |  j    } d } x< | D]4 } t j j t j j | d d   r | } Pq q W| s[ d  St j d k r t t j j | d d d d   } nC t t j j | d d   } | t j j | d d d d	  g 7} i d
 i | d 6t j j | d  g d 6f g d 6t j j | d  g d 6} | r9|  j |   n  d  S(   NR   R&   s   agg_affine_matrix.cppR   R%  s   agg_win32_bmp.cpps   *.cppR  s   agg_platform_support.cppt   agg2_srcR   R%   R   R   (	   R  R,   R-   R1   R.   R*   R%  R   R   (   R   R   R  R  t	   agg2_srcsR   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   *  s.    $
#(   R   R   R   R  R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   	t   _pkg_config_infoc           B` sS   e  Z d Z d  Z d Z d Z d Z d Z d Z	 d Z
 d   Z d   Z d   Z RS(	   t
   PKG_CONFIGs
   pkg-configR   s   --modversions   --cflagsc         C` s'   |  j  t j k r  t j |  j  S|  j S(   N(   t   config_env_varR,   R  t   default_config_exe(   R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   get_config_exeS  s    c         C` s?   | d |  j  d | } t | d d \ } } | s; | Sd  S(   Nt    R  i    (   t   append_config_exeR   (   R   t
   config_exet   optiont   cmdR  R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   get_config_outputX  s    c         C` s7  t  |  j    } | s6 t j d | |  j f  d  Si  } g  } g  } g  } g  } g  } g  } |  j | |  j  }	 |	 r | j |  j j	 j
 d  d j   d |	 f  |  j r | j |  j d |	 j d d  d  f  q n  |  j r5|  j | d  }
 |
 r5| j |  j d |
 j d d  d  f  q5n  |  j | d  } | rxl | j
   D][ } | d	  d
 k r| j | d	  qZ| d	  d k r| j | d	  qZ| j |  qZWn  |  j | |  j  } | rx | j
   D] } | d	  d k r| j | d	  q| d	  d k rsd | k rY| d	 j
 d  \ } } | j | | f  q| j | d	 d  f  q| j |  qWn  | rt | d | n  | rt | d | n  | rt | d | n  | rt | d | n  | rt | d | n  | rt | d | n  | r3|  j |   n  d  S(   Ns-   File not found: %s. Cannot determine %s info.R   is   "\"%s\""s   _%st   _s	   --releases   --libsi   s   -ls   -Ls   -Is   -Dt   =RC  R   R   R   R   R   (   R   R  R	   R   R   R  t   version_flagR2   R   R   R/   R   t   version_macro_namet   replaceR   t   release_macro_namet   cflags_flagR   R   (   R   R  R   R?  R   R   R   R   R   R  t   releaset   optsR   t   nR  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   ^  st    	"	!	!N(   R   R   R   R   R  R  R  R"  R$  R!  R%  R  R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR  I  s   		R   c           B` s8   e  Z d  Z d Z d Z d Z d Z d Z d Z d Z	 RS(   Rf   t	   WX_CONFIGs	   wx-configR   t
   WX_VERSIONt
   WX_RELEASEs	   --versions
   --cxxflags(
   R   R   R   R  R  R  R"  R$  R!  R%  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d Z d Z RS(   Rg   s   gdk-pixbuf-xlib-2.0t   GDK_PIXBUF_XLIB_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d Z d Z RS(   Rh   s   gdk-pixbuf-2.0t   GDK_PIXBUF_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d Z d Z RS(   Rk   s   gdk-x11-2.0t   GDK_X11_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d Z d Z RS(   Rj   s   gdk-2.0t   GDK_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d  Z d Z RS(   Ri   R/  (   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d Z d Z RS(   Rl   s   gtk+-x11-2.0t   GTK_X11_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d Z d Z RS(   Rm   s   gtk+-2.0t   GTK_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d  Z d Z RS(   Rn   t   XFT_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s   e  Z d  Z d  Z d Z RS(   Ro   t   FREETYPE2_VERSION(   R   R   R   R  R"  (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   R   c           B` s&   e  Z d  Z d Z d  g Z d   Z RS(   Rq   t   AMDc      	   C` s   |  j    } |  j d |  j  } |  j | | g   } | d  k rF d  S|  j   } d  } x@ | D]8 } |  j | d  } | r_ t j j	 | d  } Pq_ q_ W| d  k	 r t
 | d | g d d	 g d d | g n  |  j |   d  S(
   Nt   amd_libss   amd.hi    R   RC  t   SCIPY_AMD_Ht	   swig_optss   -I(   R6  N(   R   R"  R  R   R   R  R/  R,   R-   R	  R   R   (   R   R+  R5  R   R   R  R  R   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s$    	(   R   R   R   R  R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s   	R   c           B` s,   e  Z d  Z d Z e Z d  g Z d   Z RS(   Rp   t   UMFPACKc   	   	   C` s  |  j    } |  j d |  j  } |  j | | g   } | d  k rF d  S|  j   } d  } xI | D]A } |  j | d d g d  } | r_ t j j	 | d  } Pq_ q_ W| d  k	 r t
 | d | g d d g d	 d
 | g n  t d  } t
 | t d   |  j |   d  S(   Nt   umfpack_libsR   Rp   s	   umfpack.hi    R   RC  t   SCIPY_UMFPACK_HR7  s   -IRq   (   R:  N(   R   R"  R  R   R   R  R/  R,   R-   R	  R   R   R   (	   R   R+  R9  R   R   R  R  R   Rq   (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   	  s(    	(   R   R   R   R  R   R   R  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR     s
   	c          O` s8  g  } x? |  D]7 } | s q n  t  |  r7 | g } n  | j |  q W| }  |  sX g  St |   d k r t d   t t |  d  g   } n t |   d k r g  } xq |  d D]= } x4 |  d D]( } | j t t j j	 | |    q Wq Wn% t
 t
 |  d |  d  |  d   } t j d d j	 |   | S(   sc    Return a list of existing paths composed by all combinations of
        items from arguments.
    i   c         S` s   |  | S(   N(    (   R!  R  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   <lambda>.	  s    i    i   s   (paths: %s)R  (   R   R2   R   R   t   mapR   R   R,   R-   R.   R/  R	   R  (   R;  t   kwsR\  R!  R  t   a0t   a1(    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR/  	  s(    %-%R  i   s   c++i   R  R  c         K` s   g  } x | j    D] \ } } | d k r> | j |  q n  | |  k r | d	 k r g  | D]) } | |  | k r] |  | j |  ^ q] q |  | j |  q | |  | <q W| r t t g  | D] } t j | d  ^ q  } | |  d <n  d  S(
   NR  R   R   R   R   R   RC  i    (   s   library_dirss   include_dirss   extra_compile_argss   extra_link_argss   runtime_library_dirss   define_macros(   R   R2   R   t   inv_language_mapt   maxt   language_mapR   (   R  R=  t	   languagesR  R  t   vvR  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyR   =	  s      	7/c         C` si   d d  l  } | j d  } | j d d d d d d d	 t d
 d | j d |  d  \ } } | | f S(   Ni    s   usage: %prog [-v] [info objs]s   -vs	   --verboset   actiont
   store_truet   destt   verboseR   t   helps"   be verbose and print more messagesR;  i   (   t   optparset   OptionParsert
   add_optionR0  t
   parse_args(   R+   RJ  t   parserR'  R;  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   parseCmdLineR	  s    c         C` s|  d d  l  } |  d  k r$ t j }  n  t |   \ } } | j rR t j t j  n t j t j	  g  } x8 | D]0 } | d d k r | d } n  | j
 |  qo W| } t   j   } x | j   D] \ } }	 | j |	  s q n  t |	 t  s |	 t k r	q n  | s4| | k r!q n  | | j |  =n  |	   }
 d |
 _ |
 j   } q W| rxt j d d j |   n  d  S(   Ni    it   _infoi   s   Info classes not defined: %sR  (   t   inspectR   R*   R+   RO  RH  R	   t   set_thresholdt   DEBUGt   INFOR2   t   globalsR   R   t   isclasst
   issubclassR   Ra  R   R   R   R.   (   R+   RQ  R'  R;  t	   show_onlyR(  t   show_allt   _gdict_R   R  t   confR\  (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyRY  ]	  s8    			t   __main__(   R   t
   __future__R    R   R   R*   R,   R  R   R   R   t	   functoolsR   t   version_infoR   R   R   t   configparsert   distutils.errorsR   t   distutils.distR   t   distutils.sysconfigR  R	   t   distutils.utilR
   t   numpy.distutils.exec_commandR   R   R   t   numpy.distutils.misc_utilR   R   R   t   numpy.distutils.command.configR   R  t   numpy.distutils.compatR   t   distutils.ccompilerR  R  R%  t   _bitst   architecturet   platform_bitsR   R-   R.   R  t   EXEC_PREFIXR   R   R   R   R  R  R  t   globbed_x11_dirR/   t
   x11_so_dirR   t
   subprocesst   spR   R   R^  t   devnullt   Popent   PIPER   t   OSErrorR   t   communicatet   decodeR  t   triplett
   returncodet   closeR3  t   insertR2   t   _mR  R&  R:   R   R   R   R   R   R   R   R   R   R   R   R   t   objectR   R   R   R   R   R   R   R   R   R   R   R~   R   R   Rr   Rt   Rs   Ru   Rv   Rw   Rx   Rz   Ry   R{   R|   R}   R   R   R  R  R  R   R   R   R   R   R   R   R   R  R   R   R   R   R   R   R   R  R   R   R   R   R   R   R   R   R   R   R   R   R/  RB  R@  R   RO  RY  R   (    (    (    s:   /tmp/pip-build-X4mzal/numpy/numpy/distutils/system_info.pyt   <module>y   sH  	'						 "#""++++		$J P.					$Dn{	IeZH(4F%'*U"	""	