[pypy-commit] pypy py3.5-ssl: add ssl module in lib_pypy and start to port SSLContext.__init__
plan_rich
pypy.commits at gmail.com
Thu Oct 27 10:27:45 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5-ssl
Changeset: r87958:7a58e3fa8254
Date: 2016-10-27 16:25 +0200
http://bitbucket.org/pypy/pypy/changeset/7a58e3fa8254/
Log: add ssl module in lib_pypy and start to port SSLContext.__init__
diff --git a/pypy/module/imp/interp_imp.py b/pypy/module/imp/interp_imp.py
--- a/pypy/module/imp/interp_imp.py
+++ b/pypy/module/imp/interp_imp.py
@@ -1,19 +1,16 @@
from pypy.module.imp import importing
from rpython.rlib import streamio
-from rpython.rlib.streamio import StreamErrors
from pypy.interpreter.error import oefmt
-from pypy.interpreter.module import Module
from pypy.interpreter.gateway import unwrap_spec
from pypy.interpreter.pycode import PyCode
-from pypy.interpreter.pyparser import pyparse
-from pypy.objspace.std import unicodeobject
from pypy.module._io.interp_iobase import W_IOBase
-from pypy.module._io import interp_io
from pypy.interpreter.streamutil import wrap_streamerror
def extension_suffixes(space):
suffixes_w = []
+ # REVIEW this condition prevents pypy/tools/build_cffi_imports.py to succeed if
+ # pypy was compiled without cpyext module. why nore always append it?
if space.config.objspace.usemodules.cpyext:
suffixes_w.append(space.wrap(importing.get_so_extension(space)))
return space.newlist(suffixes_w)
diff --git a/pypy/tool/build_cffi_imports.py b/pypy/tool/build_cffi_imports.py
--- a/pypy/tool/build_cffi_imports.py
+++ b/pypy/tool/build_cffi_imports.py
@@ -17,6 +17,7 @@
"resource": "_resource_build.py" if sys.platform != "win32" else None,
"lzma": "_lzma_build.py",
"_decimal": "_decimal_build.py",
+ "ssl": "ssl_build.py",
"xx": None, # for testing: 'None' should be completely ignored
}
More information about the pypy-commit
mailing list