diff --git a/cython_setuptools/vendor.py b/cython_setuptools/vendor.py index 7a3e640..493b48a 100644 --- a/cython_setuptools/vendor.py +++ b/cython_setuptools/vendor.py @@ -203,6 +203,11 @@ def create_cython_ext_modules(cython_modules, profile_cython=False, debug=False) args = kwargs.setdefault(args_name, []) if "-g" not in args: args.append("-g") + # Remove custom cython_setuptools options + if "cpp_std" in kwargs: + del kwargs["cpp_std"] + if "tags" in kwargs: + del kwargs["tags"] ext = Extension(**kwargs) ret.append(ext) return ret