o
    LK&ht                     @   sP   d dl Z d dlmZ d dlZd dlZejjZejj	e 
 dkdddd ZdS )    N)cleandocLinuxz+only demonstrated to fail on Linux in #4399)reasonc                 C   s\   dt dt ddi}tjj|| d g d}|j|| d d |dg}d	|v s,J d
S )z
    Importing pkg_resources.iter_entry_points on console_scripts
    seems to cause trouble with zope-interface, when deprecates installation method
    is used. See #4399.
    pkgz
                from pkg_resources import iter_entry_points

                def bar():
                    print("Print me if you can")
                ah  
                from setuptools import setup, find_packages

                setup(
                    install_requires=["zope-interface==6.4.post2"],
                    entry_points={
                        "console_scripts": [
                            "foo=foo:bar",
                        ],
                    },
                )
                )zfoo.pyzsetup.py)prefix)pipinstallz-e.z--no-use-pep517)cwdfoozPrint me if you canN)r   jaracopathbuildrun)tmp_pathvenvprojectcmdout r   f/var/www/html/venv/lib/python3.10/site-packages/pkg_resources/tests/test_integration_zope_interface.py,test_interop_pkg_resources_iter_entry_points   s   r   )platforminspectr   jaraco.pathr   pytestmarkintegration
pytestmarkskipifsystemr   r   r   r   r   <module>   s    
