o
    ko™iÛ  ã                   @  sL   d dl mZ d dlZej ej e¡¡Zdddd	„Zdd
d„Z	ddd„Z
dS )é    )ÚannotationsNFÚuserÚboolÚreturnÚstrc                 C  s8   t j td¡}t j t j t¡d¡}t j |¡r|S |S )z~
    Return the path to the pybind11 include directory. The historical "user"
    argument is unused, and may be removed.
    Úinclude)ÚosÚpathÚjoinÚDIRÚdirnameÚexists)r   Úinstalled_pathÚsource_path© r   úE/home/ubuntu/.local/lib/python3.10/site-packages/pybind11/commands.pyÚget_include   s   r   c                  C  s.   t j tddd¡} t j | ¡r| S d}t|ƒ‚)zA
    Return the path to the pybind11 CMake module directory.
    ÚshareÚcmakeÚpybind11zGpybind11 not installed, installation required to access the CMake files©r   r	   r
   r   r   ÚImportError)Úcmake_installed_pathÚmsgr   r   r   Úget_cmake_dir   s
   r   c                  C  s,   t j tdd¡} t j | ¡r| S d}t|ƒ‚)z>
    Return the path to the pybind11 pkgconfig directory.
    r   Ú	pkgconfigzKpybind11 not installed, installation required to access the pkgconfig filesr   )Úpkgconfig_installed_pathr   r   r   r   Úget_pkgconfig_dir   s
   r   )F)r   r   r   r   )r   r   )Ú
__future__r   r   r	   Úabspathr   Ú__file__r   r   r   r   r   r   r   r   Ú<module>   s    

