From 8c52bc1f2acb16d3bc12ea43c82665ebef93285a Mon Sep 17 00:00:00 2001 From: Raghavendra D Prabhu Date: Sun, 3 Apr 2011 01:59:12 +0530 Subject: [PATCH] Added a py3k test to feature tests. Currently, make fails at a later stage when python-devel test succeeds incorrectly for Py3k. This fixes that. Signed-off-by: Raghavendra D Prabhu --- tools/perf/feature-tests.mak | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/perf/feature-tests.mak b/tools/perf/feature-tests.mak index b041ca6..8e5d16a 100644 --- a/tools/perf/feature-tests.mak +++ b/tools/perf/feature-tests.mak @@ -82,6 +82,10 @@ ifndef NO_LIBPYTHON define SOURCE_PYTHON_EMBED #include +#if PY_VERSION_HEX >= 0x03000000 + #error "Python 3 is not yet supported; set PYTHON{,_CONFIG}" +#endif + int main(void) { Py_Initialize(); -- 1.7.4.2