diff --git a/setup.py b/setup.py index acc1989..c6e314d 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,15 @@ from setuptools import setup import platform + def check_platform(): if platform.system() != "Linux": raise RuntimeError("This package does only support Linux") print("Installing on platform: ", platform.system()) + +check_platform() + setup(name="pyframebuffer", version="1.0", author="Adrian Roß", @@ -16,6 +20,4 @@ def check_platform(): long_description="A linux library written in C and Python to draw with graphic primitives to the framebuffer.", maintainer="Adrian Roß", maintainer_email="adrian.ross@ross-agentur.de", - url="https://github.com/RossAdrian/pyframebuffer", - cmdclass={'install': check_platform} - ) + url="https://github.com/RossAdrian/pyframebuffer")