Ë 9� CÇãó—dZddlZddlZddlZddlZddlZddlZddlmZ ddl Z ddl m Z m Z mZmZddlmZmZddlmZmZmZddlmZdd lmZej6d «Zd „ZGd „d «ZGd„d«Zd„Z y#e $rdZ YŒ`wxYw)z}distutils.dist Provides the Distribution class, which represents the module distribution being built/installed/distributed. éN)Úmessage_from_fileé)ÚDistutilsOptionErrorÚDistutilsModuleErrorÚDistutilsArgErrorÚDistutilsClassError)Ú FancyGetoptÚtranslate_longopt)Ú check_environÚ strtoboolÚ rfc822_escape©Úlog)ÚDEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$cóî—t|t«r |St|t«sQt|«j}d}|j dit «¤Ž}tj|«t|«}|S)Nz>Warning: '{fieldname}' should be a list, got type '{typename}'©) Ú isinstanceÚstrÚlistÚtypeÚ__name__ÚformatÚlocalsrÚwarning)ÚvalueÚ fieldnameÚtypenameÚmsgs ú?/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.pyÚ _ensure_listr &sg€Ü�%œÔð ð €Lô˜œtÔ $䘓;×'Ñ'ˆØNˆØˆc�j‰jÑ$œ6›8Ñ$ˆÜ � ‰ �CÔÜ�U“ ˆØ €Lóc ó`—eZdZdZgd¢ZdZgd¢ZeD���cgc]}t|d«‘Œc}}}ZddiZ d)d „Z d „Z d*d „Z d „Z d „Zd)d„Zd„Zd„Zd„Zd„Zddgfd„Zd„Zd„Zd„Zd„Zd„Zd„Zd+d„Zd)d„Zd,d„Zej>fd„Z d„Z!d „Z"d!„Z#d"„Z$d#„Z%d$„Z&d%„Z'd&„Z(d'„Z)d(„Z*ycc}}}w)-Ú Distributiona½The core of the Distutils. Most of the work hiding behind 'setup' is really done within a Distribution instance, which farms the work out to the Distutils commands specified on the command line. Setup scripts will almost never instantiate Distribution directly, unless the 'setup()' function is totally inadequate to their needs. However, it is conceivable that a setup script might wish to subclass Distribution for some specialized purpose, and then pass the subclass to 'setup()' as the 'distclass' keyword argument. If so, it is necessary to respect the expectations that 'setup' has of Distribution. See the code for 'setup()', in core.py, for details. ))ÚverboseÚvzrun verbosely (default)r)ÚquietÚqz!run quietly (turns verbosity off))zdry-runÚnzdon't actually do anything)ÚhelpÚhzshow detailed help message)z no-user-cfgNz-ignore pydistutils.cfg in your home directoryz£Common commands: (see '--help-commands' for more) setup.py build will build the package underneath 'build/' setup.py install will install the package ))z help-commandsNzlist all available commands)ÚnameNzprint package name)ÚversionÚVzprint package version)ÚfullnameNzprint -)ÚauthorNzprint the author's name)ú author-emailNz print the author's email address)Ú maintainerNzprint the maintainer's name)zmaintainer-emailNz$print the maintainer's email address)ÚcontactNz7print the maintainer's name if known, else the author's)z contact-emailNz@print the maintainer's email address if known, else the author's)ÚurlNzprint the URL for this package)ÚlicenseNz print the license of the package)ÚlicenceNzalias for --license)Ú descriptionNzprint the package description)zlong-descriptionNz"print the long package description)Ú platformsNzprint the list of platforms)Ú classifiersNzprint the list of classifiers)ÚkeywordsNzprint the list of keywords)ÚprovidesNz+print the list of packages/modules provided)ÚrequiresNz+print the list of packages/modules required)Ú obsoletesNz0print the list of packages/modules made obsoleterr&r$Nc ó²—d|_d|_d|_|jD]}t ||d«Œt «|_|j jD](}d|z}t ||t|j |««Œ*i|_ d|_ d|_ d|_ i|_ g|_d|_i|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_i|_i|_|�ri|j=d«}|�K|d=|j?«D]5\}}|jA|«}|j?«D] \} } d| f|| <ŒŒ7d|vrK|d|d <|d=d } tB�tCjD| «n"tFjHjK| d z«|j?«D]©\} } tM|j d | z«r t|j d | z«| «Œ?tM|j | «rt |j | | «ŒmtM|| «rt || | «Œ‡d tO| «z} tCjD| «Œ«d|_(|j�2|jD]#} | jSd«sn| dk(sŒd|_(n|jU«y)a0Construct a new Distribution instance: initialize all the attributes of a Distribution, and then use 'attrs' (a dictionary mapping attribute names to values) to assign some of those attributes their "real" values. (Any attributes not mentioned in 'attrs' will be assigned to some null value: 0, None, an empty list or dictionary, etc.) Most importantly, initialize the 'command_obj' attribute to the empty dictionary; this will be filled in with real command objects by 'parse_command_line()'. rrÚget_NÚÚoptionsz setup scriptr5r4z:'licence' distribution option is deprecated; use 'license'Ú Úset_zUnknown distribution option: %sTÚ-z --no-user-cfgF)+r$Údry_runr)Údisplay_option_namesÚsetattrÚDistributionMetadataÚmetadataÚ_METHOD_BASENAMESÚgetattrÚcmdclassÚcommand_packagesÚ script_nameÚ script_argsÚcommand_optionsÚ dist_filesÚpackagesÚ package_dataÚ package_dirÚ py_modulesÚ librariesÚheadersÚ ext_modulesÚ ext_packageÚ include_dirsÚ extra_pathÚscriptsÚ data_filesÚpasswordÚ command_objÚhave_runÚgetÚitemsÚget_option_dictÚwarningsÚwarnÚsysÚstderrÚwriteÚhasattrÚreprÚ want_user_cfgÚ startswithÚfinalize_options)ÚselfÚattrsÚattrÚbasenameÚ method_namer@ÚcommandÚ cmd_optionsÚopt_dictÚoptÚvalrÚkeyÚargs rÚ__init__zDistribution.__init__sÃ€ðˆŒ ØˆŒ ؈Œ Ø×-Ô-ˆDÜ �D˜$ Õ "ð.ô-Ó.ˆŒ ØŸ ™ ×7Ô7ˆHØ  8Ñ+ˆKÜ �D˜+¤w¨t¯}©}¸kÓ'JÕ Kð8ðˆŒ ð!%ˆÔð  ˆÔØˆÔð "ˆÔðˆŒð ˆŒ ØˆÔØˆÔ؈ŒØˆŒØˆŒ ØˆÔØˆÔØ ˆÔ؈ŒØˆŒ ؈ŒØˆŒ ð ˆÔðˆŒ ò ð —i‘i  Ó*ˆGØÐ"ؘ)Ð$Ø,3¯M©M®OÑ(�G˜[Ø#×3Ñ3°GÓ<�HØ$/×$5Ñ$5Ö$7™˜˜SØ)7¸Ð(=˜ š ñ%8ð-<ð ˜EÑ!Ø#(¨Ñ#3��iÑ Ø˜)Ð$ØR�ÜÐ'Ü—M‘M #Õ&ä—J‘J×$Ñ$ S¨4¡ZÔ0ð"ŸK™KžM‘��Sܘ4Ÿ=™=¨&°3©,Ô7Ø8”G˜DŸM™M¨6°C©<Ó8¸Õ=ܘTŸ]™]¨CÔ0ܘDŸM™M¨3°Õ4ܘT 3Ô'ܘD # sÕ+à;¼dÀ3»iÑG�CÜ—M‘M #Õ&ð*ð""ˆÔà × Ñ Ð 'Ø×'Ô'�Ø—~‘~ cÔ*ÙØ˜/Ó)Ø).�DÔ&Ùð (ð ×ÑÕr!cób—|jj|«}|€ix}|j|<|S)zíGet the option dictionary for a given command. If that command's option dictionary hasn't been created yet, then create it and return the new dictionary; otherwise, return the existing option dictionary. )rOr`)rmrrÚdicts rrbzDistribution.get_option_dicts9€ð ×#Ñ#×'Ñ'¨Ó0ˆØ ˆ<Ø35Ð 5ˆD�4×'Ñ'¨Ñ0؈ r!cóΗddlm}|€#t|jj ««}|�|j ||z«|dz}|s|j |dz«y|D]ƒ}|jj |«}|€|j |d|zz«Œ8|j |d|zz«||«}|jd«D]}|j |dz|z«ŒŒ…y)Nr)Úpformatz zno commands known yetzno option dict for '%s' commandzoption dict for '%s' command:rA)Úpprintr}ÚsortedrOÚkeysÚannouncer`Úsplit) rmÚheaderÚcommandsÚindentr}Úcmd_namertÚoutÚlines rÚdump_option_dictszDistribution.dump_option_dicts(sà€Ý"à Рܘd×2Ñ2×7Ñ7Ó9Ó:ˆHà Ð Ø �M‰M˜& 6™/Ô *ؘd‘]ˆFáØ �M‰M˜&Ð#:Ñ:Ô ;Ø ã ˆHØ×+Ñ+×/Ñ/°Ó9ˆHØÐØ— ‘ ˜fÐ'HÈ8Ñ'SÑSÕTà— ‘ ˜fÐ'FÈÑ'QÑQÔRÙ˜hÓ'�ØŸI™I džO�DØ—M‘M &¨4¡-°$Ñ"6Õ7ñ,ñ!r!có—t«|j«D�cgc]-}tjj |«sŒ#t |«‘Œ/}}t r#|jddj|«z«|Scc}w)aÖFind as many configuration files as should be processed for this platform, and return a list of filenames in the order in which they should be parsed. The filenames returned are guaranteed to exist (modulo nasty race conditions). There are multiple possible config files: - distutils.cfg in the Distutils installation directory (i.e. where the top-level Distutils __inst__.py file lives) - a file in the user's home directory named .pydistutils.cfg on Unix and pydistutils.cfg on Windows/Mac; may be disabled with the ``--no-user-cfg`` option - setup.cfg in the current directory - a file named by an environment variable zusing config files: %sz, ) r Ú _gen_pathsÚosÚpathÚisfilerrr�Újoin)rmr�Úfiless rÚfind_config_fileszDistribution.find_config_filesBsb€ô ŒØ'+§¡Ô'8ÓQÑ'8˜t¼B¿G¹G¿N¹NÈ4ÕÒ >÷,× +Ñ +üs‚CDÃ+C7Ã. DÃ7DÃ<Dcó¤—ddlm}tjtjk7rgd¢}ng}t |«}|€|j «}tr|jd«|«}|D]±}tr|jd|z«|j|«|j«D]a}|j|«}|j|«}|D]8} | dk7sŒ | |vsŒ|j|| «} | jdd«} || f|| <Œ:Œc|j«Œ³d |j vr‡|j d j#«D]f\} \} } |j$j| «} | rt'|| t)| « «n(| d vrt'|| t)| ««n t'|| | «Œhyy#t*$r} t-| «‚d} ~ wwxYw) Nr)Ú ConfigParser) z install-basezinstall-platbasez install-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptsz install-datar£z exec-prefixÚhomeÚuserÚrootz"Distribution.parse_config_files():z reading %srrCÚ_Úglobal)r$rD)Ú configparserr¦rer£Ú base_prefixÚ frozensetr‘rr�ÚreadÚsectionsr@rbr`ÚreplaceryrOraÚ negative_optrFr Ú ValueErrorr)rmÚ filenamesr¦Úignore_optionsÚparserr¤Úsectionr@rtrurvÚsrcÚaliasrs rÚparse_config_fileszDistribution.parse_config_filesksµ€Ý-ô �:‰:œŸ™Ò (ò‰Nð  ˆNä" >Ó2ˆà Ð Ø×.Ñ.Ó0ˆIå Ø �M‰MÐ>Ô ?ᓈÛ!ˆHÝØ— ‘ ˜n¨xÑ7Ô8Ø �K‰K˜Ô !Ø!Ÿ?™?Ö,�Ø Ÿ.™.¨Ó1�Ø×/Ñ/°Ó8�ã"�CؘjÓ(¨S¸Ò-FØ$Ÿj™j¨°#Ó6˜Ø!Ÿk™k¨#¨sÓ3˜Ø)1°3¨˜ š ñ #ð -ð �O‰OÕ ð!"ð* �t×+Ñ+Ñ +Ø#'×#7Ñ#7¸Ñ#A×#GÑ#GÖ#I‘�‘Z�c˜3Ø×)Ñ)×-Ñ-¨cÓ2�ð4ÙÜ  e´¸3³Ð-?Õ@ØÐ 6Ñ6Ü  c¬9°S«>Õ:ä  c¨3Ô/øñ$Jð ,øô"ò4Ü.¨sÓ3Ð3ûð4úsÅ0AF6Æ6 GÆ? G Ç Gcó¢—|j«}g|_t||jz«}|j |j «|j ddi«|j|j|¬«}|j«}tj«jtjd|jzz «|j|«ry|r|j!||«}|€y|rŒ|j"r5|j%|t'|j«dk(|j¬«y|js t)d«‚y ) a‡Parse the setup script's command line, taken from the 'script_args' instance attribute (which defaults to 'sys.argv[1:]' -- see 'setup()' in core.py). This list is first processed for "global options" -- options that set attributes of the Distribution instance. Then, it is alternately scanned for Distutils commands and options for that command. Each new command terminates the options for the previous command. The allowed options for a command are determined by the 'user_options' attribute of the command class -- thus, we have to be able to load command classes in order to parse the command line. Any error in that 'options' attribute raises DistutilsGetoptError; any error on the command-line raises DistutilsArgError. If no Distutils commands were found on the command line, raises DistutilsArgError. Return true if command-line was successfully parsed and we should carry on with executing commands; false if no errors but we shouldn't execute commands (currently, this only happens if user asks for help). r5r4)ÚargsÚobjecté Nr©Údisplay_optionsr„zno commands suppliedT)Ú_get_toplevel_optionsr„r rÀÚset_negative_aliasesr²Ú set_aliasesÚgetoptrNÚget_option_orderÚloggingÚ getLoggerÚsetLevelÚWARNr$Úhandle_display_optionsÚ_parse_command_optsr)Ú _show_helpÚlenr)rmÚtoplevel_optionsr¶r¼Ú option_orders rÚparse_command_linezDistribution.parse_command_line¯s/€ð. ×5Ñ5Ó7ÐðˆŒ ÜÐ-°×0DÑ0DÑDÓEˆØ×#Ñ# D×$5Ñ$5Ô6Ø×јI yÐ1Ô2Ø�}‰} $×"2Ñ"2¸4ˆ}Ó@ˆØ×.Ñ.Ó0ˆ Ü×ÑÓ×$Ñ$¤W§\¡\°B¸¿¹Ñ4EÑ%EÔFð × &Ñ & |Ô 4Ø ÙØ×+Ñ+¨F°DÓ9ˆD؈|Øòð �9Š9Ø �O‰Oج¨D¯M©MÓ(:¸aÑ(?È$Ï-É-ð ô ð ð�}Š}Ü#Ð$:Ó;Ð ;ðr!có"—|jdgzS)zÃReturn the non-display options recognized at the top level. This includes options that are recognized *only* at the top level as well as options recognized for commands. )zcommand-packages=Nz0list of packages that provide distutils commands)Úglobal_options©rms rrÁz"Distribution._get_toplevel_optionsòs!€ð ×"Ñ"ð ð& ñ ð r!có—ddlm}|d}tj|«st d|z«‚|j j |« |j|«}t||«std|z«‚t|d«rt|jt«sd}t||z«‚|j }t|d«r+|j#«}|j%|j «t|d «r0t|j&t«rt)|j&«}ng}|j+|j,|jz|z«|j/|«|j1|d d«\}} t| d «r"| j2r|j5|d|g¬ «yt|d «rwt|j&t«r]d} |j&D]I\} } } }t| |j7| ««sŒ$d } t9|«r|«Œ9td |›d| ›d�«‚| ry|j;|«}t=| «j?«D] \}}d|f||<Œ|S#t$r}t|«‚d}~wwxYw)aÚParse the command-line options for a single command. 'parser' must be a FancyGetopt instance; 'args' must be the list of arguments, starting with the current command (whose options we are about to parse). Returns a new version of 'args' with the next command at the front of the list; will be the empty list if there are no more commands on the command line. Returns None if the user asked for help on this command. r©ÚCommandzinvalid command name '%s'Nz&command class %s must subclass CommandÚ user_optionszIcommand class %s must provide 'user_options' attribute (a list of tuples)r²Ú help_optionsrr)r¿zinvalid help function z for help option 'z-': must be a callable object (function, etc.)z command line) Ú distutils.cmdrÖÚ command_reÚmatchÚ SystemExitr„ÚappendÚget_command_classrrÚ issubclassrrhrr×rr²ÚcopyÚupdaterØÚfix_help_optionsÚset_option_tablerÒrÂrÄr)rÌÚ get_attr_nameÚcallablerbÚvarsra)rmr¶r¼rÖrrÚ cmd_classrr²rØÚoptsÚhelp_option_foundÚ help_optionÚshortÚdescÚfuncrtr+rs rrËz Distribution._parse_command_optss|€õ *ð�q‘'ˆÜ×Ñ Ô(ÜÐ8¸7ÑBÓCÐ CØ � ‰ ×јWÔ%ð  )Ø×.Ñ.¨wÓ7ˆIô ˜) WÔ-Ü%Ø8¸9ÑDóð ô �I˜~Ô .ܘ9×1Ñ1´4Ô8ð>ð ô& c¨I¡oÓ6Ð 6ð×(Ñ(ˆ Ü �9˜nÔ -Ø'×,Ñ,Ó.ˆLØ × Ñ   × 6Ñ 6Ô 7ô �9˜nÔ -´*Ø × "Ñ "¤Dô3 ô,¨I×,BÑ,BÓC‰LàˆLð ×ÑØ × Ñ  )×"8Ñ"8Ñ 8¸<Ñ Gô ð ×#Ñ# LÔ1Ø—}‘} T¨!¨" XÓ.‰ ˆˆtÜ �4˜Ô  T§Y¢YØ �O‰O˜F°AÀÀ ˆOÔ LØ ä �9˜nÔ -´*Ø × "Ñ "¤Dô3 ð!"Ð Ø2;×2HÔ2HÑ.� ˜U D¨$ܘ4 ×!5Ñ!5°kÓ!BÕCØ()Ð%Ü ”~Ù�å1ò $¢[ð2óðð 3Iñ!Øð×'Ñ'¨Ó0ˆÜ ›:×+Ñ+Ö-‰KˆD�%Ø,¨eÐ4ˆH�TŠNð.ðˆ øôU$ò )Ü# CÓ(Ð (ûð )úsÁ I,É, JÉ5 JÊJcóö—dD]o}t|j|«}|€Œt|t«sŒ-|j d«D�cgc]}|j «‘Œ}}t |j||«Œqycc}w)z›Set final values for all the options on the Distribution instance, analogous to the .finalize_options() method of Command objects. ©r9r7NÚ,)rJrHrrr‚ÚstriprF)rmrorÚelms rrlzDistribution.finalize_optionscsk€ó .ˆDܘDŸM™M¨4Ó0ˆE؈}ØÜ˜%¤Õ%Ø05· ± ¸CÔ0@ÓAÑ0@¨˜Ÿ™�Ð0@�ÐAܘŸ ™  t¨UÕ3ñ .ùò BsÁA6rcó4—ddlm}ddlm}|rY|r|j «}n |j }|j |«|j|jdz«td«|r7|j |j«|jd«td«|jD]Î}t|t«rt||«r|} n|j|«} t!| d«rLt| j"t$«r2|j | j&t)| j"«z«n|j | j&«|jd| j*z«td«ŒÐt||j,««y ) abShow help for the setup script command-line in the form of several lists of command-line options. 'parser' should be a FancyGetopt instance; do not expect it to be returned in the same state, as its option table will be reset to make it generate the correct help text. If 'global_options' is true, lists the global options: --verbose, --dry-run, etc. If 'display_options' is true, lists the "display-only" options: --name, --version, etc. Finally, lists per-command help for every command name or command class in 'commands'. r©Ú gen_usagerÕz Global options:r?zKInformation display options (just display information, ignore any commands)rØzOptions for '%s' command:N)Údistutils.corerõrÙrÖrÁrÒrãÚ print_helpÚ common_usageÚprintrÀr„rrrßrÞrhrØrr×rârrM) rmr¶rÒrÀr„rõrÖr@rrÚklasss rrÌzDistribution._show_helppsM€õ -Ý)á ÙØ×4Ñ4Ó6‘à×-Ñ-�Ø × #Ñ # GÔ ,Ø × Ñ ˜d×/Ñ/Ð2EÑEÔ FÜ �"ŒIá Ø × #Ñ # D×$8Ñ$8Ô 9Ø × Ñ ð6ô ô �"ŒIà—}”}ˆGܘ'¤4Ô(¬Z¸ÀÔ-IØ‘à×.Ñ.¨wÓ7�Ü�u˜nÔ-´*¸U×=OÑ=OÔQUÔ2VØ×'Ñ'Ø×&Ñ&Ô)9¸%×:LÑ:LÓ)MÑMõð×'Ñ'¨×(:Ñ(:Ô;Ø × Ñ Ð9¸E¿N¹NÑJÔ KÜ �"�Ið%ô ‰i˜×(Ñ(Ó)Õ*r!cóø—ddlm}|jr7|j«t d«t ||j ««yd}i}|j D] }d||d<Œ |D]Ž\}}|sŒ |j|«sŒt|«}t|jd|z««}|dvrt dj|««n*|dvrt d j|««n t |«d}Œ�|S) zÚIf there were any non-global "display-only" options (--help-commands or the metadata display options) on the command line, display the requested info and return true; else return false. rrôr?rr>rïrð)r8r:r;r<rA) rörõÚ help_commandsÚprint_commandsrùrMrÀr`r rJrHr�) rmrÏrõÚany_display_optionsÚis_display_optionÚoptionrurvrs rrÊz#Distribution.handle_display_options¢sô€õ -ð × Ò Ø × Ñ Ô !Ü �"ŒIÜ ‘)˜D×,Ñ,Ó-Ô .Øð  ÐØÐØ×*Ô*ˆFØ+,Ð ˜f Q™iÒ (ð+ó%‰HˆC�ÚÐ(×,Ñ,¨SÕ1Ü'¨Ó,�Ø<œ § ¡ ¨v¸©|Ó<Ó>�ØÐ3Ñ3ܘ#Ÿ(™( 5›/Õ*ØÐPÑPܘ$Ÿ)™) EÓ*Õ+ä˜%”LØ&'Ñ#ð%ð#Ð"r!cóè—t|dz«|D]N}|jj|«}|s|j|«} |j}td|||fz«ŒPy#t $rd}YŒ!wxYw)zZPrint a subset of the list of all commands -- used by 'print_commands()'. Ú:ú(no description available)z %-*s %sN)rùrKr`rÞr6ÚAttributeError)rmr„rƒÚ max_lengthÚcmdrúr6s rÚprint_command_listzDistribution.print_command_listÉs}€ô ˆf�s‰lÔãˆCØ—M‘M×%Ñ% cÓ*ˆEÙØ×.Ñ.¨sÓ3�ð ;Ø#×/Ñ/� ô �, *¨c°;Ð!?Ñ?Õ @ñøô "ò ;Ø:’ ð ;úsÁ A#Á# A1Á0A1cóŽ—ddl}|jj}i}|D]}d||<Œ g}|jj «D]%}|j |«rŒ|j |«Œ'd}||zD]}t|«|kDsŒt|«}Œ|j|d|«|rt«|j|d|«yy)anPrint out a help message listing all available commands with a description of each. The list is divided into "standard commands" (listed in distutils.command.__all__) and "extra commands" (mentioned in self.cmdclass, but not a standard command). The descriptions come from the command class attribute 'description'. rNrzStandard commandszExtra commands) Údistutils.commandrrÚ__all__rKr€r`rÝrÍrrù)rmr“Ú std_commandsÚis_stdrÚextra_commandsrs rrýzDistribution.print_commandsÚsÇ€ó !à ×(Ñ(×0Ñ0ˆ ؈ۈC؈F�3ŠKð ðˆØ—=‘=×%Ñ%Ö'ˆCØ—:‘:˜c•?Ø×%Ñ% cÕ*ð(ðˆ Ø .Ô0ˆCÜ�3‹x˜*Ó$Ü  ›X‘ ð1ð ×Ñ  Ð.AÀ:ÔNÙ Ü ŒGØ × #Ñ # NÐ4DÀjÕ Qð r!có´—ddl}|jj}i}|D]}d||<Œ g}|jj «D]%}|j |«rŒ|j |«Œ'g}||zD]P}|jj |«}|s|j|«} |j}|j ||f«ŒR|S#t$rd}YŒ$wxYw)a>Get a list of (command, description) tuples. The list is divided into "standard commands" (listed in distutils.command.__all__) and "extra commands" (mentioned in self.cmdclass, but not a standard command). The descriptions come from the command class attribute 'description'. rNrr) r rrr rKr€r`rÝrÞr6r) rmr“r r rr Úrvrúr6s rÚget_command_listzDistribution.get_command_listøsä€ó !à ×(Ñ(×0Ñ0ˆ ؈ۈC؈F�3ŠKð ðˆØ—=‘=×%Ñ%Ö'ˆCØ—:‘:˜c•?Ø×%Ñ% cÕ*ð(ðˆØ .Ô0ˆCØ—M‘M×%Ñ% cÓ*ˆEÙØ×.Ñ.¨sÓ3�ð ;Ø#×/Ñ/� ð �I‰I�s˜KÐ(Õ )ð1ðˆ øô"ò ;Ø:’ ð ;úsÂ& C à CÃCcóî—|j}t|t«sS|€d}|jd«D�cgc]}|dk7sŒ |j «‘Œ}}d|vr|j dd«||_|Scc}w)z9Return a list of packages from which commands are loaded.r?rðzdistutils.commandr)rLrrr‚rñÚinsert)rmÚpkgsÚpkgs rÚget_command_packagesz!Distribution.get_command_packagesss€à×$Ñ$ˆÜ˜$¤Ô%؈|Ø�Ø+/¯:©:°c¬?ÓH©? C¸cÀR»i�C—I‘I•K¨?ˆDÐHØ"¨$Ñ.Ø— ‘ ˜AÐ2Ô3Ø$(ˆDÔ !؈ ùò Is ´ A2¿A2c óŒ—|jj|«}|r|S|j«D]T}dj||«}|} t |«t j |} t||«}||j|<|cStd|z«‚#t$rYŒpwxYw#t$rtd|›d|›d|›d�«‚wxYw)aoReturn the class that implements the Distutils command named by 'command'. First we check the 'cmdclass' dictionary; if the command is mentioned there, we fetch the class object from the dictionary and return it. Otherwise we load the command module ("distutils.command." + command) and fetch the command class from the module. The loaded class is also stored in 'cmdclass' to speed future calls to 'get_command_class()'. Raises DistutilsModuleError if the expected module could not be found, or if that module does not define the expected class. z{}.{}zinvalid command 'z ' (no class 'z ' in module 'z')zinvalid command '%s') rKr`rrÚ __import__reršÚ ImportErrorrJrr)rmrrrúÚpkgnameÚ module_nameÚ klass_nameÚmodules rrÞzDistribution.get_command_class'sـ𗠑 ×!Ñ! 'Ó*ˆÙ ؈Là×0Ñ0Ö2ˆGØ!Ÿ.™.¨°'Ó:ˆKØ ˆJð ܘ;Ô'ÜŸ™ [Ñ1�ð Ü ¨ Ó3�ð&+ˆD�M‰M˜'Ñ "ØŠLð'3ô*#Ð#9¸GÑ#CÓDÐDøôò Ùð ûô "ò Ý*⢠ªKð9óðð úsÁBÁ' B$ B! B!Â$CcóD—|jj|«}|s‚|r€tr|jd|z«|j |«}||«x}|j|<d|j |<|j j|«}|r|j||«|S)aReturn the command object for 'command'. Normally this object is cached on a previous call to 'get_command_obj()'; if no command object for 'command' is in the cache, then we either create and return it (if 'create' is true) or return None. zNÐ:NÕOؘyÑ(©YܘK¨´¸5Ó1AÕBܘ[¨&Ô1ܘK¨°Õ7å.â!¢<²ð9óðøñ+(;ùòXøÜ!ò Ø’ ð ûô"ò Ø’ð ûô ò 0Ü*¨3Ó/Ð/ûð 0úsOÂD5ÂD0 D5Â# EÂ0A=EÄ0D5Ä5 EÅEÅ EÅEÅ E0Å E+Å+E0cóN—ddlm}t||«s|}|j|«}n|j «}|j s|S|j «d|_d|j|<|j|«|r'|j«D]}|j||«Œ|S)a³Reinitializes a command to the state it was in when first returned by 'get_command_obj()': ie., initialized but not yet finalized. This provides the opportunity to sneak option values in programmatically, overriding or supplementing user-supplied values from the config files and command line. You'll have to re-finalize the command object (by calling 'finalize_options()' or 'ensure_finalized()') before using it for real. 'command' should be a command name (string) or command object. If 'reinit_subcommands' is true, also reinitializes the command's sub-commands, as declared by the 'sub_commands' class attribute (if it has one). See the "install" command for an example. Only reinitializes the sub-commands that actually matter, ie. those whose test predicates return true. Returns the reinitialized command object. rrÕ) rÙrÖrr!r$Ú finalizedÚinitialize_optionsr_rÚget_sub_commandsÚreinitialize_command)rmrrÚreinit_subcommandsrÖr'Úsubs rr1z!Distribution.reinitialize_command–s €õ& *ä˜' 7Ô+Ø"ˆLØ×*Ñ*¨<Ó8‰Gà"×3Ñ3Ó5ˆLà× Ò ØˆNØ×"Ñ"Ô$ØˆÔØ&'ˆ� ‰ �lÑ#Ø ×!Ñ! 'Ô*á Ø×/Ñ/Ö1�Ø×)Ñ)¨#Ð/AÕBð2ðˆr!có0—tj||«y©Nr)rmrÚlevels rr�zDistribution.announceÀs€Ü �‰��sÕr!cóH—|jD]}|j|«Œy)z¶Run each command that was seen on the setup script command line. Uses the list of commands found and cache of command objects created by 'get_command_obj()'. N)r„Ú run_command)rmrs rÚ run_commandszDistribution.run_commandsÃs €ð —=”=ˆCØ × Ñ ˜SÕ !ñ!r!cóè—|jj|«rytjd|«|j |«}|j «|j «d|j|<y)aªDo whatever it takes to run a command (including nothing at all, if the command has already been run). Specifically: if we have already created and run the command named by 'command', return silently without doing anything. If the command named by 'command' doesn't even have a command object yet, create one. Then invoke 'run()' on that command object (or an existing one). Nz running %sr)r_r`rÚinfor!Úensure_finalizedÚrun)rmrrr s rr8zDistribution.run_commandÍsZ€ð �=‰=× Ñ ˜WÔ %Ø ä �‰�˜wÔ'Ø×&Ñ& wÓ/ˆØ× Ñ Ô"Ø� ‰ Œ Ø!"ˆ� ‰ �gÒr!cóV—t|jxs|jxsg«dkDS©Nr)rÍrQrTrÓs rÚhas_pure_moduleszDistribution.has_pure_modulesás$€Ü�4—=‘=Ò9 D§O¡OÒ9°rÓ:¸QÑ>Ð>r!cóN—|jxrt|j«dkDSr?)rWrÍrÓs rÚhas_ext_moduleszDistribution.has_ext_modulesäs#€Ø×ÑÒ=¤C¨×(8Ñ(8Ó$9¸AÑ$=Ð=r!cóN—|jxrt|j«dkDSr?)rUrÍrÓs rÚhas_c_librarieszDistribution.has_c_librariesçs€Ø�~‰~Ò9¤# d§n¡nÓ"5¸Ñ"9Ð9r!cóF—|j«xs|j«Sr5)r@rBrÓs rÚ has_moduleszDistribution.has_modulesês€Ø×$Ñ$Ó&Ò@¨$×*>Ñ*>Ó*@Ð@r!cóN—|jxrt|j«dkDSr?)rVrÍrÓs rÚ has_headerszDistribution.has_headersíó€Ø�|‰|Ò5¤ D§L¡LÓ 1°AÑ 5Ð5r!cóN—|jxrt|j«dkDSr?)r[rÍrÓs rÚ has_scriptszDistribution.has_scriptsðrIr!cóN—|jxrt|j«dkDSr?)r\rÍrÓs rÚhas_data_fileszDistribution.has_data_filesós€Ø�‰Ò;¤3 t§¡Ó#7¸!Ñ#;Ð;r!cón—|j«xr$|j« xr|j« Sr5)r@rBrDrÓs rÚis_purezDistribution.is_pureös;€à × !Ñ !Ó #ò +Ø×(Ñ(Ó*Ð*ò +à×(Ñ(Ó*Ð*ð r!r5)NNr?)r)r)+rÚ __module__Ú __qualname__Ú__doc__rÒrørÀr rEr²ryrbr‰r‘r‹rºrÐrÁrËrlrÌrÊrrýrrrÞr!rr1rÆÚINFOr�r9r8r@rBrDrFrHrKrMrO)Ú.0Úxr s000rr#r#5s„ñ ò*€Nð€Lò€Oñ6>MÕM¹_¸Ô-¨a°©dÕ3¸_ÓMÐð˜YÐ'€Ló\ ò| ó8ò4ò.?ó$@4òHAòF  òaòF 4ð12À1Èró0+òd%#òNAò"Rò<òF ò%EóNó:)0óV&ðT#*§,¡,óò"ò#ò(?ò>ò:òAò6ò6ò<ó ùô}Ns—B)r#cóÔ—eZdZdZdZd#d„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd„ZeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d „Z"d!„Z#d"„Z$y)$rGz]Dummy class to hold the distribution meta-data: name, version, author, and so forth. )r+r,r/Ú author_emailr1Úmaintainer_emailr3r4r6Úlong_descriptionr9r7r.r2Ú contact_emailr8Ú download_urlr:r;r<Ncó,—|�|jt|««yd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_yr5)Ú read_pkg_fileÚopenr+r,r/rWr1rXr3r4r6rYr9r7r8r[r:r;r<)rmr�s rryzDistributionMetadata.__init__"s—€Ø Ð Ø × Ñ œt D›zÕ *àˆDŒI؈DŒL؈DŒKØ $ˆDÔ Ø"ˆDŒOØ$(ˆDÔ !؈DŒH؈DŒLØ#ˆDÔ Ø$(ˆDÔ !Ø ˆDŒMØ!ˆDŒNØ#ˆDÔ Ø $ˆDÔ à ˆDŒMØ ˆDŒMØ!ˆD�Nr!cój‡—t|«Šˆfd„}ˆfd„}‰d}|d«|_|d«|_|d«|_|d«|_d|_|d «|_d|_|d «|_|d «|_ d ‰vr|d «|_ nd|_ |d «|_ |d«|_d‰vr|d«jd«|_ |d«|_|d«|_|dk(r(|d«|_|d«|_|d«|_yd|_d|_d|_y)z-Reads the metadata values from a file object.có$•—‰|}|r|dk7r|Syy©NÚUNKNOWNr)r+rrs €rÚ _read_fieldz7DistributionMetadata.read_pkg_file.._read_field=s"ø€Ø˜‘IˆEÙ˜ )Ò+Ø� ð,ˆur!có8•—‰j|d«}|gk(ry|Sr5)Úget_all)r+Úvaluesrs €rÚ _read_listz6DistributionMetadata.read_pkg_file.._read_listBs"ø€Ø—[‘[  tÓ,ˆFؘŠ|ØØˆMr!zmetadata-versionr+r,Úsummaryr/Nr0z home-pager4z download-urlr6r9rðÚplatformÚ classifierú1.1r;r:r<)rr+r,r6r/r1rWrXr3r4r[rYr‚r9r7r8r;r:r<)rmÚfilercrgÚmetadata_versionrs @rr]z"DistributionMetadata.read_pkg_file9s<ø€ä Ó%ˆô ô  ð Ð1Ñ2ÐÙ Ó'ˆŒ Ù" 9Ó-ˆŒ Ù& yÓ1ˆÔá! (Ó+ˆŒ ؈ŒÙ'¨Ó7ˆÔØ $ˆÔÙ˜{Ó+ˆŒÙ" 9Ó-ˆŒ à ˜SÑ Ù +¨NÓ ;ˆDÕ à $ˆDÔ á +¨MÓ :ˆÔÙ& yÓ1ˆÔà ˜Ñ Ù'¨ Ó3×9Ñ9¸#Ó>ˆDŒMá# JÓ/ˆŒÙ% lÓ3ˆÔð ˜uÒ $Ù& zÓ2ˆDŒMÙ& zÓ2ˆDŒMÙ'¨ Ó4ˆD�Nà ˆDŒMØ ˆDŒMØ!ˆD�Nr!có¨—ttjj|d«dd¬«5}|j |«ddd«y#1swYyxYw)z.Write the PKG-INFO file into the release tree.zPKG-INFOÚwzUTF-8)ÚencodingN)r^rŒr�r�Úwrite_pkg_file)rmÚbase_dirÚpkg_infos rÚwrite_pkg_infoz#DistributionMetadata.write_pkg_infolsA€ä Ü �G‰G�L‰L˜ :Ó .°¸gõ à Ø × Ñ  Ô )÷ ÷ ñ ús ­AÁAcó*‡—d}|js0|js$|js|js |jrd}‰j d|z«‰j d|j «z«‰j d|j«z«ˆfd„}|d|j««|d|j««|d |j««|d |j««|d |j««|d |j«|d t|j«xsd««|ddj|j!«««|j#‰d|j%««|j#‰d|j'««|j#‰d|j)««|j#‰d|j+««|j#‰d|j-««y)z0Write the PKG-INFO format data to a file object.z1.0rkzMetadata-Version: %s z Name: %s z Version: %s có:•—|r‰j|›d|›d�«yy)Nz: rA)rg)rƒrvrls €rÚ maybe_writez8DistributionMetadata.write_pkg_file..maybe_write„s$ø€ÙØ— ‘ ˜f˜X R¨ u¨BÐ/Õ0ðr!ÚSummaryz Home-pageÚAuthorz Author-emailÚLicensez Download-URLÚ Descriptionr?ÚKeywordsrðÚPlatformÚ ClassifierÚRequiresÚProvidesÚ ObsoletesN)r:r;r<r8r[rgÚget_nameÚ get_versionÚget_descriptionÚget_urlÚ get_contactÚget_contact_emailÚ get_licenser Úget_long_descriptionr�Ú get_keywordsÚ _write_listÚ get_platformsÚget_classifiersÚ get_requiresÚ get_providesÚ get_obsoletes)rmrlr,rws ` rrqz#DistributionMetadata.write_pkg_filess¯ø€àˆà �MŠMØ�}Š}Ø�~Š~Ø×ÒØ× Ò àˆGð � ‰ Ð+¨gÑ5Ô6Ø � ‰ �< $§-¡-£/Ñ1Ô2Ø � ‰ �? T×%5Ñ%5Ó%7Ñ7Ô8ô 1ñ �I˜t×3Ñ3Ó5Ô6Ù�K §¡£Ô0Ù�H˜d×.Ñ.Ó0Ô1Ù�N D×$:Ñ$:Ó$<Ô=Ù�I˜t×/Ñ/Ó1Ô2Ù�N D×$5Ñ$5Ô6Ù�M¤=°×1JÑ1JÓ1LÒ1RÐPRÓ#SÔTÙ�J §¡¨×):Ñ):Ó)<Ó =Ô>à ×ј˜z¨4×+=Ñ+=Ó+?Ô@Ø ×ј˜|¨T×-AÑ-AÓ-CÔDð ×ј˜z¨4×+<Ñ+<Ó+>Ô?Ø ×ј˜z¨4×+<Ñ+<Ó+>Ô?Ø ×ј˜{¨D×,>Ñ,>Ó,@ÕAr!có`—|xsg}|D]#}|jdj||««Œ%y)Nz{}: {} )rgr)rmrlr+rfrs rr‹z DistributionMetadata._write_listšs.€Ø’˜2ˆÛˆEØ �J‰J�z×(Ñ(¨¨uÓ5Õ 6ñr!có"—|jxsdSra)r+rÓs rr‚zDistributionMetadata.get_name¡s€Ø�y‰yÒ%˜IÐ%r!có"—|jxsdS)Nz0.0.0)r,rÓs rrƒz DistributionMetadata.get_version¤s€Ø�|‰|Ò&˜wÐ&r!có^—dj|j«|j««S)Nz{}-{})rr‚rƒrÓs rÚ get_fullnamez!DistributionMetadata.get_fullname§s"€Ø�~‰~˜dŸm™m›o¨t×/?Ñ/?Ó/AÓBÐBr!có—|jSr5)r/rÓs rÚ get_authorzDistributionMetadata.get_authorªs €Ø�{‰{Ðr!có—|jSr5)rWrÓs rÚget_author_emailz%DistributionMetadata.get_author_email­ó€Ø× Ñ Ð r!có—|jSr5)r1rÓs rÚget_maintainerz#DistributionMetadata.get_maintainer°s €Ø�‰Ðr!có—|jSr5)rXrÓs rÚget_maintainer_emailz)DistributionMetadata.get_maintainer_email³ó€Ø×$Ñ$Ð$r!có6—|jxs |jSr5)r1r/rÓs rr†z DistributionMetadata.get_contact¶s€Ø�‰Ò- $§+¡+Ð-r!có6—|jxs |jSr5)rXrWrÓs rr‡z&DistributionMetadata.get_contact_email¹s€Ø×$Ñ$Ò9¨×(9Ñ(9Ð9r!có—|jSr5)r3rÓs rr…zDistributionMetadata.get_url¼s €Ø�x‰xˆr!có—|jSr5)r4rÓs rrˆz DistributionMetadata.get_license¿s €Ø�|‰|Ðr!có—|jSr5)r6rÓs rr„z$DistributionMetadata.get_descriptionÄs€Ø×ÑÐr!có—|jSr5)rYrÓs rr‰z)DistributionMetadata.get_long_descriptionÇrŸr!có"—|jxsgSr5)r9rÓs rrŠz!DistributionMetadata.get_keywordsÊó€Ø�}‰}Ò" Ð"r!có&—t|d«|_y)Nr9)r r9©rmrs rÚ set_keywordsz!DistributionMetadata.set_keywordsÍs€Ü$ U¨JÓ7ˆ� r!có—|jSr5)r7rÓs rrŒz"DistributionMetadata.get_platformsÐs €Ø�~‰~Ðr!có&—t|d«|_y)Nr7)r r7r©s rÚ set_platformsz"DistributionMetadata.set_platformsÓs€Ü% e¨[Ó9ˆ�r!có"—|jxsgSr5)r8rÓs rr�z$DistributionMetadata.get_classifiersÖs€Ø×ÑÒ% 2Ð%r!có&—t|d«|_y)Nr8)r r8r©s rÚset_classifiersz$DistributionMetadata.set_classifiersÙs€Ü'¨¨}Ó=ˆÕr!có—|jSr5)r[rÓs rÚget_download_urlz%DistributionMetadata.get_download_urlÜršr!có"—|jxsgSr5)r;rÓs rrŽz!DistributionMetadata.get_requiresàr§r!cóp—ddl}|D]}|jj|«Œt|«|_yr?)Údistutils.versionpredicateÚversionpredicateÚVersionPredicaterr;©rmrr“r%s rÚ set_requiresz!DistributionMetadata.set_requiresãs.€Û)ãˆAØ × &Ñ &× 7Ñ 7¸Õ :ðä˜U› ˆ� r!có"—|jxsgSr5)r:rÓs rr�z!DistributionMetadata.get_providesêr§r!có¢—|D�cgc]}|j«‘Œ}}|D]!}ddl}|jj|«Œ#||_ycc}wr?)rñrµr¶Úsplit_provisionr:)rmrr%r“s rÚ set_providesz!DistributionMetadata.set_providesísK€Ù$)Ó*¡E˜q�—‘• EˆÐ*ÛˆAÛ -à × &Ñ &× 6Ñ 6°qÕ 9ððˆ� ùò +s…A có"—|jxsgSr5)r<rÓs rr�z"DistributionMetadata.get_obsoletesõs€Ø�~‰~Ò# Ð#r!cóp—ddl}|D]}|jj|«Œt|«|_yr?)rµr¶r·rr<r¸s rÚ set_obsoletesz"DistributionMetadata.set_obsoletesøs.€Û)ãˆAØ × &Ñ &× 7Ñ 7¸Õ :ðä˜e›ˆ�r!r5)%rrPrQrRrIryr]rtrqr‹r‚rƒr•r—r™rœržr†r‡r…rˆÚ get_licencer„r‰rŠrªrŒr­r�r°r²rŽr¹r�r½r�rÀrr!rrGrGsµ„ñðÐó0"ò.1"òf*ò%BòN7ò&ò'òCòò!òò%ò.ò:òòð€Kò ò%ò#ò8òò:ò&ò>ò!ò#ò$ò#òò$ó%r!rGcó@—g}|D]}|j|dd«Œ|S)zConvert a 4-tuple 'help_options' list as found in various command classes to the 3-tuple form required by FancyGetopt. ré)rÝ)r@Ú new_optionsÚ help_tuples rrârâs-€ð€KÛˆ Ø×ј: a¨˜?Õ+ðà Ðr!)!rRrerŒÚrer˜ržrÆÚemailrrcrÚerrorsrrrrÚ fancy_getoptr r Úutilr r r Ú_logrÚdebugrÚcompilerÚr r#rGrârr!rÚrÎs’ðñó  Û Û ÛÛÛÝ#ðÛ÷ó÷ 9ß9Ñ9ÝÝð ˆR�Z‰ZÐ4Ó 5€ ò ÷F ñF ÷`x%ñx%óvøð_'òØ‚Hðús¢A=Á=BÂB