Skip to content

Commit cecbc6a

Browse files
committed
small refactoring
1 parent 14c1a21 commit cecbc6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def run_tests(self):
4646
cmdclass = {'test': PyTest}
4747
try:
4848
from wheel.bdist_wheel import bdist_wheel
49-
49+
except ImportError:
50+
pass
51+
else:
5052
# This will create OS-dependent, but Python-independent wheels
5153
class bdist_wheel_half_pure(bdist_wheel):
5254
def get_tag(self):
@@ -65,8 +67,6 @@ def get_tag(self):
6567
return pythons, 'none', oses
6668

6769
cmdclass['bdist_wheel'] = bdist_wheel_half_pure
68-
except ImportError:
69-
pass
7070

7171
setup(
7272
name='PySoundFile',

0 commit comments

Comments
 (0)