This commit is contained in:
Richard Smith 2024-10-15 18:25:57 +01:00
parent afa5ae9463
commit 30913ef51a
2 changed files with 13 additions and 2 deletions

View file

@ -10,6 +10,8 @@ HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
VERSION = (HERE / "version.py").read_text().split()[-1].strip("\"'")
RAYLIB_PLATFORM = os.getenv("RAYLIB_PLATFORM", "Desktop")
NAME = "raylib_sdl" if RAYLIB_PLATFORM == "SDL" else "raylib"
class BinaryDistribution(Distribution):
"""Distribution which always forces a binary package with platform name"""
@ -18,7 +20,7 @@ class BinaryDistribution(Distribution):
# This call to setup() does all the work
setup(
name="raylib_sdl",
name=NAME,
version=VERSION,
description="Python CFFI bindings for Raylib",
long_description=README,