
    ?e                     4    d dl mZ d dlmZ ddZddZd ZdS )	   )AbstractProject)handle_exceptionNc                     t          j        dt          |                    }	 |                    |           S # t          $ r}t          |           Y d}~dS d}~ww xY w)z= The PEP 517 hook for building an sdist from pyproject.toml. sdist	argumentsN)r   	bootstrap_convert_config_settingsbuild_sdist	Exceptionr   )sdist_directoryconfig_settingsprojectes       ,lib/python3.11/site-packages/sipbuild/api.pyr   r           '.??A A AG""?333      : 
AAAc                     t          j        dt          |                    }	 |                    |           S # t          $ r}t          |           Y d}~dS d}~ww xY w)z< The PEP 517 hook for building a wheel from pyproject.toml. wheelr   N)r   r	   r
   build_wheelr   r   )wheel_directoryr   metadata_directoryr   r   s        r   r   r   +   r   r   c                     | i } g }|                                  D ]U\  }}|r9t          |t                    s|g}|D ]}|                    |dz   |z              @|                    |           V|S )zW Return any configuration settings from the frontend to a pseudo-command
    line.
    N=)items
isinstancelistappend)r   argsnamevaluem_values        r   r
   r
   :   s    
 D&,,..  e 	eT**    2 2D3J011112 KKK    )N)NN)abstract_projectr   
exceptionsr   r   r   r
    r#   r   <module>r'      sl   0 . - - - - - ( ( ( ( ( (          r#   