Fix macos with bdist_wheel.

This commit is contained in:
sfigato 2019-03-05 15:12:44 +01:00 committed by blallo
parent a2efa60085
commit d205d98eb4
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -22,7 +22,7 @@ import zipfile
GECKO_RELEASE_PATH = "https://github.com/mozilla/geckodriver"
PKG_NAME = "bot_z"
VERSION = "0.2.0"
VERSION = "0.2.1"
AUTHOR = "blallo"
AUTHOR_EMAIL = "blallo@autistici.org"
BIN_PATH = "bin/geckodriver"
@ -115,6 +115,7 @@ PLATFORM_MAP = {
"linux64": "linux64",
"darwin64": "macos",
"darwin32": "macos", # This is impossible (?)
"macos": "macos"
}
@ -134,7 +135,7 @@ def assemble_driver_uri(
platform = "{}64".format(s_platform)
else:
platform = "{}64".format(s_platform)
if "win" in PLATFORM_MAP[platform]:
if "win" in platform:
ext = "zip"
else:
ext = "tar.gz"