rewrite build system to build separate binary wheels for each platform. only tested on Linux so far. should fix #25.

This commit is contained in:
richard 2021-06-12 18:42:39 +01:00
parent 76121e34a9
commit 9eddc4e528
24 changed files with 148 additions and 25686 deletions

View file

@ -1,5 +1,6 @@
import pathlib
from setuptools import setup
from setuptools.dist import Distribution
# The directory containing this file
HERE = pathlib.Path(__file__).parent
@ -7,6 +8,11 @@ HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
class BinaryDistribution(Distribution):
"""Distribution which always forces a binary package with platform name"""
def has_ext_modules(foo):
return True
# This call to setup() does all the work
setup(
name="raylib",
@ -21,6 +27,7 @@ setup(
classifiers=[
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
@ -28,5 +35,6 @@ setup(
packages=["raylib", "raylib.dynamic", "raylib.static"],
include_package_data=True,
install_requires=["cffi>=1.14.0","inflection"],
#cffi_modules=["raylib/build_mac.py:ffibuilder"], # this would build libs whenever the module is installed, but we are distributing static libs instead
distclass=BinaryDistribution,
cffi_modules=["raylib/static/build.py:ffibuilder"], # this would build libs whenever the module is installed, but we are distributing static libs instead
)