From 37649fc9eddf2c54172a5bbcddc942a63d365206 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Jul 2016 16:13:33 +0530 Subject: [PATCH] oops --- setup/build.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/setup/build.py b/setup/build.py index dbefcd5c09..6e0b930912 100644 --- a/setup/build.py +++ b/setup/build.py @@ -79,12 +79,8 @@ def is_ext_allowed(ext): only = ext.get('only', '') if only: only = only.split() - if iswindows and 'windows' not in only: - return False - if isosx and 'osx' not in only: - return False - if 'linux' not in only: - return False + q = 'windows' if iswindows else 'osx' if isosx else 'linux' + return q in only return True def parse_extension(ext):