From b4309c069f4db09246d43992691cc1ddf9fcce66 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 5 Sep 2024 12:40:03 +0200 Subject: [PATCH] Clarify need for build-windows-wheel.py. --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index 76312d32..560dafa7 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,16 @@ from pybind11.setup_helpers import Pybind11Extension if os.environ.get("MPLCAIRO_NO_PYCAIRO", ""): cairo = None +elif os.name == "nt": + sys.exit("""\ +=============================================================================== +On Windows, please use the tools/build-windows-wheel.py tool to build an +installable wheel. Directly installing from a source tree is not supported. +You may set the MPLCAIRO_NO_PYCAIRO environment variable to clear this message, +if all necessary dependencies have been manually installed as described in the +README. +=============================================================================== +""") else: import cairo