From: Melissa LeBlanc-Williams Date: Wed, 2 Jul 2025 17:15:42 +0000 (-0700) Subject: Merge pull request #984 from makermelissa/main X-Git-Tag: 8.62.0~2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/2a1ba0b31a66e67b0cfd17a455e02b450b9f80a7?hp=e33c59010c02004f2f5a30bdf6a933cb1361a001 Merge pull request #984 from makermelissa/main Check for Python.h file needed for sysv_ipc --- diff --git a/setup.py b/setup.py index d24a53d..ddfe51f 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ import io import os +import glob from setuptools import setup, find_packages @@ -20,6 +21,12 @@ here = os.path.abspath(os.path.dirname(__file__)) with io.open(os.path.join(here, "README.rst"), encoding="utf-8") as f: long_description = "\n" + f.read() +if not glob.glob("//usr//include//python3.*//Python.h"): + raise RuntimeError( + "This package requires a Python development environment. " + "Please install the python3-dev package for your distribution." + ) + board_reqs = [] if os.path.exists("/proc/device-tree/compatible"): with open("/proc/device-tree/compatible", "rb") as f: