diff --git a/build_ext.py b/build_ext.py index 4d50535..6478117 100644 --- a/build_ext.py +++ b/build_ext.py @@ -42,8 +42,8 @@ def build_extension(debug: bool = False, use_temp_dir: bool = False) -> None: ] if uname.system == 'Linux' and 'CIBUILDWHEEL' in os.environ: - cmake_args += f"-DPYTHON_INCLUDE_DIR={sysconfig.get_path('include')}" - cmake_args += f"-DPYTHON_LIBRARY={str(Path(sysconfig.get_config_var('LIBDIR')) / Path(sysconfig.get_config_var('LDLIBRARY')))}" + cmake_args += [f"-DPYTHON_INCLUDE_DIR={sysconfig.get_path('include')}"] + cmake_args += [f"-DPYTHON_LIBRARY={str(Path(sysconfig.get_config_var('LIBDIR')) / Path(sysconfig.get_config_var('LDLIBRARY')))}"] build_args = ["--config Release", "--verbose"] # cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 /path/to/src