setup_env("CXX") temporary_package_data = [] if android or ios: sdl_libs = ['SDL2'] else: setuplib.package_data.extend([ "DejaVuSans.ttf", "DejaVuSans.txt", ]) try: parse_cflags(["sh", "-c", "sdl2-config --cflags"]) sdl_libs = parse_libs(["sh", "-c", "sdl2-config --libs"]) except: if not windows: raise windeps = os.path.join(os.path.dirname(__file__), "pygame-sdl2_windeps") if not os.path.isdir(windeps): raise sdl_libs = ['SDL2'] setuplib.include_dirs.append(os.path.join(windeps, "include"))
import os import platform import shutil import sys temporary_package_data = [] if android or ios: sdl_libs = ["SDL2"] else: setuplib.package_data.extend(["DejaVuSans.ttf", "DejaVuSans.txt"]) try: parse_cflags(["sh", "-c", "sdl2-config --cflags"]) sdl_libs = parse_libs(["sh", "-c", "sdl2-config --libs"]) except: if not windows: raise windeps = os.path.join(os.path.dirname(__file__), "pygame_sdl2_windeps") if not os.path.isdir(windeps): raise sdl_libs = ["SDL2"] setuplib.include_dirs.append(os.path.join(windeps, "include")) if sys.version_info[0] < 3: