From: Melissa LeBlanc-Williams Date: Wed, 2 Jul 2025 17:16:19 +0000 (-0700) Subject: Merge pull request #985 from tekktrik/doc/fix-configuration X-Git-Tag: 8.62.0~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/f52e36885180afb86d82e0d579bc62625a00e8c2?hp=47ae3c56429dd87abf6d022d67e0479e89fdbf5a Merge pull request #985 from tekktrik/doc/fix-configuration Fix RTD error, README badge --- 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: