404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.146.221.249: ~ $
3

9��f��@s�dZddlZddlZddlZddlZddlZddlmZddl	Z	ddl
mZddlZgZ
dd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�ZdS)z
Monkey patching of distutils.
�N)�
import_module)�sixcCs"tj�dkr|f|jStj|�S)am
    Returns the bases classes for cls sorted by the MRO.

    Works around an issue on Jython where inspect.getmro will not return all
    base classes if multiple classes share the same name. Instead, this
    function will return a tuple containing the class itself, and the contents
    of cls.__bases__. See https://github.com/pypa/setuptools/issues/1024.
    ZJython)�platformZpython_implementation�	__bases__�inspectZgetmro)�cls�r�/usr/lib/python3.6/monkey.py�_get_mros	r
cCs0t|tj�rtnt|tj�r tndd�}||�S)NcSsdS)Nr)�itemrrr	�<lambda>*szget_unpatched.<locals>.<lambda>)�
isinstancerZclass_types�get_unpatched_class�types�FunctionType�get_unpatched_function)r�lookuprrr	�
get_unpatched&srcCs:dd�t|�D�}t|�}|jjd�s6d|}t|��|S)z�Protect against re-patching the distutils if reloaded

    Also ensures that no other distutils extension monkeypatched the distutils
    first.
    css|]}|jjd�s|VqdS)�
setuptoolsN)�
__module__�
startswith)�.0rrrr	�	<genexpr>6sz&get_unpatched_class.<locals>.<genexpr>�	distutilsz(distutils has already been patched by %r)r
�nextrr�AssertionError)rZexternal_bases�base�msgrrr	r/srcCs�tjtj_tjdk}|r"tjtj_tjdkpxd
tjko@dknpxdtjkoZdknpxdtjkotdkn}|r�d	}|tjj	_
t�x"tjtjtj
fD]}tjj|_q�Wtjjtj_tjjtj_d
tjk�r�tjjtjd
_t�dS)N�����
r��zhttps://upload.pypi.org/legacy/zdistutils.command.build_ext)rrr)r r!r")rr)rrr!)rr#)rr#r$)rr)rrr)rZCommandrZcore�sys�version_info�findallZfilelist�configZ
PyPIRCCommandZDEFAULT_REPOSITORY�+_patch_distribution_metadata_write_pkg_file�dist�cmdZDistribution�	extensionZ	Extension�modules�#patch_for_msvc_specialized_compiler)Zhas_issue_12885Zneeds_warehouseZ	warehouse�modulerrr	�	patch_allAs&




r0cCstjjtjj_dS)zDPatch write_pkg_file to also write Requires-Python/Requires-ExternalN)rr*Zwrite_pkg_filerZDistributionMetadatarrrr	r)jsr)cCs*t||�}t|�jd|�t|||�dS)z�
    Patch func_name in target_mod with replacement

    Important - original must be resolved by name to avoid
    patching an already patched function.
    �	unpatchedN)�getattr�vars�
setdefault�setattr)ZreplacementZ
target_mod�	func_name�originalrrr	�
patch_funcqs
r8cCs
t|d�S)Nr1)r2)�	candidaterrr	r�srcs�td��tj�dkrdS�fdd�}tj|d�}tj|d�}yt|d��t|d	��Wntk
rlYnXyt|d
��Wntk
r�YnXyt|d��Wntk
r�YnXdS)z\
    Patch functions in distutils to use standalone Microsoft Visual C++
    compilers.
    zsetuptools.msvcZWindowsNcsLd|krdnd}||jd�}t�|�}t|�}t||�sBt|��|||fS)zT
        Prepare the parameters for patch_func to patch indicated function.
        �msvc9Zmsvc9_Zmsvc14_�_)�lstripr2r�hasattr�ImportError)Zmod_namer6Zrepl_prefixZ	repl_name�repl�mod)�msvcrr	�patch_params�s

z9patch_for_msvc_specialized_compiler.<locals>.patch_paramszdistutils.msvc9compilerzdistutils._msvccompilerZfind_vcvarsallZquery_vcvarsallZ_get_vc_envZgen_lib_options)rr�system�	functools�partialr8r>)rBr:Zmsvc14r)rAr	r.�s&
r.)�__doc__r%Zdistutils.filelistrrrrD�	importlibrrZsetuptools.externrr�__all__r
rrr0r)r8rr.rrrr	�<module>s$	)

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 6.07 KB 0644
__init__.cpython-36.pyc File 6.07 KB 0644
archive_util.cpython-36.opt-1.pyc File 4.95 KB 0644
archive_util.cpython-36.pyc File 4.95 KB 0644
build_meta.cpython-36.opt-1.pyc File 5.62 KB 0644
build_meta.cpython-36.pyc File 5.7 KB 0644
config.cpython-36.opt-1.pyc File 14.64 KB 0644
config.cpython-36.pyc File 14.64 KB 0644
dep_util.cpython-36.opt-1.pyc File 786 B 0644
dep_util.cpython-36.pyc File 786 B 0644
depends.cpython-36.opt-1.pyc File 5.09 KB 0644
depends.cpython-36.pyc File 5.09 KB 0644
dist.cpython-36.opt-1.pyc File 35.9 KB 0644
dist.cpython-36.pyc File 35.94 KB 0644
extension.cpython-36.opt-1.pyc File 1.86 KB 0644
extension.cpython-36.pyc File 1.86 KB 0644
glibc.cpython-36.opt-1.pyc File 1.44 KB 0644
glibc.cpython-36.pyc File 1.44 KB 0644
glob.cpython-36.opt-1.pyc File 3.63 KB 0644
glob.cpython-36.pyc File 3.69 KB 0644
launch.cpython-36.opt-1.pyc File 785 B 0644
launch.cpython-36.pyc File 785 B 0644
lib2to3_ex.cpython-36.opt-1.pyc File 2.31 KB 0644
lib2to3_ex.cpython-36.pyc File 2.31 KB 0644
monkey.cpython-36.opt-1.pyc File 4.5 KB 0644
monkey.cpython-36.pyc File 4.5 KB 0644
msvc.cpython-36.opt-1.pyc File 33.66 KB 0644
msvc.cpython-36.pyc File 33.66 KB 0644
namespaces.cpython-36.opt-1.pyc File 3.52 KB 0644
namespaces.cpython-36.pyc File 3.52 KB 0644
package_index.cpython-36.opt-1.pyc File 31.41 KB 0644
package_index.cpython-36.pyc File 31.41 KB 0644
pep425tags.cpython-36.opt-1.pyc File 7.1 KB 0644
pep425tags.cpython-36.pyc File 7.1 KB 0644
py27compat.cpython-36.opt-1.pyc File 742 B 0644
py27compat.cpython-36.pyc File 742 B 0644
py31compat.cpython-36.opt-1.pyc File 1.45 KB 0644
py31compat.cpython-36.pyc File 1.45 KB 0644
py33compat.cpython-36.opt-1.pyc File 1.3 KB 0644
py33compat.cpython-36.pyc File 1.3 KB 0644
py36compat.cpython-36.opt-1.pyc File 2.09 KB 0644
py36compat.cpython-36.pyc File 2.09 KB 0644
sandbox.cpython-36.opt-1.pyc File 15.29 KB 0644
sandbox.cpython-36.pyc File 15.29 KB 0644
site-patch.cpython-36.opt-1.pyc File 1.4 KB 0644
site-patch.cpython-36.pyc File 1.4 KB 0644
ssl_support.cpython-36.opt-1.pyc File 6.56 KB 0644
ssl_support.cpython-36.pyc File 6.56 KB 0644
unicode_utils.cpython-36.opt-1.pyc File 1.07 KB 0644
unicode_utils.cpython-36.pyc File 1.07 KB 0644
version.cpython-36.opt-1.pyc File 259 B 0644
version.cpython-36.pyc File 259 B 0644
wheel.cpython-36.opt-1.pyc File 6.01 KB 0644
wheel.cpython-36.pyc File 6.04 KB 0644
windows_support.cpython-36.opt-1.pyc File 942 B 0644
windows_support.cpython-36.pyc File 942 B 0644