Skip to content

Commit 79c4413

Browse files
committed
Merge pull request #8066 from lepture/bdist-wheel
Fix bdist_wheel. Add Tag information to WHEEL dist info.
2 parents add715c + 9b27e3c commit 79c4413

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

setup.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,20 @@ def run(self):
392392
'build': build,
393393
'sdist': CheckSDist}
394394

395+
try:
396+
from wheel.bdist_wheel import bdist_wheel
397+
398+
class BdistWheel(bdist_wheel):
399+
def get_tag(self):
400+
tag = bdist_wheel.get_tag(self)
401+
repl = 'macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64'
402+
if tag[2] == 'macosx_10_6_intel':
403+
tag = (tag[0], tag[1], repl)
404+
return tag
405+
cmdclass['bdist_wheel'] = BdistWheel
406+
except ImportError:
407+
pass
408+
395409
if cython:
396410
suffix = '.pyx'
397411
cmdclass['build_ext'] = CheckingBuildExt

0 commit comments

Comments
 (0)