Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pkginfo/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pkginfo/__pycache__/utils.cpython-37.pyc

B

tl�R��@s^ddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd
dd	�Z
dS)�N)�
ModuleType)�BDist)�Develop)�	Installed)�SDist)�Wheelc	Cs(t|t�r.y
t||�Sttfk
r,YnXyt|�Wntk
rNYn&Xy
t||�Sttfk
rrYnXtj�	|��r�y
t
||�Sttfk
r�YnXy
t||�Sttfk
r�YnXy
t||�Sttfk
�r�YnXtj�
|��r$y
t||�Sttfk
�r"YnXdS)aF 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)�
isinstancerr�
ValueError�IOError�
__import__�ImportError�os�path�isfilerrr�isdirr)Zpath_or_module�metadata_version�r�>/opt/alt/python37/lib/python3.7/site-packages/pkginfo/utils.py�get_metadata
s>






r)N)r
�typesrZ
pkginfo.bdistrZpkginfo.developrZpkginfo.installedrZ
pkginfo.sdistrZ
pkginfo.wheelrrrrrr�<module>s