
    .Ph                     ^    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
 ddlmZ d
d	ZdS )    N)
ModuleType   )BDist)Develop)	Installed)SDist)Wheelc                    t          | t                    r(	 t          | |          S # t          t          f$ r Y nw xY w	 t          |            	 t          | |          S # t          t          f$ r Y nw xY w# t          $ r Y nw xY wt          j        	                    |           rx	 t          | |          S # t          t          f$ r Y nw xY w	 t          | |          S # t          t          f$ r Y nw xY w	 t          | |          S # t          t          f$ r Y nw xY wt          j                            |           rQ	 t          | |          S # t          t          f$ r Y nw xY w	 t          | |          S # t          t          f$ r Y dS w xY wdS )a>   Try to create a Distribution 'path_or_module'.

    o 'path_or_module' may be a module object.

    o If a string, 'path_or_module' may point to an sdist file, a bdist
      file, an installed package, or a working checkout (if it contains
      PKG-INFO).

    o Return None if 'path_or_module' can't be parsed.
    N)
isinstancer   r   
ValueErrorIOError
__import__ImportErrorospathisfiler   r   r	   isdirr   )path_or_modulemetadata_versions     M/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pkginfo/utils.pyget_metadatar   
   s$    .*-- 	^-=>>>G$ 	 	 	D	>"""	^-=>>>G$ 	 	 	D	     
w~~n%% 	)9:::G$ 	 	 	D		)9:::G$ 	 	 	D		)9:::G$ 	 	 	D	 
w}}^$$ 		)9:::G$ 	 	 	D		>+;<<<G$ 	 	 	DD		 	s   ' ;;A6 A A32A36
BB&B6 6C
	C
C C21C26D DD=E E! E!%E5 5F
	F
)N)r   typesr   bdistr   developr   	installedr   sdistr   wheelr	   r        r   <module>r       s    				                                          4 4 4 4 4 4r   