3
ûâdeá  ã               @   sl   d dl mZ d dlmZ d dlmZmZ dddddddddddd gZeeƒZee	 ee	e	f dœdd„Z
dS )!é    )ÚDistutilsArgError)ÚFancyGetopt)ÚDictÚListúexec-prefix=NÚ úhome=úinstall-base=úinstall-data=úinstall-headers=úinstall-lib=úinstall-platlib=úinstall-purelib=úinstall-scripts=úprefix=úroot=Úuser)ÚargsÚreturnc             C   sN   i }xD| D ]<}yt j|gd�\}}W n tk
r8   Y q
X |j|jƒ q
W |S )z~Parse provided arguments, returning an object that has the
    matched arguments.

    Any unknown arguments are ignored.
    )r   )Ú_distutils_getoptÚgetoptr   ÚupdateÚ__dict__)r   ÚresultÚargÚ_Úmatch© r   úA/tmp/pip-build-red6nood/pip/pip/_internal/utils/distutils_args.pyÚparse_distutils_args   s    
r   )r   Nr   )r   Nr   )r	   Nr   )r
   Nr   )r   Nr   )r   Nr   )r   Nr   )r   Nr   )r   Nr   )r   Nr   )r   Nr   )r   Nr   )Zdistutils.errorsr   Údistutils.fancy_getoptr   Útypingr   r   Ú_optionsr   Ústrr   r   r   r   r   Ú<module>   s    