try
This commit is contained in:
parent
afa5ae9463
commit
30913ef51a
2 changed files with 13 additions and 2 deletions
4
setup.py
4
setup.py
|
@ -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,
|
||||
|
|
Reference in a new issue