From cecbc6a5fe045eab26bb3a64167eebaa33de34d0 Mon Sep 17 00:00:00 2001 From: Bastian Bechtold Date: Sun, 12 Apr 2015 13:40:45 +0200 Subject: [PATCH] small refactoring --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 588cd18..e5ba9b8 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,9 @@ def run_tests(self): cmdclass = {'test': PyTest} try: from wheel.bdist_wheel import bdist_wheel - +except ImportError: + pass +else: # This will create OS-dependent, but Python-independent wheels class bdist_wheel_half_pure(bdist_wheel): def get_tag(self): @@ -65,8 +67,6 @@ def get_tag(self): return pythons, 'none', oses cmdclass['bdist_wheel'] = bdist_wheel_half_pure -except ImportError: - pass setup( name='PySoundFile',