
    G/Phw                     N    d dl Z d dlmZ d dlmZ d dlmZ  G d de          ZdS )    N)Command)new_compiler)get_cmdc                   .    e Zd ZdZg Zd Zd Zd Zd ZdS )install_clibz*Command to install installable C librariesc                 "    d | _         g | _        d S N)install_diroutfilesselfs    d/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/numpy/distutils/command/install_clib.pyinitialize_optionszinstall_clib.initialize_options   s        c                 2    |                      dd           d S )Ninstall)install_libr
   )set_undefined_optionsr   s    r   finalize_optionszinstall_clib.finalize_options   s    ""9.LMMMMMr   c                 R   t          d          }|j        s|                                 |j        }|j        s+t	          d           }|                    | j                   n|j        }| j        j        D ]}t          j	        
                    | j        |j                  }|                    |j                  }t          j	        
                    ||          }|                     |           | j                            |                     ||          d                    d S )N
build_clib)compilerr   )r   r   r   r   r   	customizedistributioninstalled_librariesospathjoinr
   
target_dirlibrary_filenamenamemkpathr   append	copy_file)r   build_clib_cmd	build_dirr   lr   r!   sources           r   runzinstall_clib.run   s    ..( 	.++---"-	 & 	/#T222Ht01111%.H"6 	H 	HAd&6EEJ,,QV44DW\\)T22FKK
###M  
!C!CA!FGGGG	H 	Hr   c                     | j         S r	   )r   r   s    r   get_outputszinstall_clib.get_outputs'   s
    }r   N)	__name__
__module____qualname__descriptionuser_optionsr   r   r)   r+    r   r   r   r      s`        >KL  N N NH H H*    r   r   )r   distutils.corer   distutils.ccompilerr   numpy.distutils.misc_utilr   r   r1   r   r   <module>r5      sx    				 " " " " " " , , , , , , - - - - - -" " " " "7 " " " " "r   