
    xhe                       d dl 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
 ddlmZ ddlmZ ddlmZ ej                            ej                            e                    Z ej        ej        	           ddZdddZdS )    )annotationsN)	Namespace)Sequence   )api)ArgumentParser)Config)levelargsSequence[str] | Nonereturn tuple[ArgumentParser, Namespace]c                   t          ddd          }|                    d          }d t          j        t          j                            t          d          g          D             }|D ]D}|                    d	          rt          j
        d
|z             }|                    |           E||                    |           fS )Nzconda skeletonz
Generates a boilerplate/skeleton recipe, which you can then edit to create a
full recipe. Some simple skeleton recipes may not even need edits.
        zg
Run --help on the subcommands like 'conda skeleton pypi --help' to see the
options available.
        )progdescriptionepilogrepo)destc                    g | ]\  }}}|	S  r   ).0_names      =lib/python3.11/site-packages/conda_build/cli/main_skeleton.py
<listcomp>zparse_args.<locals>.<listcomp>$   s.       AtQ 	      z../skeletonsr   zconda_build.skeletons.)r   add_subparserspkgutiliter_modulesospathjointhisdir
startswith	importlibimport_module
add_parser
parse_args)r   parserrepos	skeletonsskeletonmodules         r   r(   r(      s    
 
 
F !!v!..E !.Wn0U0U/VWW  I  ! !s## 	()AH)LMM%    6$$T****r   intc                   t          |           \  }}t          di |j        }|j        s'|                                 t          j                     t          j        |j	        |j        |j
        |j        |j        |           dS )N)
output_dir	recursiveversionconfigr   r   )r(   r	   __dict__r   
print_helpsysexitr   skeletonizepackagesr0   r1   r2   )r   r)   parsedr3   s       r   executer;   1   s    %%NFF&&fo&&F; 


O$"    1r   )r   r   r   r   )N)r   r   r   r.   )
__future__r   r%   loggingr    r   r6   argparser   typingr    r   conda_interfacer   r3   r	   r!   dirnameabspath__file__r#   basicConfigINFOr(   r;   r   r   r   <module>rG      s   # " " " " "      				  



                   , , , , , ,      
'//"'//(33
4
4  ', ' ' ' '+ + + +8      r   