
    h                     4    d dl Z d dlZd dlZd Zd Zd Zd Zy)    Nc                      t         j                  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     Q/var/www/html/immo/lib/python3.12/site-packages/geopandas/tools/_show_versions.py_get_sys_infor      sT     [[  s+F 
6	s~~&	H%%'(D :    c                     	 ddl } | j                  }	 ddl } | j                  j	                         }	 ddl} dj                  |j                  j                   }|j                  j                  }	 ddl}|j                  }|j                         }	|L	 ddl}
|
j                   j#                         }	 ddl}
|
j                   j%                         j'                         }	d|fd|fd|fd|	fd	|fd
|fg}t)        |      S # t        $ r d}Y w xY w# t        $ r d}Y w xY w# t        $ r" 	 ddl
m} |}d}n# t        $ r d}d}Y nw xY wY w xY w# t        $ r d}d}	Y w xY w# t        $ r d}Y w xY w# t        $ r d}	Y w xY w)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 (z(('*;*;*H*HI$$6666--/
 	  99::<L	yy//188:H
 
	X		(#		(#D :q      	3.LH 	LH	    	 L	   	H	s   C= D =D 0 E E  2,E1 =D
DDD	E
)
D43E
4EE
EE
	E
EE E.-E.1E?>E?c                      g d} d }i }| D ]K  }	 |t         j                  v rt         j                  |   }nt        j                  |      } ||      }|||<   M |S # t        $ r d||<   Y `w xY w)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 	&	&#++%kk'*--g6c"C!$Ig	&   	&!%Ig	&s   AAA-,A-c                  ,   t               } t               }t               }t        d |D              }d| d}t	        d       t	        d       | j                         D ]!  \  }}t	        |j                  ||             # t	        d       t	        d       |j                         D ]!  \  }}t	        |j                  ||             # t	        d	       t	        d
       |j                         D ]!  \  }}t	        |j                  ||             # y)z
    Print system information and installed module versions.

    Examples
    --------
    ::

        $ python -c "import geopandas; geopandas.show_versions()"
    c              3   2   K   | ]  }t        |        y wr<   )len).0xs     r   	<genexpr>z show_versions.<locals>.<genexpr>   s     +AQ+s   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      s     H II+++F&
&C	/	->># *4cjj14j()*	
#$	
!"??$ *4cjj14j()*	
!"	
 ??$ *4cjj14j()*r   )rA   r   r	   r   r/   rH   rX    r   r   <module>rZ      s%      
&DN+\*r   