
    !\i{	                     F    S r SSKrSSKrSSKrSSKrS rS rS rS rS r	g)z
Utility methods to print system info for debugging

adapted from :func:`sklearn.utils._show_versions`
which was adapted from :func:`pandas.show_versions`
    Nc                      S[         R                  R                  SS5      4S[         R                  4S[        R                  " 5       4/n [        U 5      $ )zRSystem information

Return
------
dict:
    system and Python version information
python
 
executablemachine)sysversionreplacer   platformdict)blobs    Z/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/rasterio/_show_versions.py_get_sys_infor      sM     
3;;&&tS12	s~~&	H%%'(D :    c            	      2   SSK n SU R                  4SU R                  4SU R                  4SU R                  4S[
        R                  R                  U R                  R                  5       5      4SU R                  R                  5       4/n[        U5      $ )	zNInformation on system GDAL

Returns
-------
dict:
    system GDAL information
r   NrasterioGDALPROJGEOSz	PROJ DATAz	GDAL DATA)r   __version____gdal_version____proj_version____geos_version__ospathsepjoin_envget_proj_data_search_pathsget_gdal_datar   )r   r   s     r   _get_gdal_infor!      s      
X))*	**+	**+	**+	bjjoohmm&N&N&PQR	hmm1134D :r   c                      / SQn S n0 nU  HL  n U[         R                  ;   a  [         R                  U   nO[        R                  " U5      nU" U5      X#'   MN     U$ ! [         a    SX#'    Mc  f = f)zOverview of the installed version of main dependencies

Returns
-------
dict:
    version information on relevant Python libraries
)	affineattrscertificlickcligjcythonnumpyzclick-plugins
setuptoolsc                 T     U R                   $ ! [         a    U R                  s $ f = f)N)r   AttributeErrorr
   )modules    r   get_version#_get_deps_info.<locals>.get_versionH   s,    	"%%% 	">>!	"s    ''N)r	   modules	importlibimport_moduleImportError)depsr.   	deps_infomodnamemods        r   _get_deps_infor8   4   s|    
D" I	&#++%kk'*--g6!,S!1I    	&!%I	&s   AAA0/A0c                 X    U R                  5        H  u  p[        US SU 35        M     g)z Print the information dictionaryz>10z: N)itemsprint)	info_dictkeystats      r   _print_info_dictr?   ]   s*    __&	S	D6"# 'r   c                      [        S5        [        [        5       5        [        S5        [        [        5       5        [        S5        [        [	        5       5        g)zn
Print useful debugging information

Example
-------
> python -c "import rasterio; rasterio.show_versions()"

zrasterio info:z
System:z
Python deps:N)r;   r?   r!   r   r8    r   r   show_versionsrB   c   s>     

^%&	+]_%	
^%&r   )
__doc__r1   r   r   r	   r   r!   r8   r?   rB   rA   r   r   <module>rD      s2     	  
",&R$'r   