Fix macos with bdist_wheel.
This commit is contained in:
parent
a2efa60085
commit
d205d98eb4
5
setup.py
5
setup.py
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user