From adb5e6f0c42a4c969953af4e97054ff2ceedd60d Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Fri, 22 Jul 2016 21:50:58 +0200 Subject: [PATCH] Make new extensions data code differentiate BSD from Linux. --- setup/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/build.py b/setup/build.py index edfff97b83..84811bd2c7 100644 --- a/setup/build.py +++ b/setup/build.py @@ -79,7 +79,7 @@ def is_ext_allowed(ext): only = ext.get('only', '') if only: only = only.split() - q = 'windows' if iswindows else 'osx' if isosx else 'linux' + q = 'windows' if iswindows else 'osx' if isosx else 'bsd' if isbsd else 'linux' return q in only return True @@ -94,6 +94,8 @@ def parse_extension(ext): ans = ext.pop('windows_' + k, ans) elif isosx: ans = ext.pop('osx_' + k, ans) + elif isbsd: + ans = ext.pop('bsd_' + k, ans) else: ans = ext.pop('linux_' + k, ans) return ans