a
    còf¶  ã                
   @   s@  d Z ddlZzddlZW n8 eyP Z z ejdkr<edƒe‚W Y dZ[ndZ[0 0 [zžddlmZmZ ddl	m
Z
 ddlmZ ddlmZmZ dd	lmZ dd
lmZmZmZ ddlmZmZ ejdkrðzddlmZ W n eyî   dZY n0 W nF e�y8 Z z,ejdk�redƒe‚edƒe‚W Y dZ[n
dZ[0 0 [dS )ay  
Temporary shim module to indirect the bits of distutils we need from setuptools/distutils while providing useful
error messages beyond `No module named 'distutils' on Python >= 3.12, or when setuptools' vendored distutils is broken.

This is a compromise to avoid a hard-dep on setuptools for Python >= 3.12, since many users don't need runtime compilation support from CFFI.
é    N)é   é   zlThis CFFI feature requires setuptools on Python >= 3.12. The setuptools module is missing or non-functional.)ÚlogÚ	sysconfig)Ú	CCompiler)Ú	build_ext)ÚDistributionÚ	Extension)Úmkpath)ÚDistutilsSetupErrorÚCompileErrorÚ	LinkError)Úset_thresholdÚset_verbosityÚwin32)ÚMSVCCompilerz_This CFFI feature requires setuptools on Python >= 3.12. Please install the setuptools package.zYThis CFFI feature requires distutils. Please install the distutils or setuptools package.)Ú__doc__ÚsysÚ
setuptoolsÚ	ExceptionÚexÚversion_infoÚ	distutilsr   r   Údistutils.ccompilerr   Zdistutils.command.build_extr   Údistutils.corer   r	   Údistutils.dir_utilr
   Údistutils.errorsr   r   r   Zdistutils.logr   r   ÚplatformZdistutils.msvc9compilerr   ÚImportError© r   r   úU/home/httpd/docs/test/DocsMgr/lib/python3.9/site-packages/cffi/_shimmed_dist_utils.pyÚ<module>   s2   
 

 