Skip to content

Commit 1a4d369

Browse files
committed
Allow latest lxml on Mac OS X 10.9, see issue #39 for comments and setup instructions
1 parent d8595b7 commit 1a4d369

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

setup.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
from setuptools import setup, find_packages
33
import sys
44

5+
lxml_requirement = "lxml"
56
if sys.platform == 'darwin':
6-
lxml = "lxml<2.4"
7-
else:
8-
lxml = "lxml"
7+
import platform
8+
mac_ver = platform.mac_ver()[0]
9+
if mac_ver < '10.9':
10+
print "Using lxml<2.4"
11+
lxml_requirement = "lxml<2.4"
912

1013
setup(
1114
name="readability-lxml",
12-
version="0.3.0.2",
15+
version="0.3.0.3",
1316
author="Yuri Baburov",
1417
author_email="[email protected]",
1518
description="fast python port of arc90's readability tool",
@@ -20,7 +23,7 @@
2023
packages=['readability'],
2124
install_requires=[
2225
"chardet",
23-
lxml
26+
lxml_requirement
2427
],
2528
classifiers=[
2629
"Environment :: Web Environment",

0 commit comments

Comments
 (0)