Skip to content

Commit

Permalink
A fix for mac version test.
Browse files Browse the repository at this point in the history
  • Loading branch information
buriy committed Aug 1, 2020
1 parent 449dc20 commit 67f4660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -27,7 +27,7 @@ setup: venv
$(PIP) install -r requirements-dev.txt

.venv/bin/python:
virtualenv .venv
test -d .venv || which python3 && python3 -m venv .venv || virtualenv .venv

.PHONY: clean
clean:
Expand All @@ -45,7 +45,6 @@ develop: .venv/lib/python*/site-packages/readability-lxml.egg-link
.PHONY: clean_all
clean_all: clean_venv


# ###########
# Deploy
# ###########
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -12,8 +12,8 @@
import platform

mac_ver = platform.mac_ver()[0]
mac_ver_no = int(mac_ver.split(".")[1])
if mac_ver_no < 9:
mac_major, mac_minor = mac_ver.split('.')[:2]
if int(mac_major) == 10 and int(mac_minor) < 9:
print("Using lxml<2.4")
lxml_requirement = "lxml<2.4"

Expand Down

0 comments on commit 67f4660

Please sign in to comment.