10000 Fix mac version comparison in setup.py for 10.10 · tanqhnguyen/python-readability@c8c2f88 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8c2f88

Browse files
author
Matthew Peters
committed
Fix mac version comparison in setup.py for 10.10
1 parent 2d4cfdb commit c8c2f88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
if sys.platform == 'darwin':
77
import platform
88
mac_ver = platform.mac_ver()[0]
9-
if mac_ver < '10.9':
9+
mac_ver_no = int(mac_ver.split('.')[1])
10+
if mac_ver_no < 9:
1011
print "Using lxml<2.4"
1112
lxml_requirement = "lxml<2.4"
1213

0 commit comments

Comments
 (0)
0