We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 449dc20 commit 67f4660Copy full SHA for 67f4660
2 files changed
Makefile
@@ -27,7 +27,7 @@ setup: venv
27
$(PIP) install -r requirements-dev.txt
28
29
.venv/bin/python:
30
- virtualenv .venv
+ test -d .venv || which python3 && python3 -m venv .venv || virtualenv .venv
31
32
.PHONY: clean
33
clean:
@@ -45,7 +45,6 @@ develop: .venv/lib/python*/site-packages/readability-lxml.egg-link
45
.PHONY: clean_all
46
clean_all: clean_venv
47
48
-
49
# ###########
50
# Deploy
51
setup.py
@@ -12,8 +12,8 @@
12
import platform
13
14
mac_ver = platform.mac_ver()[0]
15
- mac_ver_no = int(mac_ver.split(".")[1])
16
- if mac_ver_no < 9:
+ mac_major, mac_minor = mac_ver.split('.')[:2]
+ if int(mac_major) == 10 and int(mac_minor) < 9:
17
print("Using lxml<2.4")
18
lxml_requirement = "lxml<2.4"
19
0 commit comments