B  I i)[4öã@sndZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z dd„Z dd„Z e ƒdS)aœ Freeze a Python script into a binary. usage: freeze [options...] script [module]... Options: -p prefix: This is the prefix used when you ran ``make install'' in the Python build directory. (If you never ran this, freeze won't work.) The default is whatever sys.prefix evaluates to. It can also be the top directory of the Python source tree; then -P must point to the build tree. -P exec_prefix: Like -p but this is the 'exec_prefix', used to install objects etc. The default is whatever sys.exec_prefix evaluates to, or the -p argument if given. If -p points to the Python source tree, -P must point to the build tree, if different. -e extension: A directory containing additional .o files that may be used to resolve modules. This directory should also have a Setup file describing the .o files. On Windows, the name of a .INI file describing one or more extensions is passed. More than one -e option may be given. -o dir: Directory where the output files are created; default '.'. -m: Additional arguments are module names instead of filenames. -a package=dir: Additional directories to be added to the package's __path__. Used to simulate directories added by the package at runtime (eg, by OpenGL and win32com). More than one -a option may be given for each package. -l file: Pass the file to the linker (windows only) -d: Debugging mode for the module finder. -q: Make the module finder totally quiet. -h: Print this help message. -x module Exclude the specified module. It will still be imported by the frozen binary if it exists on the host system. -X module Like -x, except the module can never be imported by the frozen binary. -E: Freeze will fail if any modules can't be found (that were not excluded using -x or -X). -i filename: Include a file with additional command line options. Used to prevent command lines growing beyond the capabilities of the shell/OS. All arguments specified in filename are read and the -i option replaced with the parsed params (note - quoting args in this file is NOT supported) -s subsystem: Specify the subsystem (For Windows only.); 'console' (default), 'windows', 'service' or 'com_dll' -w: Toggle Windows (NT or 95) behavior. (For debugging only -- on a win32 platform, win32 behavior is automatic.) -r prefix=f: Replace path prefix. Replace prefix with f in the source path references contained in the resulting binary. Arguments: script: The Python script to be executed by the resulting binary. module ...: Additional Python modules (referenced by pathname) that will be included in the resulting binary. These may be .py or .pyc files. If -m is specified, these are module names that are search in the path instead. NOTES: In order to use freeze successfully, you must have built Python and installed it ("make install"). The script should not use modules provided only as shared libraries; if it does, the resulting binary is not self-contained. éNcQ CsŽ d}d}g}g}g}tjdd…}d}d}d}tjdd…dk} g} d} | rb|dddd d d d g}|dd…} d } d}d}d}d}d}x°|ttjƒdkr6tj|dkr,yttj|dƒ ¡ ¡}Wn>tk r}zt dtj|d|fƒWdd}~XYnX|tj||d…<|t|ƒd}|d}qˆWyt   tjdd…d¡\}}Wn6t j k rŒ}zt dt |ƒƒWdd}~XYnXxZ|D]P\}}|dkr¶t tƒdS|dkrÈ|d}|dkrÜ| |¡|dkrêd}|dkrø|}|dkr|}|dkr|}|dkr"d}|dkr2| } |d krN| sJt d!ƒ|}|d"krb| |¡|d#kr€| |¡|  |¡|d$krŽd} |d%kr¢| |¡|d&kr¾tj| d'd¡Ž|d(kr–| d'd¡\}}|  ||f¡q–Wg}x"d)D]}||krö| |¡qöW|s,|r&|}ntj}|s8tj}tj tj |d*d+¡¡}d,tjdd…}ttd-ƒrz|tj} n|} | rˆd.}!|rðt d/ƒ|}"tj |d0¡}#|}$tj |d1d2¡}%tj |d*d3¡}&tj |d¡}'| rjtj |d4¡}(nztj |d5d6|d7| ¡}"tj |d8d6| ¡}#tj |d8d6| ¡}$tj |"d2¡}%tj |"d3¡}&tj |"d¡}'tj |"d9¡}(g})g}*d:|#d:|$g}+|||"|#g},| sœ|,|},xB|,D]:}-tj |-¡sÀt d;|-ƒtj |-¡s¢t d<|-ƒq¢W| rð|)|}.n |%|'g|)}.xB|)D]:}/tj |/¡s t d=|/ƒtj |/¡st d>|/ƒqW| s˜xP|D]H}-tj |-d?¡}0tj |0¡sxt d=|0ƒtj |0¡sLt d>|0ƒqLW|s¦t d@ƒxV|D]N}1|1dkr¼P|rÄPtj |1¡sÞt dA|1ƒtj |1¡s¬t d>|1ƒq¬W|d}2|dd…}3tj |2¡}4tj |4¡\}4}5|4rL|4|2krD|4}n|4dB}| }6|}7|}8|r¾tj |¡s¾yt |¡t dC|ƒWn8tk r¼}zt dD|t |ƒfƒWdd}~XYnXd}4|r"tj |d¡}4tj || ¡} tj ||¡}tj ||¡}tj ||¡}| r"tj ||!¡}!d}9d}:| rxddl };y|; !|¡\}9}:Wn,t"k rv}z t |ƒWdd}~XYnXtj #|2¡}-|-|d<t $|||| ¡}<| r¼|dEkr¼|< %dF¡}=dG|=_&x|D]}=|< '|=¡qÂWxh|3D]`}=|=dkròd}qÜ|r0|=dHd…dIkr$|< '|=ddH…ddJg¡n |< '|=¡n |< (|=¡qÜW|| r¼|< ,¡}?|?r¼t -dO|?¡t. .|4|>||9| ¡}.g}@g}At/|> 0¡ƒ}Bx@|BD]8}=|>|=j1rüqè|>|=j& s|@ |=¡n |A |=¡qèWg}Cg}D|A s>| sº|@ rº| sˆt2 2|A|@|¡\}C}Ex`|ED]$}=|=|Ak r^|A 3|=¡|@ |=¡ q^Wn2ddl4}F|F 2|A||¡}Dx|DD]}=|A 3|=j5¡ q¤W|A rÖtj6 7dPdQ |A¡¡| rbddl };ddl4}F|F 8|!|D¡|&tj | ¡|(tj |!¡g|.}G|F 9dR|G¡}H|D |H¡t|dSƒ }I|; :|It;ƒ|Dtj |¡¡WdQRXdS|@ <¡t|%ƒ,}Jt= |dS¡}It> >|J|I|@¡WdQRXWdQRXdTg}K|*|+}Ltj |"dU¡g}Mi}Ntj |'¡ rút? @|'¡}Ox|OD]}P|O|P|N|P< qäWdQ |K¡|NdV<dQ |L¡|NdW<|7|6g|.|)|C|MdXdYdZg}.t= |dS¡}It: :|I|N|.|8¡WdQRX| r€t d[|dQd\t d]|8ƒn t d^|8ƒdS)_NréÚéÚwinZdosZdospathZmacZmacpathZmacfsZMACFSÚposixzfrozen.czconfig.cza.outZMakefileZconsolez-iz@File name '%s' specified with the -i option can not be read - %sézr:a:dEe:hmo:p:P:qs:wX:x:l:zgetopt error: z-hz-dz-ez-mz-oz-pz-Pz-qz-wz-sz#-s subsystem option only on Windowsz-xz-Xz-Ez-lz-aú=z-r)ZsiteÚwarningszencodings.utf_8zencodings.latin_1ÚPythonzceval.cz%d.%dÚabiflagszfrozen_extensions.cz(Using Python source directory)ZIncludeZModulesz config.c.inz frozenmain.czPc\frozen_dllmain.cÚlibzpython%sz config-%sZincludezfrozen_dllmain.cz-Izneeded directory %s not foundz%s: not a directoryzneeded file %s not foundz%s: not a plain fileZSetupz'at least one filename argument requiredzargument %s not foundz.binzCreated output directoryz%s: mkdir failed (%s)ZserviceZservicemanagerz dummy.pydéþÿÿÿz.*Ú*zimportlib._bootstrapÚ_frozen_importlibzimportlib._bootstrap_externalÚ_frozen_importlib_externalz"There are some missing modules: %rz$Warning: unknown modules remain: %s ú Ú__main__Úwz$(OPT)z $(LDLIBRARY)ZCFLAGSZCPPFLAGSz $(MODLIBS)z$(LIBS)z $(SYSLIBS)zNow run "make" in)Úendzto build the target:z#Now run "make" to build the target:)AÚsysÚpathÚplatformÚlenÚargvÚopenÚreadÚsplitÚIOErrorÚusageÚgetoptÚerrorÚstrÚprintÚ__doc__ÚappendÚ modulefinderZAddPackagePathÚ exec_prefixÚprefixÚosÚexistsÚjoinÚ version_infoÚhasattrr ÚisdirÚisfileÚbasenameÚsplitextÚmkdirÚOSErrorÚwinmakemakefileZget_custom_entry_pointÚ ValueErrorÚdirnameZ ModuleFinderZ add_moduleÚ__file__Z import_hookZ load_fileÚmodulesZ run_scriptZreportZ any_missingÚexitÚ makefreezeÚsortedÚkeysÚ__code__ÚcheckextensionsÚremoveÚcheckextensions_win32ÚnameÚstderrÚwriteZwrite_extension_tableZ CExtensionÚ makemakefileÚlocalsÚsortÚbkfileÚ makeconfigÚ parsesetupZ getmakevars)Qr'r&Ú extensionsZexcludeZ addn_linkrZmodargsÚdebugZodirrZ replace_pathsZerror_if_any_missingZ fail_importZfrozen_cZconfig_cÚtargetZmakefileZ subsystemÚposZoptionsZwhyZoptsÚargsÚmsgÚoÚaÚfÚrZ implicitsÚmoduleZishomeÚversionZflagged_versionZ extensions_cZbinlibZincldirZ config_h_dirZ config_c_inZ frozenmain_cZ makefile_inZfrozendllmain_cZ supp_sourcesZdefinesZincludesZ check_dirsÚdirÚfilesÚfileZsetupÚargZ scriptfiler7ÚbaseZextZ base_frozen_cZ base_config_cZ base_targetZcustom_entry_pointZpython_entry_is_mainr3ZmfÚmodÚdictZmissingÚbuiltinsÚunknownZmodsZaddfilesZfrozen_extensionsZaddmodsr?ZxtrasZmaindefnZoutfpZinfpZcflagsZcppflagsZlibsZsomevarsZmakevarsÚkey©r_ú8/opt/alt/python37/lib64/python3.7/Tools/freeze/freeze.pyÚmainns( ( "                                            &                          "    racCs2tjt_td|ƒtdtjdƒt d¡dS)NzError:zUse ``%s -h'' for helprr)rrAÚstdoutr"rr8)rNr_r_r`rçs r) r#r%rr(rr=rGr9rCrHrFrarr_r_r_r`ÚWs{