mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 19:08:44 +00:00
fix lxml installation on py27
This commit is contained in:
parent
e7bdee56ef
commit
28531a4dd7
@ -17,6 +17,8 @@ import fnmatch
|
|||||||
|
|
||||||
# https://virtualenv.pypa.io/en/latest/userguide.html#windows-notes
|
# https://virtualenv.pypa.io/en/latest/userguide.html#windows-notes
|
||||||
# scripts and executables on Windows go in ENV\Scripts\ instead of ENV/bin/
|
# scripts and executables on Windows go in ENV\Scripts\ instead of ENV/bin/
|
||||||
|
import sys
|
||||||
|
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
VENV_BIN = "Scripts"
|
VENV_BIN = "Scripts"
|
||||||
else:
|
else:
|
||||||
@ -195,7 +197,7 @@ def wheels():
|
|||||||
with chdir(DIST_DIR):
|
with chdir(DIST_DIR):
|
||||||
print("Installing %s..." % project["name"])
|
print("Installing %s..." % project["name"])
|
||||||
# lxml...
|
# lxml...
|
||||||
if os.name == "nt":
|
if platform.system() == "Windows" and sys.version_info[0] == 3:
|
||||||
subprocess.check_call([VENV_PIP, "install", "-q", "https://snapshots.mitmproxy.org/misc/lxml-3.6.0-cp35-cp35m-win32.whl"])
|
subprocess.check_call([VENV_PIP, "install", "-q", "https://snapshots.mitmproxy.org/misc/lxml-3.6.0-cp35-cp35m-win32.whl"])
|
||||||
subprocess.check_call([VENV_PIP, "install", "-q", wheel_name()])
|
subprocess.check_call([VENV_PIP, "install", "-q", wheel_name()])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user