
     h                        d dl mZ d dlZd dlZd dlZd dlZd dlZddlmZ ddl	m
Z
mZmZ dej                  v rd dlmZ n)dej                  v r ej                   d	      Zdd
ZnddZddZddZedk(  r e        yy)    )annotationsN   )__version__)get_cmake_dirget_includeget_pkgconfig_dirposixquotentz[ 	
]c                n    | rt         j                  |       s| S | j                  d      rd|  dS d|  dS )N\"z\")UNSAFEsearchendswithss    m/home/developers/rajanand/mypropertyqr-fmb-refixing-v2/venv/lib/python3.12/site-packages/pybind11/__main__.pyr   r      s=    V]]1%H ZZ-1#Sz;Qqc8;    c                    | S )N r   s    r   r   r       s    r   c                     t        j                  d      t        j                  d      t               g} g }| D ]  }|s||vs|j                  |        t	        dj                  d |D                     y )Nincludeplatinclude c              3  8   K   | ]  }t        d |         yw)z-INr
   ).0ds     r   	<genexpr>z!print_includes.<locals>.<genexpr>1   s     8q52aS?8s   )	sysconfigget_pathr   appendprintjoin)dirsunique_dirsr   s      r   print_includesr(   $   sq    9%=)D K "+%q!" 
#((8K8
89r   c                    t        j                  t        j                  d      } t        j
                  dk\  rt        j                  | dd      }  |        }|j                  ddt        d	       |j                  d
dd       |j                  ddd       |j                  ddd       |j                  ddd       |j                         }t        j                  dd  s|j                          |j                  r
t                |j                  rt        t        t!                            |j"                  rt        t        t%                            |j&                  rt        t)        j*                  d             y y )NF)allow_abbrev)      T)colorsuggest_on_errorz	--versionversionzPrint the version and exit.)actionr/   helpz
--includes
store_truez3Include flags for both pybind11 and Python headers.)r0   r1   z
--cmakedirzMPrint the CMake module directory, ideal for setting -Dpybind11_ROOT in CMake.z--pkgconfigdirzBPrint the pkgconfig directory, ideal for setting $PKG_CONFIG_PATH.z--extension-suffixz'Print the extension for a Python moduler   
EXT_SUFFIX)	functoolspartialargparseArgumentParsersysversion_infoadd_argumentr   
parse_argsargv
print_helpincludesr(   cmakedirr$   r   r   pkgconfigdirr   extension_suffixr!   get_config_var)make_parserparserargss      r   mainrF   4   sb   ##H$;$;%PK
7"''4RVW]F
*	   B  
 \  
 Q  
 6  
 D88AB<}}}}eMO$%e%'()i&&|45 r   __main__)r   strreturnrH   )rI   None)
__future__r   r6   r4   rer8   r!   _versionr   commandsr   r   r   builtin_module_namesshlexr   compiler   r(   rF   __name__r   r   r   <module>rS      s|    "   	 
  ! C C c&&&	S%%%
 RZZ$F<: )6X zF r   