Skip to content

Commit

Permalink
Allow latest lxml on Mac OS X 10.9, see issue #39 for comments and se…
Browse files Browse the repository at this point in the history
…tup instructions
  • Loading branch information
buriy committed Apr 2, 2014
1 parent d8595b7 commit 1a4d369
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions setup.py
Expand Up @@ -2,14 +2,17 @@
from setuptools import setup, find_packages
import sys

lxml_requirement = "lxml"
if sys.platform == 'darwin':
lxml = "lxml<2.4"
else:
lxml = "lxml"
import platform
mac_ver = platform.mac_ver()[0]
if mac_ver < '10.9':
print "Using lxml<2.4"
lxml_requirement = "lxml<2.4"

setup(
name="readability-lxml",
version="0.3.0.2",
version="0.3.0.3",
author="Yuri Baburov",
author_email="burchik@gmail.com",
description="fast python port of arc90's readability tool",
Expand All @@ -20,7 +23,7 @@
packages=['readability'],
install_requires=[
"chardet",
lxml
lxml_requirement
],
classifiers=[
"Environment :: Web Environment",
Expand Down

0 comments on commit 1a4d369

Please sign in to comment.