Edit File: sysconfig.pyc
� ��abc�����������@���s_��d��Z��d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�m�Z�m�Z�y�d�d�l�Z�Wn�e �k �r{�d�d�l �Z�n�Xd�d�d�d�d�d �d �d�d�d �d�g�Z�d����Z�e�j �r��e�j�j�e�e�j �����Z�n�e�e�j������Z�e�j�d�k�r(d�e�d�j����k�r(e�e�j�j�e�e�����Z�n��e�j�d�k�rnd�e�d�j����k�rne�e�j�j�e�e�e�����Z�n��e�j�d�k�r�d�e�d�j����k�r�e�e�j�j�e�e�e�����Z�n��d����Z�e����Z�e�a�d����Z�e�j����Z�e�j�d���Z�d����Z�e�j�j ����d�Z!�e�j�d� Z"�e!�d�e!�d�Z#�e�j�j$�e�j%���Z&�e�j�j$�e�j'���Z(�d�a*�d�Z+�d����Z,�d����Z-�d ����Z.�d!����Z/�d"����Z0�d#����Z1�d�d$���Z2�d%����Z3�d&����Z4�d'����Z5�d�d(���Z6�d)����Z7�d*����Z8�d+����Z9�e0����d�e:�d,���Z;�e0����d�e:�d-���Z<�d.����Z=�d/����Z>�d0����Z?�d1����Z@�d2����ZA�d3����ZB�eC�d4�k�r[eB����n��d�S(5���s-���Access to Python's configuration information.i����N(���t���pardirt���realpatht���get_config_h_filenamet���get_config_vart���get_config_varst���get_makefile_filenamet���get_patht���get_path_namest ���get_pathst���get_platformt���get_python_versiont���get_scheme_namest���parse_config_hc���������C���s'���y�t��|����SWn�t�k �r"�|��SXd��S(���N(���R���t���OSError(���t���path(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_safe_realpath"���s���� t���ntt���pcbuildi����s���\pc\vi����s���\pcbuild\amd64i�c����������C���s=���x6�d�D].�}��t��j�j�t��j�j�t�d�|������r�t�Sq�Wt�S(���Ns ���Setup.dists���Setup.localt���Modules(���s ���Setup.dists���Setup.local(���t���osR���t���isfilet���joint ���_PROJECT_BASEt���Truet���False(���t���fn(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���is_python_build:���s���� $c����������C���s����t��s��d�d�l�m�}��t�j�d�d���d�}�|��|���}�|�j�d���}�|�sY�t�d�����|�j������}�t�j �|���Wd��QXt �r��x7�d�D],�}�t�j�|�d �d���t�j�|�d�d ���q��Wn��t�a��n��d��S(���Ni���(���t���findert���.i���i����s ���sysconfig.cfgs���sysconfig.cfg existst���posix_prefixt ���posix_homet���includes���{srcdir}/Includet���platincludes���{projectbase}/.(���R���R���( ���t ���_cfg_readt ���resourcesR���t���__name__t���rsplitt���findt���AssertionErrort ���as_streamt���_SCHEMESt���readfpt ���_PYTHON_BUILDt���setR���(���R���t���backport_packaget���_findert���_cfgfilet���st���scheme(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_ensure_cfg_readD���s���� s���\{([^{]*?)\}c������������s-��t�����|��j�d���r(�|��j�d���}�n �t����}�|��j����}�xb�|�D]Z�}�|�d�k�r\�qD�n��x?�|�D]7�\�}�}�|��j�|�|���r��qc�n��|��j�|�|�|���qc�WqD�W|��j�d���xw�|��j����D]i�}�t�|��j�|�����������f�d����}�x<�|��j�|���D]+�\�}�}�|��j�|�|�t �j �|�|�����q��Wq��Wd��S(���Nt���globalsc������������s0���|��j��d���}�|����k�r#����|�S|��j��d���S(���Ni���i����(���t���group(���t���matchobjt���name(���t ���variables(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt ���_replacero���s����(���R1���t���has_sectiont���itemst���tuplet���sectionst ���has_optionR+���t���remove_sectiont���dictt ���_VAR_REPLt���sub(���t���configR2���R;���t���sectiont���optiont���valueR7���(����(���R6���sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_expand_globalsY���s$���� i����i���i���c������������s������f�d����}�t��j�|�|����S(���s����In the string `path`, replace tokens like {some.thing} with the corresponding value from the map `local_vars`. If there is no corresponding value, leave the token unchanged. c������������sJ���|��j��d���}�|����k�r#����|�S|�t�j�k�r=�t�j�|�S|��j��d���S(���Ni���i����(���R3���R���t���environ(���R4���R5���(���t ���local_vars(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR7�������s����(���R?���R@���(���R���RG���R7���(����(���RG���sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_subst_vars����s����c���������C���sI���|��j�����}�x6�|�j����D](�\�}�}�|�|�k�r7�q�n��|�|��|�<q�Wd��S(���N(���t���keysR9���(���t���target_dictt ���other_dictt���target_keyst���keyRD���(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_extend_dict����s ����c���������C���s����i��}�|�d��k�r�i��}�n��t�|�t������x`�t�j�|����D]O�\�}�}�t�j�d�k�rk�t�j�j�|���}�n��t�j�j �t �|�|�����|�|�<q;�W|�S(���Nt���posixR���(���RO���R���(���t���NoneRN���R���R(���R9���R���R5���R���t ���expandusert���normpathRH���(���R0���t���varst���resRM���RD���(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_expand_vars����s���� #c������������s������f�d����}�t��j�|�|����S(���Nc������������s0���|��j��d���}�|����k�r#����|�S|��j��d���S(���Ni���i����(���R3���(���R4���R5���(���RS���(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR7�������s����(���R?���R@���(���RD���RS���R7���(����(���RS���sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���format_value����s����c�����������C���s���t��j�d�k�r�d�St��j�S(���NRO���R���(���R���R5���(����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_get_default_scheme����s����c����������C���s����t��j�j�d�d����}��d����}�t��j�d�k�r_�t��j�j�d���pB�d�}�|��rO�|��S|�|�d���Sn��t�j�d�k�r��t�d���}�|�r��|��r��|��S|�d�d �|�d �t�j�d� ��Sq��n��|��r��|��S|�d�d���Sd��S( ���Nt���PYTHONUSERBASEc����������W���s���t��j�j�t��j�j�|�������S(���N(���R���R���RQ���R���(���t���args(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���joinuser����s����R���t���APPDATAt���~t���Pythont���darwint���PYTHONFRAMEWORKt���Librarys���%d.%di���s���.local( ���R���RF���t���getRP���R5���t���syst���platformR���t���version_info(���t���env_baseRZ���t���baset ���framework(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_getuserbase����s"���� c���������C���s���t��j�d���}�t��j�d���}�t��j�d���}�|�d�k�rB�i��}�n��i��}�i��}�t�j�|��d�d�d�d����}�|�j����}�Wd�QXx��|�D]��} �| �j�d ���s��| �j����d �k�r��q��n��|�j�| ���} �| �r��| �j �d�d���\�}�}�|�j����}�|�j �d �d ���} �d�| �k�r|�|�|�<q]y�t�|���}�Wn'�t�k �rO|�j �d �d���|�|�<q]X|�|�|�<q��q��Wt �|�j������}�d�}�x/t�|���d�k�r�xt�|���D]}�|�|�}�|�j�|���p�|�j�|���} �| �d�k �r�| �j �d���}�t�}�|�|�k�r t�|�|���}�n��|�|�k�rt�}�n��|�t�j�k�r=t�j�|�}�nr�|�|�k�r�|�j�d���rq|�d�|�k�rqd �}�q�d�|�|�k�r�t�}�q�t�|�d�|���}�n�d �|�|�<}�|�r�|�| �j����}�|�| �j���� |�|�}�d�|�k�r�|�|�|�<q�y�t�|���}�Wn!�t�k �r)|�j����|�|�<n�X|�|�|�<|�j�|���|�j�d���r�|�d�|�k�r�|�d�}�|�|�k�r�|�|�|�<q�q�q�q�|�|�|�<|�j�|���q�Wq|Wx<�|�j����D].�\�}�}�t�|�t���r�|�j����|�|�<q�q�W|�j�|���|�S(���s����Parse a Makefile-style file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. s"���([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)s���\$\(([A-Za-z][A-Za-z0-9_]*)\)s���\${([A-Za-z][A-Za-z0-9_]*)}t���encodings���utf-8t���errorst���surrogateescapeNt���#t����i���i���s���$$t���$t���CFLAGSt���LDFLAGSt���CPPFLAGSi����t���PY_i���(���Ro���Rp���Rq���(���t���ret���compileRP���t���codecst���opent ���readlinest ���startswitht���stript���matchR3���t���replacet���intt ���ValueErrort���listRI���t���lenR:���t���searchR���t���strR���R���RF���t���endt���startt���removeR9���t ���isinstancet���update(���t���filenameRS���t���_variable_rxt���_findvar1_rxt���_findvar2_rxt���donet���notdonet���ft���linest���linet���mt���nt���vt���tmpvR6���t���renamed_variablesR5���RD���t���foundt���itemt���aftert���k(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_parse_makefile����s����� ! c����������C���s`���t��r�t�j�j�t�d���St�t�d���r>�d�t�t�j�f�}��n�d�}��t�j�j�t �d���|��d���S(���s ���Return the path of the Makefile.t���Makefilet���abiflagss���config-%s%sRA���t���stdlib( ���R*���R���R���R���R���t���hasattrRb���t���_PY_VERSION_SHORTR����R���(���t���config_dir_name(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR���M��s����c���������C���s��t�����}�y�t�|�|����WnL�t�k �rh�}�d�|�}�t�|�d���rY�|�d�|�j�}�n��t�|�����n�Xt����}�y&�t�|�����}�t�|�|����Wd�QXWnL�t�k �r��}�d�|�}�t�|�d���r��|�d�|�j�}�n��t�|�����n�Xt�r��|��d�|��d�<n��d�S(���s7���Initialize the module as appropriate for POSIX systems.s.���invalid Python installation: unable to open %st���strerrors��� (%s)Nt ���BLDSHAREDt���LDSHARED( ���R���R����t���IOErrorR����R����R���Rv���R���R*���(���RS���t���makefilet���et���msgt���config_hR����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_init_posixX��s&���� c���������C���sq���t��d���|��d�<t��d���|��d�<t��d���|��d�<d�|��d�<d �|��d �<t�|��d�<t�j�j�t�t�j�����|��d�<d �S(���s+���Initialize the module as appropriate for NTR����t���LIBDESTt ���platstdlibt ���BINLIBDESTR���t ���INCLUDEPYs���.pydt���SOs���.exet���EXEt���VERSIONt���BINDIRN(���R���t���_PY_VERSION_SHORT_NO_DOTR���R���t���dirnameR���Rb���t ���executable(���RS���(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_init_non_posixt��s���� c���������C���s����|�d�k�r�i��}�n��t�j�d���}�t�j�d���}�x��t�r��|��j����}�|�sR�Pn��|�j�|���}�|�r��|�j�d�d���\�}�}�y�t�|���}�Wn�t�k �r��n�X|�|�|�<q6�|�j�|���}�|�r6�d�|�|�j�d���<q6�q6�W|�S(���s����Parse a config.h-style file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. s"���#define ([A-Z][A-Za-z0-9_]+) (.*) s&���/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/ i���i���i����N( ���RP���Rs���Rt���R���t���readlineRz���R3���R|���R}���(���t���fpRS���t ���define_rxt���undef_rxR����R����R����R����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR������s(���� c����������C���sU���t��r6�t�j�d�k�r-�t�j�j�t�d���}��qB�t�}��n�t�d���}��t�j�j�|��d���S(���s���Return the path of pyconfig.h.R���t���PCR ���s ���pyconfig.h(���R*���R���R5���R���R���R���R���(���t���inc_dir(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR������s���� c�����������C���s���t��t�t�j��������S(���s,���Return a tuple containing the schemes names.(���R:���t���sortedR(���R;���(����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR������s����c�����������C���s ���t��j�d���S(���s*���Return a tuple containing the paths names.R���(���R(���t���options(����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR������s����c���������C���s1���t�����|�r�t�|��|���St�t�j�|������Sd�S(���s����Return a mapping containing an install scheme. ``scheme`` is the install scheme name. If not provided, it will return the default scheme for the current platform. N(���R1���RU���R>���R(���R9���(���R0���RS���t���expand(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR������s���� c���������C���s���t��|�|�|���|��S(���s[���Return a path corresponding to the scheme. ``scheme`` is the install scheme name. (���R���(���R5���R0���RS���R����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR������s����c����������G���s���t��d"�k�rRi��a��t�t��d�<t�t��d�<t�t��d�<t�t��d�<t�d�t�d�t��d�<t�t��d�<t�t��d �<t�t��d �<y�t�j�t��d�<Wn�t �k �r��d�t��d�<n�Xt �j�d#�k�r��t�t����n��t �j�d�k�r��t �t����n��t�j�d�k�r��t����t��d�<n��d�t��k�r t�t��d�<n�t�t��d���t��d�<t�r�t �j�d�k�r�t�}�y�t �j����}�Wn�t�k �red"�}�n�Xt �j�j�t��d���r�|�|�k�r�t �j�j�|�t��d���}�t �j�j�|���t��d�<q�n��t�j�d�k�rRt �j����d�}�t�|�j�d���d���}�|�d�k��rTxGd$�D]D�}�t��|�}�t�j�d�d�|���}�t�j�d�d�|���}�|�t��|�<q WqOd�t �j�k�r�t �j�d�}�xH�d%�D]=�}�t��|�}�t�j�d�d�|���}�|�d�|�}�|�t��|�<qwWn��t��j�d�d���} �t�j �d�| ���} �| �d"�k �rO| �j!�d ���}�t �j�j"�|���sLx:�d&�D]/�}�t��|�}�t�j�d!�d�|���}�|�t��|�<qWqLqOqRn��|��r�g��}�x$�|��D]�} �|�j#�t��j�| �����qeW|�St��Sd"�S('���sy��With no arguments, return a dictionary of all configuration variables relevant for the current platform. On Unix, this means every variable defined in Python's installed Makefile; On Windows and Mac OS it's a much smaller set. With arguments, return a list of values that result from looking up each argument in the configuration variable dictionary. t���prefixt���exec_prefixt ���py_versiont���py_version_shorti����i���t���py_version_nodotRf���t���platbaset���projectbaseR����Rm���R���t���os2RO���s���2.6t���userbaset���srcdirR^���R���i���Rp���t ���BASECFLAGSRo���t ���PY_CFLAGSR����s ���-arch\s+\w+\st��� s���-isysroot [^ ]*t ���ARCHFLAGSs���-isysroot\s+(\S+)i���s���-isysroot\s+\S+(\s|$)N(���R���R����(���Rp���R����Ro���R����R����(���Rp���R����Ro���R����R����(���Rp���R����Ro���R����R����($���t���_CONFIG_VARSRP���t���_PREFIXt���_EXEC_PREFIXt���_PY_VERSIONR����R���Rb���R����t���AttributeErrorR���R5���R����R����t���versionRh���R���R*���t���getcwdR ���R���t���isabsR���RR���Rc���t���unameR|���t���splitRs���R@���RF���Ra���R����R3���t���existst���append(���RY���Rf���t���cwdR����t���kernel_versiont ���major_versionRM���t���flagst���archRo���R����t���sdkt���valsR5���(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR������s����� c���������C���s���t�����j�|����S(���s����Return the value of a single variable using the dictionary returned by 'get_config_vars()'. Equivalent to get_config_vars().get(name) (���R���Ra���(���R5���(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR���R��s����c����������C���s`��t��j�d�k�r��d�}��t�j�j�|����}�|�d�k�r:�t�j�St�j�j�d�|���}�t�j�|�t�|����|�!j����}�|�d�k�r�d�S|�d�k�r��d�St�j�St��j�d �k�s��t�t��d ���r��t�j�St��j ����\�}�}�}�}�}�|�j����j �d�d���}�|�j �d �d���}�|�j �d�d���}�|�d� d�k�r1d�|�|�f�S|�d� d�k�r|�d�d�k�rOd�}�d�t�|�d���d�|�d�f�}�qOn�|�d� d�k�r�d�|�|�f�S|�d� d�k�r�d�|�|�|�f�S|�d� d�k�r d�}�t�j �d ���} �| �j�|���} �| �rO| �j����}�qOnE|�d� d!�k�rOt����}�|�j�d"���}�t�r�|�} �y�t�d#���}�Wn�t�k �raq�Xz�t�j�d$�|�j������} �Wd%�|�j����X| �d%�k �r�d&�j�| �j�d'���j�d&���d� ��} �q�n��|�s�| �}�n��|�rO|�}�d(�}�| �d&�d)�k�r�d*�t����j�d+�d���j����k�r�d,�}�t����j�d+���}�t�j�d-�|���}�t�t�t�|�������}�t�|���d'�k�rv|�d�}�qI|�d;�k�r�d,�}�qI|�d<�k�r�d1�}�qI|�d=�k�r�d2�}�qI|�d>�k�r�d4�}�qI|�d?�k�r�d5�}�qIt �d6�|�f�����qL|�d.�k�rt�j!�d@�k�rId0�}�qIqL|�dA�k�rLt�j!�dB�k�r@d3�}�qId/�}�qLqOn��d:�|�|�|�f�S(C���s���Return a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information included depends on the OS; eg. for IRIX the architecture isn't particularly important (IRIX only runs on SGI hardware), but for Linux the kernel version isn't particularly important. Examples of returned values: linux-i586 linux-alpha (?) solaris-2.6-sun4u irix-5.3 irix64-6.2 Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) win-ia64 (64bit Windows on Itanium) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. R���s��� bit (i����t���)t���amd64s ���win-amd64t���itaniums���win-ia64RO���R����t���/Rm���R����t���_t���-i���t���linuxs���%s-%st���sunosi����t���5t���solariss���%d.%si���i���i���t���irixt���aixs���%s-%s.%si���t���cygwins���[\d.]+R^���t���MACOSX_DEPLOYMENT_TARGETs0���/System/Library/CoreServices/SystemVersion.plists=���<key>ProductUserVisibleVersion</key>\s*<string>(.*?)</string>NR���i���t���macosxs���10.4.s���-archRo���t���fats ���-arch\s+(\S+)t���i386t���ppct���x86_64t���intelt���fat3t���ppc64t���fat64t ���universals%���Don't know machine value for archs=%ri ���t���PowerPCt���Power_Macintoshs���%s-%s-%s(���R����R����(���R����R����(���R����R����R����(���R����R����(���R����R����R����R����I�������(���R����R����I�������("���R���R5���Rb���R����R%���Rc���R���t���lowerR����R����R{���R|���Rs���Rt���Rz���R3���R���Ra���R���Rv���R����R����t���readt���closeRP���R���R����Ry���t���findallR:���R����R+���R}���t���maxsize(���R����t���it���jt���lookt���osnamet���hostt���releaseR����t���machinet���rel_reR����t���cfgvarst���macvert ���macreleaseR����t���cflagst���archs(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR ���[��s����� ( + ! c�����������C���s���t��S(���N(���R����(����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyR ������s����c���������C���sZ���xS�t��t�|�j��������D]9�\�}�\�}�}�|�d�k�rC�d�|��GHn��d�|�|�f�GHq�Wd��S(���Ni����s���%s: s ��� %s = "%s"(���t ���enumerateR����R9���(���t���titlet���datat���indexRM���RD���(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_print_dict��s����+c�����������C���sR���d�t�����GHd�t����GHd�t����GHd�GHt�d�t������d�GHt�d�t������d�S( ���s*���Display all information sysconfig detains.s���Platform: "%s"s���Python version: "%s"s!���Current installation scheme: "%s"t���Pathst ���VariablesN(����(����(���R ���R ���RW���R��R���R���(����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���_main��s����t���__main__(D���t���__doc__Ru���R���Rs���Rb���t���os.pathR����R���t���configparsert���ImportErrort���ConfigParsert���__all__R���R����R���R����R���R����R5���R����R���R���R*���R���R!���R1���t���RawConfigParserR(���Rt���R?���RE���R����R����R����R����R����RR���R����R����R����R����RP���R����t ���_USER_BASERH���RN���RU���RV���RW���Rh���R����R���R����R����R���R���R���R���R���R���R���R���R���R ���R ���R��R��R#���(����(����(����sK���/usr/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.pyt���<module>���s���� %%!%! # v � �