@@ -43,28 +43,30 @@ def run_tests(self):
43
43
sys .exit (errno )
44
44
45
45
46
+ cmdclass = {'test' : PyTest }
46
47
try :
47
48
from wheel .bdist_wheel import bdist_wheel
48
49
49
- class _bdist_wheel (bdist_wheel ):
50
+ # This will create OS-dependent, but Python-independent wheels
51
+ class bdist_wheel_half_pure (bdist_wheel ):
50
52
def get_tag (self ):
51
- tag = bdist_wheel .get_tag (self )
52
53
pythons = 'py2.py3.cp26.cp27.cp32.cp33.cp34.cp35.pp27.pp32'
53
54
if platform == 'darwin' :
54
- oses = 'macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_5_x86_64'
55
+ oses = 'macosx_10_6_intel.macosx_10_9_intel.' \
56
+ 'macosx_10_9_x86_64.macosx_10_5_x86_64'
55
57
elif platform == 'win32' :
56
58
if architecture0 == '32bit' :
57
59
oses = 'win32'
58
60
else :
59
61
oses = 'win_amd64'
60
62
else :
63
+ pythons = 'py2.py3'
61
64
oses = 'any'
62
- tag = (pythons , 'none' , oses )
63
- return tag
65
+ return pythons , 'none' , oses
64
66
65
- cmdclass = { 'bdist_wheel' : _bdist_wheel }
67
+ cmdclass [ 'bdist_wheel' ] = bdist_wheel_half_pure
66
68
except ImportError :
67
- cmdclass = {}
69
+ pass
68
70
69
71
setup (
70
72
name = 'PySoundFile' ,
@@ -97,5 +99,5 @@ def get_tag(self):
97
99
],
98
100
long_description = open ('README.rst' ).read (),
99
101
tests_require = ['pytest' ],
100
- cmdclass = dict ( cmdclass , test = PyTest )
102
+ cmdclass = cmdclass ,
101
103
)
0 commit comments