σ
@K7]c           @` sν   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 j Z d  d l m Z e j j e j j e   Z e j d e j  d   Z d   Z d   Z e d	 k rι e   n  d S(
   i    (   t   absolute_importt   divisiont   print_functionN(   t   ArgumentParser(   t   Configt   levelc         C` sΓ   t  d d d d  } | j d d  } g  t j t j j t d  g  D] \ } } } | ^ qI } xC | D]; } | j d  r qk n  t	 j
 d	 |  } | j |  qk W| j |   }  | |  f S(
   Nt   descriptions   
Generates a boilerplate/skeleton recipe, which you can then edit to create a
full recipe. Some simple skeleton recipes may not even need edits.
        t   epilogsg   
Run --help on the subcommands like 'conda skeleton pypi --help' to see the
options available.
        t   destt   repos   ../skeletonst   _s   conda_build.skeletons.(   R   t   add_subparserst   pkgutilt   iter_modulest   ost   patht   joint   thisdirt
   startswitht	   importlibt   import_modulet
   add_parsert
   parse_args(   t   argst   pt   reposR
   t   namet	   skeletonst   skeletont   module(    (    s<   lib/python2.7/site-packages/conda_build/cli/main_skeleton.pyR      s    			:c         C` s|   t  |   \ } }  t |  j   } |  j sA | j   t j   n  t j |  j	 |  j d |  j
 d |  j d |  j d | d  S(   Nt
   output_dirt	   recursivet   versiont   config(   R   R   t   __dict__R	   t
   print_helpt   syst   exitt   apit   skeletonizet   packagesR   R   R    (   R   t   parserR!   (    (    s<   lib/python2.7/site-packages/conda_build/cli/main_skeleton.pyt   execute4   s    	
'c           C` s   t  t j d  S(   Ni   (   R*   R$   t   argv(    (    (    s<   lib/python2.7/site-packages/conda_build/cli/main_skeleton.pyt   main@   s    t   __main__(   t
   __future__R    R   R   R   t   loggingR   R   R$   t   conda_build.conda_interfaceR   t   conda_build.apiR&   t   conda_build.configR   R   t   dirnamet   abspatht   __file__R   t   basicConfigt   INFOR   R*   R,   t   __name__(    (    (    s<   lib/python2.7/site-packages/conda_build/cli/main_skeleton.pyt   <module>   s   			