;i@fdZddlZddlZddlmZddlmZejeZ dZ dZ ddZ dS) z< Configure PyInstaller for the current Python installation. N)compat)logctdd}|r=tjtj||} t j|dgt jt jd}n+#t$rtdYdSwxYw | d}n#t$rd }YnwxYwtd |d S) NzTesting UPX availability ...upxz-Vzutf-8)stdinstderrencodingzUPX is not available.Frzversion string unavailablezUPX is available: %sT) loggerdebugospathnormpathjoin subprocess check_outputDEVNULL Exception splitlines IndexError)upx_dirupx_exeoutputversion_strings IC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\PyInstaller/configure.py_check_upx_availabilityrs LL/000GC'""27<<#A#ABB ( dO$%      ,---uu 6**,,Q/ 66656 LL'888 4s$.B $B43B48C C"!C"cd}tjdrtjd}ntjr6tjd}|stjd}ntjr tjd}njtjd}|stjd}tjd}|stjd}tj|d }|rtj|stj|d }tj|rgtj |}tj|stj |tj |||S) NPYINSTALLER_CONFIG_DIR LOCALAPPDATAz~\Application Dataz~/Library/Application Support XDG_DATA_HOMEz~/.local/shareXDG_CACHE_HOMEz~/.cache pyinstaller) rgetenvis_winr r expanduser is_darwinrexistsdirnamemakedirsrename) old_cache_dir cache_dir parent_dirs r_get_pyinstaller_cache_dirr-5sM }-..7M":;;  7M.11  B**+@AAI   7G&&'FGG  o66  AG../?@@MM"233  7**:66I Y 66I0RW^^I660 ]MBB 7>>- ( ( 033J7>>*-- ( J''' ImY / / / c~i}t|d<||d<t|}|rtjs tjrt dn[tj dddkrt dnd}t d||d <|S) Ncachedirrz>UPX is available and will be used if enabled on build targets.PYINSTALLER_FORCE_UPX0zcUPX is available and force-enabled on platform with known compatibility problems - use at own risk!FzTUPX is available but is disabled on non-Windows due to known compatibility problems. upx_available) r-rrr# is_cygwinr infor environgetwarning)rconfigr3s r get_configr:Ss F355F:F9,G44M p = pF, p KKX Y Y Y Y Z^^3S 9 9S @ @ NNu    "M KKn o o o+F? Mr.)N) __doc__r r PyInstallerrrlogging getLogger__name__r rr-r:r.rrAs &&&&&&  8 $ $:<r.