
    q"h                         S SK r S SKrS SKrS SKJr  S SKJr  S SKJr  S SK	J
r
  S SKJrJr  S SKJr  S SKJr  S S	KJr  S S
KJrJr  S SKJrJr  S SKJr  S SKJr  \ R<                  " \5      r  " S S\5      r!g)    N)Values)List)
WheelCache)
cmdoptions)RequirementCommandwith_cleanup)SUCCESS)CommandError)get_build_tracker)InstallRequirementcheck_legacy_setup_py_options)
ensure_dirnormalize_path)TempDirectory)buildc                   L    \ rS rSrSrSrSS jr\S\S\	\
   S\4S	 j5       rS
rg)WheelCommand   au  
Build Wheel archives for your requirements and dependencies.

Wheel is a built-package format, and offers the advantage of not
recompiling your software during every install. For more details, see the
wheel docs: https://wheel.readthedocs.io/en/latest/

'pip wheel' uses the build system interface as described here:
https://pip.pypa.io/en/stable/reference/build-system/

z
      %prog [options] <requirement specifier> ...
      %prog [options] -r <requirements file> ...
      %prog [options] [-e] <vcs project url> ...
      %prog [options] [-e] <local project path> ...
      %prog [options] <archive url/path> ...returnNc           	      (   U R                   R                  SSSS[        R                  SS9  U R                   R                  [        R
                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                   " 5       5        U R                   R                  [        R"                  " 5       5        U R                   R                  [        R$                  " 5       5        U R                   R                  SSS	S
SS9  U R                   R                  [        R&                  " 5       5        U R                   R                  [        R(                  " 5       5        U R                   R                  [        R*                  " 5       5        U R                   R                  SS	S
SS9  U R                   R                  [        R,                  " 5       5        [        R.                  " [        R0                  U R2                  5      nU R2                  R5                  SU5        U R2                  R5                  SU R                   5        g )Nz-wz--wheel-dir	wheel_dirdirzLBuild wheels into <dir>, where the default is the current working directory.)destmetavardefaulthelpz--no-verify	no_verify
store_trueFz%Don't verify if built wheel is valid.)r   actionr   r   z--prezYInclude pre-release and development versions. By default, pip only finds stable versions.)r   r   r   r   )cmd_opts
add_optionoscurdirr   	no_binaryonly_binaryprefer_binaryno_build_isolation
use_pep517no_use_pep517check_build_depsconstraintseditablerequirementssrcignore_requires_pythonno_depsprogress_barconfig_settingsbuild_optionsglobal_optionsrequire_hashesmake_option_groupindex_groupparserinsert_option_group)self
index_optss     N/var/www/html/env/lib/python3.13/site-packages/pip/_internal/commands/wheel.pyadd_optionsWheelCommand.add_options,   s     II- 	! 
	
 	  !5!5!78  !7!7!9:  !9!9!;<  !>!>!@A  !6!6!89  !9!9!;<  !<!<!>?  !7!7!9:  !4!4!67  !8!8!:;  !12  !B!B!DE  !3!3!56  !8!8!:;  8 	! 	
 	  !;!;!=>  !9!9!;<  !:!:!<=  2 	! 	
 	  !:!:!<=11""KK


 	'':6''4==9    optionsargsc                    U R                  U5      nU R                  X5      n[        UR                  5      Ul        [	        UR                  5        U R                  [        5       5      n[        UR                  (       + SSS9nU R                  X!XC5      n[        X5        [        UR                  5      nU R                  UUUUUUR                  SU R                  S9n	U R                  U	UUUUR                   UR"                  S9n
U R%                  U5        U
R'                  USS9n/ nUR(                  R+                  5        H8  nUR,                  (       a  U	R/                  U5        M'  UR1                  U5        M:     U	R3                  UR(                  R+                  5       5        [5        UUUR6                  (       + UR8                  =(       d    / UR:                  =(       d    / S9u  pU Hp  nUR<                  (       a  UR<                  R,                  (       d   eUR>                  (       d   e [@        RB                  " UR>                  UR                  5        Mr     [M        U5      S
:w  a  [O        S5      e[P        $ ! [D         a=  n[F        RI                  S	URJ                  U5        UR1                  U5         S nAM  S nAff = f)NwheelT)deletekindglobally_managedF)temp_build_dirr@   build_trackersessionfinderdownload_diruse_user_site	verbosity)preparerrJ   r@   wheel_cacher/   r(   )check_supported_wheels)rO   verifyr3   r4   z Building wheel for %s failed: %sr   z"Failed to build one or more wheels))get_default_session_build_package_finderr   r   r   enter_contextr   r   no_cleanget_requirementsr   r   	cache_dirmake_requirement_preparerrM   make_resolverr/   r(   trace_basic_inforesolver-   valuesis_wheelsave_linked_requirementappend prepare_linked_requirements_morer   r   r3   r4   linklocal_file_pathshutilcopyOSErrorloggerwarningnamelenr
   r	   )r:   r@   rA   rI   rJ   rH   	directoryreqsrO   rN   resolverrequirement_setreqs_to_buildreqbuild_successesbuild_failureses                    r<   runWheelCommand.rung   s~   **73++G=*7+<+<=7$$%**+<+>?!'''!
	 $$TFD%g4 !2!2311$' **nn 2 	
 %%##*#A#A)) & 
 	f%"**4*M24"//668C||005$$S)	 9 	11/2N2N2U2U2WX +0#)))!//52"117R+
' #C88 1 111&&&&+C//1B1BC # ~!#CDD  +6HH
 %%c**+s   6+J
K2KK )r   N)__name__
__module____qualname____firstlineno____doc__usager=   r   r   r   strintrs   __static_attributes__ru   r?   r<   r   r      sF    
0E9:v N6 Nc Ns N Nr?   r   )"loggingr"   rc   optparser   typingr   pip._internal.cacher   pip._internal.clir   pip._internal.cli.req_commandr   r   pip._internal.cli.status_codesr	   pip._internal.exceptionsr
   ,pip._internal.operations.build.build_trackerr   pip._internal.req.req_installr   r   pip._internal.utils.miscr   r   pip._internal.utils.temp_dirr   pip._internal.wheel_builderr   	getLoggerrv   rf   r   ru   r?   r<   <module>r      sV     	    * ( J 2 1 J @ 6 -			8	$^% ^r?   