diff --git a/setup.py b/setup.py index a1ea85289a..b1c4f69c6b 100644 --- a/setup.py +++ b/setup.py @@ -465,8 +465,7 @@ def run_install_headers(self): for type_file in type_files: pygame_data_files.append(type_file) -_sdl2_data_files = glob.glob(os.path.join(stub_dir, '_sdl2', '*.pyi')) -if _sdl2_data_files: +if _sdl2_data_files := glob.glob(os.path.join(stub_dir, '_sdl2', '*.pyi')): data_files.append(('pygame/_sdl2', _sdl2_data_files)) # add non .py files in lib directory