Skip to content

Commit

Permalink
Clarify need for build-windows-wheel.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Sep 5, 2024
1 parent 0ef09b2 commit b4309c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b4309c0

Please sign in to comment.