From 89072daf1f7511cf4cf2e6a23b991274b1e7f08a Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 24 May 2018 17:00:38 +0200 Subject: [PATCH] Default to non-shipped ext header after all --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 3a66674d..1c9ca77d 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ def get_config_schema(): Switch("CL_TRACE", False, "Enable OpenCL API tracing"), Switch("CL_ENABLE_GL", False, "Enable OpenCL<->OpenGL interoperability"), Switch( - "CL_USE_SHIPPED_EXT", True, + "CL_USE_SHIPPED_EXT", False, "Use the pyopencl version of CL/cl_ext.h which includes" + " a broader range of vendor-specific OpenCL extension attributes" + " than the standard Khronos (or vendor specific) CL/cl_ext.h."), @@ -126,7 +126,7 @@ def main(): major, minor = [int(x) for x in conf["CL_PRETEND_VERSION"].split(".")] extra_defines["PYOPENCL_PRETEND_CL_VERSION"] = \ 0x1000*major + 0x10 * minor - except: + except Exception: print("CL_PRETEND_VERSION must be of the form M.N, " "with two integers M and N") raise -- GitLab