
    4[g                     >    d dl Z d dlZd dlZd dlmZmZ d Zd Zd Zy)    N)PackageNotFoundErrorversionc                      t         j                  j                  t        j                  d      t         j
                  t        j                         dS )zm
    Get useful system information.

    Returns
    -------
    dict
        Useful system information.
     )python
executablemachine)sysr   replaceoslinesepr   platform     [/var/www/html/bid-api/venv/lib/python3.12/site-packages/scipy/_lib/cobyqa/utils/versions.py_get_sys_infor      s9     ++%%bjj#6nn$$& r   c                  f    g d} i }| D ]  }	 t        |      ||<    |S # t        $ r d||<   Y &w xY w)zw
    Get the versions of the dependencies.

    Returns
    -------
    dict
        Versions of the dependencies.
    )cobyqanumpyscipy
setuptoolspipN)r   r   )deps	deps_infomodules      r   _get_deps_infor      sN     =DI	% 'If 
  $ 	% $If	%s   00c                  `    t        d       t        d       t               t        dj                  fdj                         D                     t                t        d       t        d       t	                t        dj                   fd j                         D                     y)	zz
    Display useful system and dependencies information.

    When reporting issues, please include this information.
    zSystem settingsz---------------
c           
   3      K   | ]:  \  }}|d t        t        t        j                                     dz    d|  < yw>   z: Nmaxmaplenkeys).0kvsys_infos      r   	<genexpr>z show_versions.<locals>.<genexpr>4   sJ      
(1 3s301A5667r!=(   A AzPython dependenciesz-------------------c           
   3      K   | ]:  \  }}|d t        t        t        j                                     dz    d|  < ywr    r#   )r(   r)   r*   r   s      r   r,   z show_versions.<locals>.<genexpr>?   sK      
)1 3s3	 012Q67781#>)r-   N)printr   joinitemsr   )r   r+   s   @@r   show_versionsr2   *   s     

	
H			 
 (
 	
 
G	
 	
  I			 
!)
 	
r   )	r   r   r
   importlib.metadatar   r   r   r   r2   r   r   r   <module>r4      s     	  
 < &r   