diff --git a/m4/sage_check_python_for_venv.m4 b/m4/sage_check_python_for_venv.m4 index 363f08c1138..0af447c12c8 100644 --- a/m4/sage_check_python_for_venv.m4 +++ b/m4/sage_check_python_for_venv.m4 @@ -195,7 +195,7 @@ from $distutils_extension import Extension from sys import exit modules = list((Extension("config_check_distutils_cxx", list(("conftest.cpp",)), extra_compile_args=list(("-std=c++11",)), language="c++"),)) -setup(name="config_check_distutils_cxx", ext_modules=modules) +setup(name="config_check_distutils_cxx", ext_modules=modules, py_modules=["conftest"]) exit(0) EOF ])