
    ^Mh                     @    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dS )    N)PackageNotFoundErrorversionc                      t           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/test/jupyter/venv/lib/python3.11/site-packages/scipy/_lib/cobyqa/utils/versions.py_get_sys_infor      s;     +%%bj#66n$&&  r   c                  l    g d} i }| D ]*}	 t          |          ||<   # t          $ r d||<   Y 'w xY w|S )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      sl     =<<DI % %	% 'If# 	% 	% 	% $If	%s   11c                      t          d           t          d           t                      t          d                    fd                                D                                  t                       t          d           t          d           t	                       t          d                     fd                                 D                                  dS )	zz
    Display useful system and dependencies information.

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

	
H			 
 
 
 
 ((
 
 
 	
 	
   
GGG	
   	
     I			 
 
 
 
!))
 
 
 	
 	
    r   )	r   r   r
   importlib.metadatar   r   r   r   r1   r   r   r   <module>r3      so    				  



 < < < < < < < <     &    r   