Skip to content

Commit

Permalink
Fix recent workflow fail and react on latest flake8 lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RossAdrian committed Jul 22, 2024
1 parent 5f2d769 commit 7a88d97
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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ß",
Expand All @@ -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="[email protected]",
url="https://github.com/RossAdrian/pyframebuffer",
cmdclass={'install': check_platform}
)
url="https://github.com/RossAdrian/pyframebuffer")

0 comments on commit 7a88d97

Please sign in to comment.