
0c@_F  ã               @   s’   d  d l  m Z d  d l m Z d  d l m Z e rL d  d l m Z m Z d d d d d d d d d d d d  g Z	 e e	 ƒ Z
 d d „  Z d S)!é    )ÚDistutilsArgError)ÚFancyGetopt)ÚMYPY_CHECK_RUNNING)ÚDictÚListúexec-prefix=NÚ úhome=úinstall-base=úinstall-data=úinstall-headers=úinstall-lib=úinstall-platlib=úinstall-purelib=úinstall-scripts=úprefix=úroot=Úuserc             C   s_   i  } xR |  D]J } y t  j d | g ƒ \ } } Wn t k
 rF Yq X| j | j ƒ q W| S)z~Parse provided arguments, returning an object that has the
    matched arguments.

    Any unknown arguments are ignored.
    Úargs)Ú_distutils_getoptÚgetoptr   ÚupdateÚ__dict__)r   ÚresultÚargÚ_Úmatch© r   úA/tmp/pip-build-jynh7p1z/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   )zuserNr   )Zdistutils.errorsr   Údistutils.fancy_getoptr   Zpip._internal.utils.typingr   Ztypingr   r   Ú_optionsr   r   r   r   r   r   Ú<module>   s$   	