
ó
z`c            @  sJ   d  d l  m Z d  d l Z d  d l Z d  d l Z d „  Z d „  Z d S(   i    (   t   absolute_importNc         C@ su   t  j É d Ê rZ t É t j d g t j d Ê É Ê  } | d k rW t É	 | Ê n  n d d l
 m } | ƒ  d S(   sØ   
    Handle pyproject.toml unserialized into data, by ignoring it and using the
    setuptools build system instead.

    Prefer running the contents of setup.py, but fall back to running a setup()
    function.
    s   setup.pyi   i    (   t   setupN(   t   ost   patht   existst
   subprocesst   Popent   syst
   executablet   argvt   waitt   exitt
   setuptoolsR   (   t   datat   retR   (    (    tC   /home/mgorny/git/pyproject2setup.py/pyproject2setuppy/setuptools.pyt   handle_setuptools   s    )c           C@ s   i  t  d 6S(   s6   
    Return build-backend mapping for setuptools.
    s   setuptools.build_meta(   R   (    (    (    R   t   get_handlers   s    (   t
   __future__R    R   R   R   R   R   (    (    (    R   t   <module>   s
   	