$96 GRAYBYTE WORDPRESS FILE MANAGER $88

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python311/lib/python3.11/site-packages/setuptools/__pycache__/

HOME
Current File : /opt/alt/python311/lib/python3.11/site-packages/setuptools/__pycache__//msvc.cpython-311.pyc
�

,�Rel����dZddlZddlmZddlmZmZddlmZm	Z	m
Z
mZddlZddl
Z
ddlZddlZddlZddlZddlmZddlmZdd	lmZej��d
krddlZddlmZnGd�d
��Ze��Zd�Zd�Zddddd�Zd�Z d�Z!d�Z"d�Z#d#d�Z$Gd�d��Z%Gd�d��Z&Gd�d ��Z'Gd!�d"��Z(dS)$a�
Improved support for Microsoft Visual C++ compilers.

Known supported compilers:
--------------------------
Microsoft Visual C++ 14.X:
    Microsoft Visual C++ Build Tools 2015 (x86, x64, arm)
    Microsoft Visual Studio Build Tools 2017 (x86, x64, arm, arm64)
    Microsoft Visual Studio Build Tools 2019 (x86, x64, arm, arm64)

This may also support compilers shipped with compatible Visual Studio versions.
�N)�open)�listdir�pathsep)�join�isfile�isdir�dirname)�
LegacyVersion)�unique_everseen�)�
get_unpatched�Windows)�environc��eZdZdZdZdZdZdS)�winregN)�__name__�
__module__�__qualname__�
HKEY_USERS�HKEY_CURRENT_USER�HKEY_LOCAL_MACHINE�HKEY_CLASSES_ROOT����/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/msvc.pyrr#s'�������
� ��!�� ���rrc�,�	tjtjddtjtjz��}n#t
$rYdSwxYwd}d}|5t
j��D]�}	tj||��\}}}n#t
$rYnkwxYw|rd|tj	krTt|��rE	tt|����}n#ttf$rY��wxYw|dkr
||kr||}}��ddd��n#1swxYwY||fS)�0Python 3.8 "distutils/_msvccompiler.py" backportz'Software\Microsoft\VisualStudio\SxS\VC7r�NNN�)r�OpenKeyr�KEY_READ�KEY_WOW64_32KEY�OSError�	itertools�count�	EnumValue�REG_SZr�int�float�
ValueError�	TypeError)�key�best_version�best_dir�i�v�vc_dir�vt�versions        r�_msvc14_find_vc2015r4,s�����n��%�6�
��O�f�4�4�	
�
���������z�z������L��H�	�=�=���"�"�	=�	=�A�
� &� 0��a� 8� 8�
��6�2�2���
�
�
����
�����
=�R�6�=�(�(�U�6�]�]�(��!�%��(�(�m�m�G�G��"�I�.�����H������b�=�=�W�|�%;�%;�-4�f�(�L��=�=�=�=�=�=�=�=�=�=�=����=�=�=�=���!�!si�8;�
A	�A	�D�)B�D�
B�
D�B�$D�6C�D�C'�$D�&C'�'D�D�Dc��tjd��ptjd��}|sdS	tjt	|ddd��ddd	d
dd
dd
dddg���dd������}n##tjttf$rYdSwxYwt	|ddd��}t|��rd|fSdS)a�Python 3.8 "distutils/_msvccompiler.py" backport

    Returns "15, path" based on the result of invoking vswhere.exe
    If no install is found, returns "None, None"

    The version is returned to avoid unnecessarily changing the function
    result. It may be ignored when the path is not None.

    If vswhere.exe is not available, by definition, VS 2017 is not
    installed.
    �ProgramFiles(x86)�ProgramFilesrzMicrosoft Visual Studio�	Installerzvswhere.exez-latestz-prereleasez-requiresAnyz	-requiresz1Microsoft.VisualStudio.Component.VC.Tools.x86.x64z)Microsoft.VisualStudio.Workload.WDExpressz	-property�installationPathz	-products�*�mbcs�strict)�encoding�errors�VC�	Auxiliary�Build�)r�get�
subprocess�check_outputr�decode�strip�CalledProcessErrorr#�UnicodeDecodeErrorr)�root�paths  r�_msvc14_find_vc2017rLJs����;�*�+�+�J�w�{�>�/J�/J�D����z���&���0�+�}�M�M�����L��D��+���	(
�	�	��6�6�(�6�3�3�E�E�G�G�	
���
�)�7�4F�G�����z�z�������d�K��1�1�D��T�{�{���4�x���:s�AB�B&�%B&�x86�x64�arm�arm64)rM�	x86_amd64�x86_arm�	x86_arm64c���t��\}}d}|tvrt|}nd|vrdnd}|rYt|ddddd|d	d
�	�	}	ddl}|�|d�
��d}n#tt
tf$rd}YnwxYw|s&t��\}}|rt|d|dd
��}|sdSt|d��}t|��sdS|rt|��sd}||fS)rN�amd64rNrMz..�redist�MSVCz**zMicrosoft.VC14*.CRTzvcruntime140.dllrT)�	recursive���zMicrosoft.VC140.CRTrz
vcvarsall.bat)	rL�PLAT_SPEC_TO_RUNTIMEr�glob�ImportErrorr#�LookupErrorr4r)	�	plat_spec�_r.�	vcruntime�vcruntime_plat�vcredistr[r-�	vcvarsalls	         r�_msvc14_find_vcvarsallrdws]��%�'�'�K�A�x��I��(�(�(�-�i�8���")�Y�"6�"6���E������$��h���&�(=�*�,�,��	��K�K�K��	�	�(�d�	�;�;�B�?�I�I���W�k�2�	�	�	��I�I�I�	�����H�!4�!6�!6���h��	H��X�x��2�4F�H�H�I����z��X��/�/�I��)�����z���F�9�-�-���	��i��s�
!A/�/B�
Bc�J�dtvrd�tj��D��St|��\}}|stj�d���	t
jd�||��tj	����
dd���}nO#tj$r=}tj�d	�|j����|�d
}~wwxYwd�d�|�
��D��D��}|r||d
<|S)r�DISTUTILS_USE_SDKc�>�i|]\}}|���|��Sr��lower)�.0r,�values   r�
<dictcomp>z&_msvc14_get_vc_env.<locals>.<dictcomp>�s6��
�
�
���U�
�I�I�K�K��
�
�
rzUnable to find vcvarsall.batzcmd /u /c "{}" {} && set)�stderrzutf-16le�replace)r>zError executing {}Nc�H�i|]\}}}|�|�
|���|�� Srrh)rjr,r_rks    rrlz&_msvc14_get_vc_env.<locals>.<dictcomp>�sH������C��E��	��	��	�	���U���rc3�@K�|]}|�d��V��dS)�=N)�	partition)rj�lines  r�	<genexpr>z%_msvc14_get_vc_env.<locals>.<genexpr>�s.����:�:������	�	�:�:�:�:�:�:r�py_vcruntime_redist)r�itemsrd�	distutilsr>�DistutilsPlatformErrorrDrE�format�STDOUTrFrH�cmd�
splitlines)r^rcr`�out�exc�envs      r�_msvc14_get_vc_envr��sb���g�%�%�
�
�%�m�o�o�
�
�
�	
�
2�)�<�<��I�y��
���5�5�*�
�
�	
���%�&�-�-�i��C�C��$�
�
�
��&��I�&�
.�
.�	����(������5�5� �'�'���0�0�
�
��	���������
��	;�:����)9�)9�:�:�:����C��/�%.��!�"��Js�A	B%�%C1�48C,�,C1c�|�	t|��S#tjj$r}t	|d���d}~wwxYw)a*
    Patched "distutils._msvccompiler._get_vc_env" for support extra
    Microsoft Visual C++ 14.X compilers.

    Set environment without use of "vcvarsall.bat".

    Parameters
    ----------
    plat_spec: str
        Target architecture.

    Return
    ------
    dict
        environment
    �,@N)r�rwr>rx�_augment_exception)r^r~s  r�msvc14_get_vc_envr��sM��&�!�)�,�,�,����2�����3��%�%�%�
��������s��;�6�;c���dtjvr@ddl}t|j��td��kr|jjj|i|��Stt��|i|��S)z�
    Patched "distutils._msvccompiler.gen_lib_options" for fix
    compatibility between "numpy.distutils" and "distutils._msvccompiler"
    (for Numpy < 1.11.2)
    znumpy.distutilsrNz1.11.2)
�sys�modules�numpyr
�__version__rw�	ccompiler�gen_lib_optionsr
�msvc14_gen_lib_options)�args�kwargs�nps   rr�r��su���C�K�'�'��������(�(�=��+B�+B�B�B�9�2�<�)�9�4�J�6�J�J�J�0�=�/�0�0�$�A�&�A�A�Ar�c�z�|jd}d|���vsd|���vryd}|jdit����}d}|dkr7|����d��dkr|d	z
}n%|d
z
}n|dkr|dz
}||d
zz
}n|dkr|dz
}|f|_dS)zl
    Add details to the exception message to help guide the user
    as to what action will resolve it.
    rrczvisual cz;Microsoft Visual C++ {version:0.1f} or greater is required.z-www.microsoft.com/download/details.aspx?id=%d�"@�ia64rYz( Get it with "Microsoft Windows SDK 7.0"z% Get it from http://aka.ms/vcpython27�$@z* Get it with "Microsoft Windows SDK 7.1": iW r�zd Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/Nr)r�riry�locals�find)r~r3�arch�message�tmpl�
msdownloads      rr�r��s����h�q�k�G��g�m�m�o�o�%�%��w�}�}���)F�)F�L���$�+�)�)����)�)��D�
��c�>�>��z�z�|�|� � ��(�(�2�-�-��E�E���
�B�B���
��_�_��C�C�G��z�D�(�(�G�G�
��_�_��4�
5�G��{�C�H�H�Hrc��eZdZdZejdd�����Zd�Ze	d���Z
d�Zd�Zd
d	�Z
d
d
�Zdd�ZdS)�PlatformInfoz�
    Current and Target Architectures information.

    Parameters
    ----------
    arch: str
        Target architecture.
    �processor_architecturer�c�`�|����dd��|_dS)NrNrU)rirnr�)�selfr�s  r�__init__zPlatformInfo.__init__s%���J�J�L�L�(�(���8�8��	�	�	rc�V�|j|j�d��dzd�S)zs
        Return Target CPU architecture.

        Return
        ------
        str
            Target CPU
        r_rN)r�r��r�s r�
target_cpuzPlatformInfo.target_cpus*���y������,�,�q�0�1�1�2�2rc��|jdkS)z�
        Return True if target CPU is x86 32 bits..

        Return
        ------
        bool
            CPU is x86 32 bits
        rM�r�r�s r�
target_is_x86zPlatformInfo.target_is_x86(s����%�'�'rc��|jdkS)z�
        Return True if current CPU is x86 32 bits..

        Return
        ------
        bool
            CPU is x86 32 bits
        rM��current_cpur�s r�current_is_x86zPlatformInfo.current_is_x863s����5�(�(rFc�R�|jdkr|rdn|jdkr|rdn	d|jzS)uk
        Current platform specific subfolder.

        Parameters
        ----------
        hidex86: bool
            return '' and not '†' if architecture is x86.
        x64: bool
            return 'd' and not 'md64' if architecture is amd64.

        Return
        ------
        str
            subfolder: '	arget', or '' (see hidex86 parameter)
        rMr�rU�\x64�\%sr��r��hidex86rNs   r�current_dirzPlatformInfo.current_dir>sB��"�#�u�,�,��,�B�B��(�G�3�3��3�G�G��T�%�%�	
rc�R�|jdkr|rdn|jdkr|rdn	d|jzS)ar
        Target platform specific subfolder.

        Parameters
        ----------
        hidex86: bool
            return '' and not '\x86' if architecture is x86.
        x64: bool
            return '\x64' and not '\amd64' if architecture is amd64.

        Return
        ------
        str
            subfolder: '\current', or '' (see hidex86 parameter)
        rMr�rUr�r�r�r�s   r�
target_dirzPlatformInfo.target_dirTs?��"�?�e�+�+��+�B�B���7�2�2�s�2�G�G��T�_�$�	
rc��|rdn|j}|j|krdn*|����dd|z��S)ap
        Cross platform specific subfolder.

        Parameters
        ----------
        forcex86: bool
            Use 'x86' as current architecture even if current architecture is
            not x86.

        Return
        ------
        str
            subfolder: '' if target architecture is current architecture,
            '\current_target' if not.
        rMr��\z\%s_)r�r�r�rn)r��forcex86�currents   r�	cross_dirzPlatformInfo.cross_dirjsM�� $�9�%�%��)9���/�W�,�,�B�B��O�O���%�%�d�G�g�,=�>�>�	
rN)FF�F)rrr�__doc__rrCrir�r��propertyr�r�r�r�r�r�rrrr�r�s����������'�+�6��;�;�A�A�C�C�K�9�9�9��	3�	3��X�	3�	(�	(�	(�	)�	)�	)�
�
�
�
�,
�
�
�
�,
�
�
�
�
�
rr�c� �eZdZdZejejejejfZ	d�Z
ed���Zed���Z
ed���Zed���Zed���Zed���Zed	���Zed
���Zed���Zdd
�Zd�ZdS)�RegistryInfoz�
    Microsoft Visual Studio related registry information.

    Parameters
    ----------
    platform_info: PlatformInfo
        "PlatformInfo" instance.
    c��||_dS�N)�pi)r��
platform_infos  rr�zRegistryInfo.__init__�s
������rc��dS)z�
        Microsoft Visual Studio root registry key.

        Return
        ------
        str
            Registry key
        �VisualStudiorr�s r�visualstudiozRegistryInfo.visualstudio�s	���~rc�,�t|jd��S)z
        Microsoft Visual Studio SxS registry key.

        Return
        ------
        str
            Registry key
        �SxS)rr�r�s r�sxszRegistryInfo.sxs�s���D�%�u�-�-�-rc�,�t|jd��S)z|
        Microsoft Visual C++ VC7 registry key.

        Return
        ------
        str
            Registry key
        �VC7�rr�r�s r�vczRegistryInfo.vc�����D�H�e�$�$�$rc�,�t|jd��S)z
        Microsoft Visual Studio VS7 registry key.

        Return
        ------
        str
            Registry key
        �VS7r�r�s r�vszRegistryInfo.vs�r�rc��dS)z�
        Microsoft Visual C++ for Python registry key.

        Return
        ------
        str
            Registry key
        zDevDiv\VCForPythonrr�s r�
vc_for_pythonzRegistryInfo.vc_for_python�s
��%�$rc��dS)zq
        Microsoft SDK registry key.

        Return
        ------
        str
            Registry key
        zMicrosoft SDKsrr�s r�
microsoft_sdkzRegistryInfo.microsoft_sdk�s
�� �rc�,�t|jd��S)z�
        Microsoft Windows/Platform SDK registry key.

        Return
        ------
        str
            Registry key
        r�rr�r�s r�windows_sdkzRegistryInfo.windows_sdk�s���D�&�	�2�2�2rc�,�t|jd��S)z�
        Microsoft .NET Framework SDK registry key.

        Return
        ------
        str
            Registry key
        �NETFXSDKr�r�s r�	netfx_sdkzRegistryInfo.netfx_sdk�s���D�&�
�3�3�3rc��dS)z�
        Microsoft Windows Kits Roots registry key.

        Return
        ------
        str
            Registry key
        zWindows Kits\Installed Rootsrr�s r�windows_kits_rootszRegistryInfo.windows_kits_roots�s
��/�.rFc�d�|j���s|rdnd}td|d|��S)a
        Return key in Microsoft software registry.

        Parameters
        ----------
        key: str
            Registry key path where look.
        x86: str
            Force x86 software registry.

        Return
        ------
        str
            Registry key
        r��Wow6432Node�Software�	Microsoft)r�r�r)r�r,rM�node64s    r�	microsoftzRegistryInfo.microsoft�s9�� �w�-�-�/�/�I�3�I���M���J���S�9�9�9rc	�:�tj}tj}tj}|j}|jD]�}d}	||||��d|��}nd#ttf$rP|j�	��s2	||||d��d|��}n#ttf$rYY�uwxYwY�{YnwxYw	tj
||��d|r||��cScS#ttf$rYnwxYw	|r||����#|r||��wwxYwdS)a
        Look for values in registry in Microsoft software registry.

        Parameters
        ----------
        key: str
            Registry key path where look.
        name: str
            Value name to find.

        Return
        ------
        str
            value
        NrT)rr!r �CloseKeyr��HKEYSr#�IOErrorr�r��QueryValueEx)	r�r,�name�key_read�openkey�closekey�ms�hkey�bkeys	         r�lookupzRegistryInfo.lookups��� �?���.���?��
�^���J�	#�	#�D��D�	
��w�t�R�R��W�W�a��:�:�����W�%�
�
�
��w�-�-�/�/��!�&�w�t�R�R��T�]�]�A�x�H�H����#�W�-�!�!�!� ���!�����H�	��
����
#��*�4��6�6�q�9��#��H�T�N�N�N�N�N�N�#�#�#���W�%�
�
�
���
������#��H�T�N�N�N����#��H�T�N�N�N�N�#����#	#�	#sY�A�*B1�;B�B1�B)�%B1�(B)�)B1�0B1�5C"�"C6�3D�5C6�6D�DNr�)rrrr�rrrrrr�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr�r��sd���������
�
�
%�
�
&�
�
%�
'�E�
 � � ��	�	��X�	��	.�	.��X�	.��	%�	%��X�	%��	%�	%��X�	%��	%�	%��X�	%��	 �	 ��X�	 ��	3�	3��X�	3��	4�	4��X�	4��	/�	/��X�	/�:�:�:�:�&&#�&#�&#�&#�&#rr�c��eZdZdZejdd��Zejdd��Zejde��Zdd�Z	d�Z
d	�Zd
�Ze
d���Zed���Zed
���Zd�Zd�Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Z d�Z!e
d d���Z"dS)!�
SystemInfoz�
    Microsoft Windows and Visual Studio related system information.

    Parameters
    ----------
    registry_info: RegistryInfo
        "RegistryInfo" instance.
    vc_ver: float
        Required Microsoft Visual C++ version.
    �WinDirr�r7r6Nc��||_|jj|_|���|_|p|���x|_|_dSr�)�rir��find_programdata_vs_vers�known_vs_paths�_find_latest_available_vs_ver�vs_ver�vc_ver)r��
registry_infor�s   rr�zSystemInfo.__init__LsO������'�*���"�;�;�=�=���
�:�d�8�8�:�:�	<���d�k�k�krc��|���}|s&|jstj�d���t|��}|�|j��t|��dS)zm
        Find the latest VC version

        Return
        ------
        float
            version
        z%No Microsoft Visual C++ version foundrY)�find_reg_vs_versr�rwr>rx�set�update�sorted)r��reg_vc_vers�vc_verss   rr�z(SystemInfo._find_latest_available_vs_verVsz���+�+�-�-���	9�t�2�	9��"�9�9�7�9�9�
9��k�"�"�����t�*�+�+�+��g���r�"�"rc
��|jj}|jj|jj|jjf}g}tj|jj|��D�]~\}}	tj	|||��dtj
��}n#ttf$rY�EwxYw|5tj
|��\}}}	t|��D]t}
tjt"��5t%tj||
��d��}||vr|�|��ddd��n#1swxYwY�ut|��D]n}
tjt"��5t%tj||
����}||vr|�|��ddd��n#1swxYwY�o	ddd��n#1swxYwY���t-|��S)z�
        Find Microsoft Visual Studio versions available in registry.

        Return
        ------
        list of float
            Versions
        rN)r�r�r�r�r�r$�productr�rr r!r#r��QueryInfoKey�range�
contextlib�suppressr*r)r&�append�EnumKeyr�)r�r��vckeys�vs_versr�r,r��subkeys�valuesr_r/�vers            rr�zSystemInfo.find_reg_vs_versis����W�
���'�*�d�g�3�T�W�Z�@����"�*�4�7�=�&�A�A�	0�	0�I�D�#�
��~�d�B�B�s�G�G�Q���H�H�����W�%�
�
�
���
�����
0�
0�%+�%8��%>�%>�"�����v���0�0�A�#�,�Z�8�8�0�0�#�F�$4�T�1�$=�$=�a�$@�A�A���g�-�-�#�N�N�3�/�/�/�0�0�0�0�0�0�0�0�0�0�0����0�0�0�0���w���0�0�A�#�,�Z�8�8�0�0�#�F�N�4��$;�$;�<�<���g�-�-�#�N�N�3�/�/�/�0�0�0�0�0�0�0�0�0�0�0����0�0�0�0��0�
0�
0�
0�
0�
0�
0�
0�
0�
0�
0�
0����
0�
0�
0�
0���g���sn�*B�B�B�AG�AD-	�!G�-D1
�1G�4D1
�5.G�#<F+	�G�+F/
�/G�2F/
�3G�G	�G	c���i}d}	t|��}n#ttf$r|cYSwxYw|D]�}	t||d��}t	|dd���5}tj|��}ddd��n#1swxYwY|d}tt|d����|||�|d	��<��#tttf$rY��wxYw|S)
z�
        Find Visual studio 2017+ versions from information in
        "C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances".

        Return
        ------
        dict
            float version as key, path as value.
        z9C:\ProgramData\Microsoft\VisualStudio\Packages\_Instancesz
state.json�rtzutf-8)r=Nr9�
VC\Tools\MSVC�installationVersion)	rr#r�rr�json�load�_as_float_version�KeyError)	r��vs_versions�
instances_dir�hashed_namesr��
state_path�
state_file�state�vs_paths	         rr�z#SystemInfo.find_programdata_vs_vers�st����H�	�	�"�=�1�1�L�L����!�	�	�	�����	����!�	�	�D�
�!�-��|�D�D�
��*�d�W�=�=�=�2�� �I�j�1�1�E�2�2�2�2�2�2�2�2�2�2�2����2�2�2�2�� 2�3����W�&6�7�7�8�8�8�6=��D�2�2��/�0�2�2�3�3���W�h�/�
�
�
���
�����sB��,�,�#C�A8�,C�8A<	�<C�?A<	�AC�C!� C!c�|�td�|�d��dd�����S)z�
        Return a string version as a simplified float version (major.minor)

        Parameters
        ----------
        version: str
            Version.

        Return
        ------
        float
            version
        �.N�)r)r�split)r3s rrzSystemInfo._as_float_version�s3���S�X�X�g�m�m�C�0�0��!��4�5�5�6�6�6rc��t|jd|jz��}|j�|jjd|jz��p|S)zp
        Microsoft Visual Studio directory.

        Return
        ------
        str
            path
        zMicrosoft Visual Studio %0.1f�%0.1f)r�ProgramFilesx86r�r�r�r�)r��defaults  r�VSInstallDirzSystemInfo.VSInstallDir�sL���t�+�6���D�F�F���w�~�~�d�g�j�'�D�K�*?�@�@�K�G�Krc��|���p|���}t|��s!d}tj�|���|S)zm
        Microsoft Visual C++ directory.

        Return
        ------
        str
            path
        z(Microsoft Visual C++ directory not found)�	_guess_vc�_guess_vc_legacyrrwr>rx)r�rK�msgs   r�VCInstallDirzSystemInfo.VCInstallDir�sS���~�~���:�4�#8�#8�#:�#:���T�{�{�	?�<�C��"�9�9�#�>�>�>��rc�N�|jdkrdS	|j|j}n#t$r
|j}YnwxYwt	|d��}	t|��d}|�|��|_t	||��S#tttf$rYdSwxYw)zl
        Locate Visual C++ for VS2017+.

        Return
        ------
        str
            path
        r�r�rrY)r�r�rr$rrrr�r#r��
IndexError)r��vs_dir�guess_vcr�s    rr&zSystemInfo._guess_vc�s����;�$����2�	'��(���5�F�F���	'�	'�	'��&�F�F�F�	'������ 0�1�1��	��X�&�&�r�*�F��0�0��8�8�D�K���&�)�)�)����*�-�	�	�	��2�2�	���s�"�6�6�
>B	�	B$�#B$c�<�t|jd|jz��}t|jjd|jz��}|j�|d��}|rt|d��n|}|j�|jjd|jz��p|S)z{
        Locate Visual C++ for versions prior to 2017.

        Return
        ------
        str
            path
        z Microsoft Visual Studio %0.1f\VCr!�
installdirr?)rr"r�r�r�r�r�)r�r#�reg_path�	python_vc�
default_vcs     rr'zSystemInfo._guess_vc_legacys����t�+�:�T�[�H�J�J�����-�w���/D�E�E���G�N�N�8�\�:�:�	�.7�D�T�)�T�*�*�*�W�
��w�~�~�d�g�j�'�D�K�*?�@�@�N�J�Nrc��|jdkrdS|jdkrdS|jdkrdS|jdkrdS|jd	krd
SdS)z�
        Microsoft Windows SDK versions for specified MSVC++ version.

        Return
        ------
        tuple of str
            versions
        r�)z7.0z6.1z6.0ar�)z7.1z7.0a�&@)z8.0z8.0a�(@)�8.1z8.1ar�)z10.0r6N�r�r�s r�WindowsSdkVersionzSystemInfo.WindowsSdkVersionsg���;�#���'�'�
�[�D�
 �
 � �=�
�[�D�
 �
 � �=�
�[�D�
 �
 � �=�
�[�D�
 �
 � �=�!�
 rc�R�|�t|jd����S)zt
        Microsoft Windows SDK last version.

        Return
        ------
        str
            version
        �lib)�_use_last_dir_namer�
WindowsSdkDirr�s r�WindowsSdkLastVersionz SystemInfo.WindowsSdkLastVersion-s%���&�&�t�D�,>��'F�'F�G�G�Grc���d}|jD]>}t|jjd|z��}|j�|d��}|rn�?|rt|��sOt|jjd|jz��}|j�|d��}|rt|d��}|rt|��sR|jD]J}|d|�d���}d	|z}t|j	|��}t|��r|}�K|rt|��s5|jD]-}d
|z}t|j	|��}t|��r|}�.|st|j
d��}|S)zn
        Microsoft Windows SDK directory.

        Return
        ------
        str
            path
        r�zv%s�installationfolderr!r/�WinSDKNrzMicrosoft SDKs\Windows Kits\%szMicrosoft SDKs\Windows\v%s�PlatformSDK)r8rr�r�r�rr�r��rfindr7r))r��sdkdirr�locrK�install_base�intver�ds        rr<zSystemInfo.WindowsSdkDir9s������)�	�	�C��t�w�*�E�C�K�8�8�C��W�^�^�C�)=�>�>�F��
���
��	6�U�6�]�]�	6����-�w���/D�E�E�D��7�>�>�$��=�=�L��
6��l�H�5�5���	�U�6�]�]�	��-�
�
���_�c�i�i��n�n�_�-��8�6�A����*�D�1�1����8�8���F���	�U�6�]�]�	��-�
�
��4�s�:����*�D�1�1����8�8���F���	<��$�+�]�;�;�F��
rc���|jdkrd}d}n-d}|jdkrdnd}|j�d|���}d	||�d
d��fz}g}|jdkr)|jD]!}|t|jj||��gz
}�"|jD]$}|t|jj	d
|z|��gz
}�%|D]#}|j�
|d��}|r|cS�$dS)zy
        Microsoft Windows SDK executable directory.

        Return
        ------
        str
            path
        r4�#r��(r5TF)rNr�zWinSDK-NetFx%dTools%sr��-r�zv%sAr?N)r�r�r�rn�NetFxSdkVersionrr�r�r8r�r�)	r��netfxverr�r��fx�regpathsrrK�execpaths	         r�WindowsSDKExecutablePathz#SystemInfo.WindowsSDKExecutablePathds3���;�$����H��D�D��H�"�k�T�1�1�d�d�u�G��7�&�&�4��&�A�A�D�
$��$�,�,�t�S�2I�2I�'J�
J�����;�$����+�
?�
?���T�$�'�"3�S�"�=�=�>�>����)�	F�	F�C���d�g�1�6�C�<��D�D�E�E�H�H��	 �	 �D��w�~�~�d�,@�A�A�H��
 �����
 �	 �	 rc��t|jjd|jz��}|j�|d��pdS)zl
        Microsoft Visual F# directory.

        Return
        ------
        str
            path
        z%0.1f\Setup\F#�
productdirr�)rr�r�r�r�)r�rKs  r�FSharpInstallDirzSystemInfo.FSharpInstallDir�s;���D�G�(�*;�d�k�*I�J�J���w�~�~�d�L�1�1�7�R�7rc��|jdkrdnd}|D]2}|j�|jjd|z��}|r|pdcS�3dS)zt
        Microsoft Universal CRT SDK directory.

        Return
        ------
        str
            path
        r�)�10�81rz
kitsroot%sr�N)r�r�r�r�)r��versrrCs    r�UniversalCRTSdkDirzSystemInfo.UniversalCRTSdkDir�su�� $�{�d�2�2�|�|����	$�	$�C��W�^�^�D�G�$>�$0�3�$6�8�8�F��
$��|��#�#�#�
$�	$�	$rc�R�|�t|jd����S)z�
        Microsoft Universal C Runtime SDK last version.

        Return
        ------
        str
            version
        r:)r;rrYr�s r�UniversalCRTSdkLastVersionz%SystemInfo.UniversalCRTSdkLastVersion�s%���&�&�t�D�,C�U�'K�'K�L�L�Lrc� �|jdkrdndS)z�
        Microsoft .NET Framework SDK versions.

        Return
        ------
        tuple of str
            versions
        r�)	z4.7.2z4.7.1z4.7z4.6.2z4.6.1z4.6z4.5.2z4.5.1z4.5rr7r�s rrLzSystemInfo.NetFxSdkVersion�s%���;�$�&�&�*�*�-/�	0rc��d}|jD];}t|jj|��}|j�|d��}|rn�<|S)zu
        Microsoft .NET Framework SDK directory.

        Return
        ------
        str
            path
        r��kitsinstallationfolder)rLrr�r�r�)r�rCrrDs    r�NetFxSdkDirzSystemInfo.NetFxSdkDir�s\�����'�	�	�C��t�w�(�#�.�.�C��W�^�^�C�)A�B�B�F��
���
��
rc�z�t|jd��}|j�|jjd��p|S)zw
        Microsoft .NET Framework 32bit directory.

        Return
        ------
        str
            path
        zMicrosoft.NET\Framework�frameworkdir32�rr�r�r�r��r��guess_fws  r�FrameworkDir32zSystemInfo.FrameworkDir32�s8�����%?�@�@���w�~�~�d�g�j�*:�;�;�G�x�Grc�z�t|jd��}|j�|jjd��p|S)zw
        Microsoft .NET Framework 64bit directory.

        Return
        ------
        str
            path
        zMicrosoft.NET\Framework64�frameworkdir64rbrcs  r�FrameworkDir64zSystemInfo.FrameworkDir64�s8�����%A�B�B���w�~�~�d�g�j�*:�;�;�G�x�Grc�,�|�d��S)z�
        Microsoft .NET Framework 32bit versions.

        Return
        ------
        tuple of str
            versions
        � ��_find_dot_net_versionsr�s r�FrameworkVersion32zSystemInfo.FrameworkVersion32�����*�*�2�.�.�.rc�,�|�d��S)z�
        Microsoft .NET Framework 64bit versions.

        Return
        ------
        tuple of str
            versions
        �@rkr�s r�FrameworkVersion64zSystemInfo.FrameworkVersion64rnrc�d�|j�|jjd|z��}t|d|z��}|p|�|d��pd}|jdkr|dfS|jdkr&|���dd	�d
krdn|dfS|jd
krdS|jdkrdSdS)z�
        Find Microsoft .NET Framework versions.

        Parameters
        ----------
        bits: int
            Platform number of bits: 32 or 64.

        Return
        ------
        tuple of str
            versions
        zframeworkver%dzFrameworkDir%dr0r�r5zv4.0r�Nr�v4z
v4.0.30319�v3.5r�)rt�
v2.0.50727g @)zv3.0ru)r�r�r��getattrr;r�ri)r��bits�reg_ver�dot_net_dirrs     rrlz!SystemInfo._find_dot_net_versionss����'�.�.����-=��-D�E�E���d�$4�t�$;�<�<���H��0�0��c�B�B�H�b���;�$�����;��
�[�D�
 �
 �#&�9�9�;�;�r��r�?�d�#:�#:�<�<��V�K�K�
�[�C�
�
�'�'�
�[�C�
�
�'�'� �
rc�|�����fd�tt�����D��}t|d��pdS)a)
        Return name of the last dir in path or '' if no dir found.

        Parameters
        ----------
        path: str
            Use dirs in this path
        prefix: str
            Use only dirs starting by this prefix

        Return
        ------
        str
            name
        c3��K�|]8}tt�|�����|�����4|V��9dSr�)rr�
startswith)rj�dir_namerK�prefixs  ��rrtz0SystemInfo._use_last_dir_name.<locals>.<genexpr><sg�����
�
���T�$��)�)�*�*�
�
����'�'�	
��
�
�
�
�
�
rNr�)�reversedr�next)rKr~�
matching_dirss`` rr;zSystemInfo._use_last_dir_name+sV����"
�
�
�
�
�$�W�T�]�]�3�3�
�
�
�
��M�4�(�(�.�B�.rr��r�)#rrrr�rrCr�r7r"r�r�r�r��staticmethodrr�r$r)r&r'r8r=r<rQrTrYr[rLr_rerhrmrqrlr;rrrr�r�:s�������	�	��W�[��2�
&�
&�F��7�;�~�r�2�2�L�!�g�k�"5�|�D�D�O�<�<�<�<�#�#�#�&���>(�(�(�T�7�7��\�7� �L�L��X�L� ����X��"���<O�O�O�(�!�!��X�!�(�	H�	H��X�	H��(�(��X�(�T�  �  ��X�  �D�
8�
8��X�
8��$�$��X�$�&�	M�	M��X�	M��
0�
0��X�
0�����X��"�
H�
H��X�
H��
H�
H��X�
H��	/�	/��X�	/��	/�	/��X�	/�(�(�(�:�/�/�/��\�/�/�/rr�c�>�eZdZdZd!d�Zed���Zed���Zed���Zed���Z	ed	���Z
ed
���Zed���Zed���Z
ed
���Zed���Zed���Zd�Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zd"d�Zd �Z dS)#�EnvironmentInfoaY
    Return environment variables for specified Microsoft Visual C++ version
    and platform : Lib, Include, Path and libpath.

    This function is compatible with Microsoft Visual C++ 9.0 to 14.X.

    Script created by analysing Microsoft environment configuration files like
    "vcvars[...].bat", "SetEnv.Cmd", "vcbuildtools.bat", ...

    Parameters
    ----------
    arch: str
        Target architecture.
    vc_ver: float
        Required Microsoft Visual C++ version. If not set, autodetect the last
        version.
    vc_min_ver: float
        Minimum Microsoft Visual C++ version.
    Nrc���t|��|_t|j��|_t	|j|��|_|j|kr!d}tj�	|���dS)Nz.No suitable Microsoft Visual C++ version found)
r�r�r�r�r��sir�rwr>rx)r�r�r��
vc_min_ver�errs     rr�zEnvironmentInfo.__init__]sf���t�$�$����t�w�'�'����T�W�f�-�-����;��#�#�B�C��"�9�9�#�>�>�>�$�#rc��|jjS)zk
        Microsoft Visual Studio.

        Return
        ------
        float
            version
        )r�r�r�s rr�zEnvironmentInfo.vs_verf����w�~�rc��|jjS)zp
        Microsoft Visual C++ version.

        Return
        ------
        float
            version
        )r�r�r�s rr�zEnvironmentInfo.vc_verrr�rc���ddg}�jdkr1�j�dd���}|dgz
}|dgz
}|d|zgz
}�fd	�|D��S)
zu
        Microsoft Visual Studio Tools.

        Return
        ------
        list of str
            paths
        zCommon7\IDEz
Common7\Toolsr�T�r�rNz1Common7\IDE\CommonExtensions\Microsoft\TestWindowzTeam Tools\Performance ToolszTeam Tools\Performance Tools%sc�D��g|]}t�jj|����Sr�rr�r$�rjrKr�s  �r�
<listcomp>z+EnvironmentInfo.VSTools.<locals>.<listcomp>��(���C�C�C�T��T�W�)�4�0�0�C�C�Cr)r�r�r�)r��paths�arch_subdirs`  r�VSToolszEnvironmentInfo.VSTools~s���� �!1�2���;�$����'�-�-�d��-�E�E�K��J�K�K�E��5�6�6�E��7�+�E�F�F�E�C�C�C�C�U�C�C�C�Crc�j�t|jjd��t|jjd��gS)z�
        Microsoft Visual C++ & Microsoft Foundation Class Includes.

        Return
        ------
        list of str
            paths
        �IncludezATLMFC\Include�rr�r)r�s r�
VCIncludeszEnvironmentInfo.VCIncludes�s3���T�W�)�9�5�5��T�W�)�+<�=�=�?�	?rc�����jdkr�j�d���}n�j�d���}d|zd|zg}�jdkr	|d|zgz
}�fd	�|D��S)
z�
        Microsoft Visual C++ & Microsoft Foundation Class Libraries.

        Return
        ------
        list of str
            paths
        �.@T�rN�r��Lib%szATLMFC\Lib%sr�zLib\store%sc�D��g|]}t�jj|����Srr�r�s  �rr�z/EnvironmentInfo.VCLibraries.<locals>.<listcomp>�r�r)r�r�r�)r�r�r�s`  r�VCLibrarieszEnvironmentInfo.VCLibraries�s�����;�$����'�,�,��,�6�6�K�K��'�,�,�T�,�:�:�K��;�&��+�(E�F���;�$����n�{�2�3�3�E�C�C�C�C�U�C�C�C�Crc�R�|jdkrgSt|jjd��gS)z�
        Microsoft Visual C++ store references Libraries.

        Return
        ------
        list of str
            paths
        r�zLib\store\references)r�rr�r)r�s r�VCStoreRefszEnvironmentInfo.VCStoreRefs�s/���;�����I��T�W�)�+B�C�C�D�Drc���|j}t|jd��g}|jdkrdnd}|j�|��}|r|t|jd|z��gz
}|jdkr8d|j�d���z}|t|j|��gz
}n�|jdkr�|j���rd	nd
}|t|j||j�d���z��gz
}|jj	|jj
kr5|t|j||j�d���z��gz
}n|t|jd��gz
}|S)
zr
        Microsoft Visual C++ Tools.

        Return
        ------
        list of str
            paths
        �
VCPackagesr�TF�Bin%sr�r�r�z
bin\HostX86%sz
bin\HostX64%sr��Bin)r�rr)r�r�r�r�r�r�r�r�)r�r��toolsr�r�rK�host_dirs       r�VCToolszEnvironmentInfo.VCTools�s����W���b�o�|�4�4�5���;�$�.�.�4�4�E���g�'�'��1�1���	D��d�2�?�G�k�,A�B�B�C�C�E��;�$����T�W�0�0��0�>�>�>�D��d�2�?�D�1�1�2�2�E�E�
�[�D�
 �
 �,0�G�,B�,B�,D�,D�)�(�(�(�
��d����D�G�,>�,>�4�,>�,H�,H�!H�J�J�K�
K�E��w�"�d�g�&8�8�8��$��O�X���0C�0C��0C�0M�0M�%M�O�O�P�P���
�d�2�?�E�2�2�3�3�E��rc�0�|jdkr:|j�dd���}t|jjd|z��gS|j�d���}t|jjd��}|j}t||�d|����gS)zw
        Microsoft Windows SDK Libraries.

        Return
        ------
        list of str
            paths
        r�Tr�r�r�r:�um)r�r�r�rr�r<�_sdk_subdir)r�r�r:�libvers    r�OSLibrarieszEnvironmentInfo.OSLibraries�s����;�$����'�,�,�T�t�,�D�D�K����.��+�0E�F�F�G�G��'�,�,��,�6�6�K��t�w�,�e�4�4�C��%�F���&�&�&�+�+�>�?�?�@�@rc�
�t|jjd��}|jdkr|t|d��gS|jdkr|j}nd}t|d|z��t|d|z��t|d|z��gS)	zu
        Microsoft Windows SDK Include.

        Return
        ------
        list of str
            paths
        �includer��glr�r�z%ssharedz%sumz%swinrt)rr�r<r�r�)r�r��sdkvers   r�
OSIncludeszEnvironmentInfo.OSIncludes�s����t�w�,�i�8�8���;�$����T�'�4�0�0�1�1��{�d�"�"��)�������*�v�"5�6�6���&�6�/�2�2���)�f�"4�5�5�7�
7rc��t|jjd��}g}|jdkr
||jz
}|jdkr|t|d��gz
}|jdkru||t|jjd��t|dd��t|d	d��t|d
d��t|jjddd
|jzddd��gz
}|S)z}
        Microsoft Windows SDK Libraries Paths.

        Return
        ------
        list of str
            paths
        �
Referencesr�r4zCommonConfiguration\Neutralr��
UnionMetadataz'Windows.Foundation.UniversalApiContractz1.0.0.0z%Windows.Foundation.FoundationContractz,Windows.Networking.Connectivity.WwanContract�
ExtensionSDKszMicrosoft.VCLibsr!�CommonConfiguration�neutral)rr�r<r�r�)r��ref�libpaths   r�	OSLibpathzEnvironmentInfo.OSLibpaths����4�7�(�,�7�7�����;�#����t�'�'�G��;�$�����S�"@�A�A�B�B�G��;�$������T�W�*�O�<�<���B�I�O�O��S�A�9�M�M���G������G�)�?�<N��d�k�)�<�9N����
�

�G��rc�D�t|�����S)zs
        Microsoft Windows SDK Tools.

        Return
        ------
        list of str
            paths
        )�list�
_sdk_toolsr�s r�SdkToolszEnvironmentInfo.SdkTools7s���D�O�O�%�%�&�&�&rc#��K�|jdkr+|jdkrdnd}t|jj|��V�|j���s<|j�d���}d|z}t|jj|��V�|jdvrZ|j���rd	}n|j�dd�
��}d|z}t|jj|��V�nb|jdkrWt|jjd��}|j�d���}|jj}t||�|����V�|jj	r|jj	V�dSdS)
z�
        Microsoft Windows SDK Tools paths generator.

        Return
        ------
        generator of str
            paths
        r�r4r�zBin\x86Tr�r�)r�r4r�r�zBin\NETFX 4.0 Tools%sN)
r�rr�r<r�r�r�r�r=rQ)r��bin_dirr�rKr�s     rr�zEnvironmentInfo._sdk_toolsCs������;����#�{�d�2�2�e�e�
�G��t�w�,�g�6�6�6�6�6��w�%�%�'�'�	4��'�-�-�$�-�7�7�K��[�(�D��t�w�,�d�3�3�3�3�3��;�,�&�&��w�$�$�&�&�
J� ���"�g�1�1�$�D�1�I�I��+�k�9�D��t�w�,�d�3�3�3�3�3�3�
�[�D�
 �
 ����-�u�5�5�D��'�-�-�$�-�7�7�K��W�2�F��t�v�v�{�{�;�<�<�<�<�<��7�+�	3��'�2�2�2�2�2�2�	3�	3rc�,�|jj}|rd|zndS)zu
        Microsoft Windows SDK version subdir.

        Return
        ------
        str
            subdir
        �%s\r�)r�r=�r��ucrtvers  rr�zEnvironmentInfo._sdk_subdirfs#���'�/��%,�4��� � �"�4rc�R�|jdkrgSt|jjd��gS)zs
        Microsoft Windows SDK Setup.

        Return
        ------
        list of str
            paths
        r��Setup)r�rr�r<r�s r�SdkSetupzEnvironmentInfo.SdkSetupss.���;�����I��T�W�*�G�4�4�5�5rc�t��|j}|j�|jdkr-d}|���o|���}n>|���p|���}|jdkp
|jdk}g}|r|�fd��jD��z
}|r|�fd��jD��z
}|S)zv
        Microsoft .NET Framework Tools.

        Return
        ------
        list of str
            paths
        r�TrUc�:��g|]}t�j|����Sr)rre�rjrr�s  �rr�z+EnvironmentInfo.FxTools.<locals>.<listcomp>��6���8�8�8���2�,�c�2�2�8�8�8rc�:��g|]}t�j|����Sr)rrhr�s  �rr�z+EnvironmentInfo.FxTools.<locals>.<listcomp>�r�r)	r�r�r�r�r�r�r�rmrq)r�r��	include32�	include64r�r�s     @r�FxToolszEnvironmentInfo.FxTools�s	����W��
�W���;�$����I��,�,�.�.�.�J�r�7H�7H�7J�7J�3J�I�I��(�(�*�*�A�b�.?�.?�.A�.A�I���'�1�M�R�]�g�5M�I����	8��8�8�8�8�!#�!6�8�8�8�
8�E��	8��8�8�8�8�!#�!6�8�8�8�
8�E��rc��|jdks|jjsgS|j�d���}t|jjd|z��gS)z~
        Microsoft .Net Framework SDK Libraries.

        Return
        ------
        list of str
            paths
        r�Tr�zlib\um%s)r�r�r_r�r�r)r�r�s  r�NetFxSDKLibrariesz!EnvironmentInfo.NetFxSDKLibraries�sU���;����T�W�%8���I��g�(�(�T�(�2�2���T�W�(�+��*C�D�D�E�Erc�j�|jdks|jjsgSt|jjd��gS)z}
        Microsoft .Net Framework SDK Includes.

        Return
        ------
        list of str
            paths
        r�z
include\um)r�r�r_rr�s r�NetFxSDKIncludesz EnvironmentInfo.NetFxSDKIncludes�s8���;����T�W�%8���I��T�W�(�-�8�8�9�9rc�8�t|jjd��gS)z�
        Microsoft Visual Studio Team System Database.

        Return
        ------
        list of str
            paths
        z
VSTSDB\Deployr�r�s r�VsTDbzEnvironmentInfo.VsTDb�s���T�W�)�+;�<�<�=�=rc��|jdkrgS|jdkr(|jj}|j�d���}n|jj}d}d|j|fz}t
||��g}|jdkr|t
||d��gz
}|S)zn
        Microsoft Build Engine.

        Return
        ------
        list of str
            paths
        r5r�Tr�r�zMSBuild\%0.1f\bin%s�Roslyn)r�r�r"r�r�r$r)r��	base_pathr�rK�builds     r�MSBuildzEnvironmentInfo.MSBuild�s����;�����I�
�[�4�
�
���/�I��'�-�-�d�-�;�;�K�K���,�I��K�%���k�(B�B���i��&�&�'���;�$����d�9�d�H�5�5�6�6�E��rc�R�|jdkrgSt|jjd��gS)zt
        Microsoft HTML Help Workshop.

        Return
        ------
        list of str
            paths
        r4zHTML Help Workshop)r�rr�r"r�s r�HTMLHelpWorkshopz EnvironmentInfo.HTMLHelpWorkshop�s/���;�����I��T�W�,�.B�C�C�D�Drc��|jdkrgS|j�d���}t|jjd��}|j}t||�d|����gS)z�
        Microsoft Universal C Runtime SDK Libraries.

        Return
        ------
        list of str
            paths
        r�Tr�r:�ucrt)r�r�r�rr�rY�_ucrt_subdir)r�r�r:r�s    r�
UCRTLibrarieszEnvironmentInfo.UCRTLibraries�sh���;�����I��g�(�(�T�(�2�2���4�7�-�u�5�5���#���S������=�>�>�?�?rc��|jdkrgSt|jjd��}t|d|jz��gS)z�
        Microsoft Universal C Runtime SDK Include.

        Return
        ------
        list of str
            paths
        r�r�z%sucrt)r�rr�rYr�)r�r�s  r�UCRTIncludeszEnvironmentInfo.UCRTIncludessE���;�����I��t�w�1�9�=�=���W�h��):�:�;�;�<�<rc�,�|jj}|rd|zndS)z�
        Microsoft Universal C Runtime SDK version subdir.

        Return
        ------
        str
            subdir
        r�r�)r�r[r�s  rr�zEnvironmentInfo._ucrt_subdirs#���'�4��%,�4��� � �"�4rc�J�d|jcxkrdkrnngS|jjgS)zk
        Microsoft Visual F#.

        Return
        ------
        list of str
            paths
        r4r5)r�r�rTr�s r�FSharpzEnvironmentInfo.FSharp$s;���$�+�$�$�$�$��$�$�$�$�$��I���(�)�)rc�\�d|jz}|j�d����d��}g}|jj}t
|�dd����}t|��r8t|t|��d��}||t|d��gz
}|t|d	��gz
}d
|jdzzd
t|j��dzzf}tj||��D]*\}}t||||��}	t|	��r|	cS�+dS)
z
        Microsoft Visual C++ runtime redistributable dll.

        Return
        ------
        str
            path
        zvcruntime%d0.dllTr�r�z\Toolsz\RedistrY�onecorerVzMicrosoft.VC%d.CRT�
N)r�r�r�rGr�r)r	rnrrrr(r�r$rr)
r�r`r��prefixes�
tools_path�redist_path�crt_dirsr~�crt_dirrKs
          r�VCRuntimeRedistzEnvironmentInfo.VCRuntimeRedist3sL��'���4�	��g�(�(�T�(�2�2�8�8��>�>�����W�)�
��j�0�0��J�G�G�H�H������	D��{�G�K�,@�,@��,D�E�E�K���d�;�	�&B�&B�C�C�H��T�*�h�/�/�0�0��)�D�K�"�,<�=�(�C���,<�,<�r�,A�B�D��
 )�0��8�D�D�	�	�O�F�G����W�i�@�@�D��d�|�|�
�����
�	�	rTc�.�t|�d|j|j|j|jg|��|�d|j|j|j|j	|j
g|��|�d|j|j|j|jg|��|�d|j
|j|j|j|j|j|j|j|jg	|�����}|jdkrt-|j��r
|j|d<|S)z�
        Return environment dict.

        Parameters
        ----------
        exists: bool
            It True, only return existing paths.

        Return
        ------
        dict
            environment
        r�r:r�rK)r�r:r�rKrru)�dict�_build_pathsr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr�)r��existsrs   r�
return_envzEnvironmentInfo.return_envVsD����%�%�i�'+��'+��'+�'8�'+�'<�'>�'-�.�.��!�!�%�#'�#3�#'�#3�#'�<�#'�#5�#'�#9�	#;�
#)�
*�*��%�%�i�'+�'7�'+�|�'+�'7�'+�~�'7�'-�.�.��"�"�6�$(�L�$(�L�$(�J�$(�M�$(�M�$(�L�$(�L�$(�$9�$(�K�$1�$*�
+�
+�)
�
�
��@�;�"�����(<�!=�!=��)-�)=�C�%�&��
rc���tj�|��}tj|d���t��}tj||��}|r"ttt|����n|}|s6d|�
��z}tj�
|���t|��}	t
j|	��S)aC
        Given an environment variable name and specified paths,
        return a pathsep-separated string of paths containing
        unique, extant, directories from those paths and from
        the environment variable. Raise an error if no paths
        are resolved.

        Parameters
        ----------
        name: str
            Environment variable name
        spec_path_lists: list of str
            Paths
        exists: bool
            It True, only return existing paths.

        Return
        ------
        str
            Pathsep-separated paths
        r�z %s environment variable is empty)r$�chain�
from_iterablerrCrrr��filterr�upperrwr>rxrr)
r�r��spec_path_listsr��
spec_paths�	env_pathsr��extant_pathsr(�unique_pathss
          rr�zEnvironmentInfo._build_paths�s���.�_�2�2�?�C�C�
��K��b�)�)�/�/��8�8�	���
�I�6�6��5;�F�t�F�5�%�0�0�1�1�1����	?�4�t�z�z�|�|�C�C��"�9�9�#�>�>�>�&�|�4�4���|�L�)�)�)r)Nr)T)!rrrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr�r�Es��������.?�?�?�?��	�	��X�	��	�	��X�	��D�D��X�D�&�
?�
?��X�
?��D�D��X�D�(�E�E��X�E��"�"��X�"�H�A�A��X�A�&�7�7��X�7�.�!�!��X�!�F�	'�	'��X�	'�!3�!3�!3�F�
5�
5��X�
5��6�6��X�6�����X��8�
F�
F��X�
F��:�:��X�:��	>�	>��X�	>�����X��6�E�E��X�E��@�@��X�@�"�
=�
=��X�
=��
5�
5��X�
5��*�*��X�*�� � ��X� �D0�0�0�0�d*�*�*�*�*rr�r�))r�r�ior�osrr�os.pathrrrr	r�r�platformr$rD�distutils.errorsrw�#setuptools.extern.packaging.versionr
� setuptools.extern.more_itertoolsr�monkeyr
�systemrrr�r4rLrZrdr�r�r�r�r�r�r�r�rrr�<module>r
s�����������������������0�0�0�0�0�0�0�0�0�0�0�0�
�
�
�
���������������������=�=�=�=�=�=�<�<�<�<�<�<�!�!�!�!�!�!��8�?���	�!�!��M�M�M��������!�!�!�!�!�!�!�!��d�f�f�G�"�"�"�<"�"�"�L����	���$ �$ �$ �N!�!�!�H���4
B�
B�
B�"�"�"�"�Jp
�p
�p
�p
�p
�p
�p
�p
�fv#�v#�v#�v#�v#�v#�v#�v#�rH/�H/�H/�H/�H/�H/�H/�H/�Vb	*�b	*�b	*�b	*�b	*�b	*�b	*�b	*�b	*�b	*r


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.48 PM
root / linksafe
0755
__init__.cpython-311.pyc
12.665 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
_deprecation_warning.cpython-311.pyc
0.688 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
_entry_points.cpython-311.pyc
5.138 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
_imp.cpython-311.pyc
3.63 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
_importlib.cpython-311.pyc
1.97 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
_itertools.cpython-311.pyc
1.188 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
_path.cpython-311.pyc
1.501 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
_reqs.cpython-311.pyc
1.17 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
archive_util.cpython-311.pyc
9.986 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
build_meta.cpython-311.pyc
27.548 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
dep_util.cpython-311.pyc
1.32 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
depends.cpython-311.pyc
7.849 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
discovery.cpython-311.pyc
30.45 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
dist.cpython-311.pyc
62.229 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
errors.cpython-311.pyc
2.942 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
extension.cpython-311.pyc
6.708 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
glob.cpython-311.pyc
6.471 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
installer.cpython-311.pyc
5.543 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
launch.cpython-311.pyc
1.555 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
logging.cpython-311.pyc
2.108 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
monkey.cpython-311.pyc
6.903 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
msvc.cpython-311.pyc
62.736 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
namespaces.cpython-311.pyc
5.59 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
package_index.cpython-311.pyc
59.396 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
py34compat.cpython-311.pyc
0.761 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
sandbox.cpython-311.pyc
26.753 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
unicode_utils.cpython-311.pyc
1.837 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
version.cpython-311.pyc
0.487 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
wheel.cpython-311.pyc
15.19 KB
13 Nov 2023 10.03 PM
root / linksafe
0644
windows_support.cpython-311.pyc
1.461 KB
13 Nov 2023 10.03 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF