From 049c332184250e47b9cff68bf9e0f06acc2a26b0 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Fri, 4 Aug 2023 17:30:09 +0100 Subject: [PATCH] setup.py: Check that we are running on Linux Ensure that the platform used is Linux, as we do not support other platforms. --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index f747205ab..64aae32be 100755 --- a/setup.py +++ b/setup.py @@ -19,10 +19,16 @@ import os import sys import itertools +import platform from setuptools import setup, find_packages, find_namespace_packages +plat = platform.system() +if plat != 'Linux': + raise ValueError(f'Only Linux is supported, {plat} is unsupported') + + with open('README.rst', 'r') as f: long_description = f.read() -- GitLab