From 41722a5e16616307989d6dcdc2010be4aedc2d76 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sun, 20 Jul 2014 00:14:09 -0500 Subject: [PATCH] Back out get_config_var('SO' -> 'EXT_SUFFIX') --- pyopencl/_cffi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyopencl/_cffi.py b/pyopencl/_cffi.py index e48ad1ae..6c15e0ab 100644 --- a/pyopencl/_cffi.py +++ b/pyopencl/_cffi.py @@ -137,7 +137,12 @@ def _get_wrapcl_so_names(): yield os.path.join(current_directory, "_wrapcl" + ext) from distutils.sysconfig import get_config_var - yield os.path.join(current_directory, "_wrapcl" + get_config_var('EXT_SUFFIX')) + # "SO" is apparently deprecated, but changing this to "EXT_SUFFIX" + # as recommended breaks Py2 and PyPy3, as reported by @yuyichao + # on 2014-07-20. + # + # You've been warned. Change "SO" with care. + yield os.path.join(current_directory, "_wrapcl" + get_config_var("SO")) def _import_library(): -- GitLab