From f723a804c0c30a8c872eb4a5e7b346112d76de04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 30 Jul 2013 10:04:59 +0200 Subject: [PATCH] fix matheval check in build profiles, currently matheval is always required while it should be only used if present or if requested by user --- uwsgiconfig.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index e7ab607f..a16fab9a 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -919,11 +919,7 @@ class uConf(object): report['capabilities'] = True if self.get('matheval'): - if self.get('matheval') == 'auto' and self.has_include('matheval.h'): - self.cflags.append("-DUWSGI_MATHEVAL") - self.libs.append('-lmatheval') - report['matheval'] = True - else: + if (self.get('matheval') == 'auto' and self.has_include('matheval.h')) or self.get('matheval') == 'true': self.cflags.append("-DUWSGI_MATHEVAL") self.libs.append('-lmatheval') report['matheval'] = True