From da93e19c5d52b48f17e8b824d67358ea5bc8a767 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 5 Dec 2008 16:57:37 +0000 Subject: [PATCH] make setup.py print a friendly error message if it was not configured with boost.python instead of failing to build --- bindings/python/setup.py.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bindings/python/setup.py.in b/bindings/python/setup.py.in index a5898d8a2..4dfb0c9d2 100644 --- a/bindings/python/setup.py.in +++ b/bindings/python/setup.py.in @@ -4,6 +4,11 @@ from distutils.core import setup, Extension import os import platform +if '@BOOST_PYTHON_LIB@' == '': + print 'You need to pass --enable-python-binding to configure in order ', + print 'to properly use this setup. There is no boost.python library configured now' + sys.exit(1) + def parse_cmd(cmdline, prefix, keep_prefix = False): ret = [] for token in cmdline.split():