Skip to content

Commit a129407

Browse files
committed
Clarify need for build-windows-wheel.py.
1 parent 6c33d0b commit a129407

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: setup.py

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
from pybind11.setup_helpers import Pybind11Extension
3434
if os.environ.get("MPLCAIRO_NO_PYCAIRO", ""):
3535
cairo = None
36+
elif os.name == "nt":
37+
sys.exit("""\
38+
===============================================================================
39+
On Windows, please use the tools/build-windows-wheel.py tool to build an
40+
installable wheel. Directly installing from a source tree is not supported.
41+
You may set the MPLCAIRO_NO_PYCAIRO environment variable to clear this message,
42+
if all necessary dependencies have been manually installed as described in the
43+
README.
44+
===============================================================================
45+
""")
3646
else:
3747
import cairo
3848

0 commit comments

Comments
 (0)