
    rbi                     6    d dl Z d dlZd dlZd Zd Zd Zd ZdS )    Nc                      t           j                            dd          } d| fdt           j        fdt	          j                    fg}t          |          S )zsSystem information.

    Returns
    -------
    sys_info : dict
        system and Python version information
    
 python
executablemachine)sysversionreplacer   platformdict)r   blobs     n/var/www/html/mdtn/previsions/meteo_cartes/venv/lib/python3.11/site-packages/geopandas/tools/_show_versions.py_get_sys_infor      sU     [  s++F 
6	s~&	H%''(D ::    c                     	 ddl } | j        }n# t          $ r d}Y nw xY w	 ddl } | j                                        }n# t          $ r d}Y nw xY w	 ddl} dj        |j        j         }|j        j	        }n0# t          $ r# 	 ddl
m} |}d}n# t          $ r d}d}Y nw xY wY nw xY w	 ddl}|j        }|                                }	n# t          $ r d}d}	Y nw xY w|t	 ddl}
|
j                                        }n# t          $ r d}Y nw xY w	 ddl}
|
j                                                                        }	n# t          $ r d}	Y nw xY wd|fd|fd|fd|	fd	|fd
|fg}t)          |          S )zvInformation on system PROJ, GDAL, GEOS.

    Returns
    -------
    c_info: dict
        system PROJ information
    r   Nz{}.{}.{})geos_version_stringGEOSzGEOS libGDALzGDAL data dirPROJzPROJ data dir)pyprojproj_version_str	Exceptiondatadirget_data_dirshapely._buildcfgformat	_buildcfggeos_versiongeos_library_pathshapelyr   pyogrio__gdal_version_string__get_gdal_data_pathfionaenvget_gdal_release_nameGDALDataFindersearchr   )r   proj_versionproj_dirr!   r   geos_dirr   r"   gdal_versiongdal_dirr%   r   s               r   _get_C_infor/      s\   .   >..00       (z('*;*HI$6   	333333.LHH 	 	 	LHHH	6--//    	 LLL 9::<<LL 	  	  	 LLL	 	LLLy//1188::HH 	 	 	HHH	 
	X		(#		(#D ::s    ? AA$A7 7
B$
BB$BB$BB$#B$(C CCC= =DD/E   EEc                      g d} d }i }| D ]]}	 |t           j        v rt           j        |         }nt          j        |          } ||          }|||<   I# t          $ r d||<   Y Zw xY w|S )zOverview of the installed version of main dependencies.

    Returns
    -------
    deps_info: dict
        version information on relevant Python libraries
    )	geopandasnumpypandasr   r!   r"   geoalchemy2geopy
matplotlibmapclassifyr%   psycopgpsycopg2pyarrowc                     | j         S N)__version__)modules    r   get_versionz#_get_deps_info.<locals>.get_version{   s    !!r   N)r	   modules	importlibimport_moduler   )depsr?   	deps_infomodnamemodvers         r   _get_deps_inforH   `   s      D&" " " I 	& 	&	&#+%%k'*-g66+c""C!$Ig 	& 	& 	&!%Ig	& s   AAA'&A'c                     t                      } t                      }t                      }t          d |D                       }d| d}t	          d           t	          d           |                                 D ])\  }}t	          |                    ||                     *t	          d           t	          d           |                                D ])\  }}t	          |                    ||                     *t	          d	           t	          d
           |                                D ])\  }}t	          |                    ||                     *dS )z
    Print system information and installed module versions.

    Examples
    --------
    ::

        $ python -c "import geopandas; geopandas.show_versions()"
    c              3   4   K   | ]}t          |          V  d S r<   )len).0xs     r   	<genexpr>z show_versions.<locals>.<genexpr>   s(      ++AQ++++++r   z{k:<z	}: {stat}z
SYSTEM INFOz-----------)kstatz
GEOS, GDAL, PROJ INFOz---------------------z
PYTHON DEPENDENCIESz-------------------N)r   rH   r/   maxprintitemsr   )sys_inforD   	proj_infomaxlentplrO   rP   s          r   show_versionsrX      si    H  II+++++++F
&&
&
&
&C	/	->>## * *4cjj14j(())))	
#$$$	
!"""??$$ * *4cjj14j(())))	
!"""	
   ??$$ * *4cjj14j(())))* *r   )rA   r   r	   r   r/   rH   rX    r   r   <module>rZ      sn         



  &D D DN+ + +\* * * * *r   