diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-26 22:25:13 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-26 22:25:13 -0700 |
commit | 28531a4dd7acd6dfd32dafca99dcad286041003b (patch) | |
tree | ba2997a63c7d6ff7b79c3d72c709f73ade9005e9 | |
parent | e7bdee56efdf7eea20550148e3e53adf26eec630 (diff) | |
download | mitmproxy-28531a4dd7acd6dfd32dafca99dcad286041003b.tar.gz mitmproxy-28531a4dd7acd6dfd32dafca99dcad286041003b.tar.bz2 mitmproxy-28531a4dd7acd6dfd32dafca99dcad286041003b.zip |
fix lxml installation on py27
-rwxr-xr-x | release/rtool.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/rtool.py b/release/rtool.py index 518257f1..04e1249d 100755 --- a/release/rtool.py +++ b/release/rtool.py @@ -17,6 +17,8 @@ import fnmatch # https://virtualenv.pypa.io/en/latest/userguide.html#windows-notes # scripts and executables on Windows go in ENV\Scripts\ instead of ENV/bin/ +import sys + if platform.system() == "Windows": VENV_BIN = "Scripts" else: @@ -195,7 +197,7 @@ def wheels(): with chdir(DIST_DIR): print("Installing %s..." % project["name"]) # 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", wheel_name()]) |