X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/9093e3c9f53abdf1e38d55bf2e7f70645984a8c6..f79764b77c36ff3cf1c72032a84b191f2166c8f4:/setup.py 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: