
    xheG                    p    d dl mZ d dlZd dlmZ ddlmZmZ dd                    e           dZ	ddZ
dS )    )annotationsN)ArgumentError   )CONDA_PACKAGE_EXTENSIONSis_conda_pkgz}
Unable to parse provided recipe directory or package file.

Please make sure this argument is either a valid package 
file (z or z-) or points to a directory containing recipe.arg_valstrreturnc                    t           j                            |           r| S t          |           r| S t	          dt
                    )zS
    Makes sure the argument is either a conda pkg file or a recipe directory.
    N)ospathisdirr   r   !CONDA_PKG_OR_RECIPE_ERROR_MESSAGE)r   s    :lib/python3.11/site-packages/conda_build/cli/validators.py#validate_is_conda_pkg_or_recipe_dirr      sG     
w}}W E	g		 ED"CDDD    )r   r	   r
   r	   )
__future__r   r   argparser   utilsr   r   joinr   r    r   r   <module>r      s    # " " " " " 				 " " " " " " : : : : : : : :b[[122b b b "	E 	E 	E 	E 	E 	Er   