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"
|
GECKO_RELEASE_PATH = "https://github.com/mozilla/geckodriver"
|
||||||
PKG_NAME = "bot_z"
|
PKG_NAME = "bot_z"
|
||||||
VERSION = "0.2.0"
|
VERSION = "0.2.1"
|
||||||
AUTHOR = "blallo"
|
AUTHOR = "blallo"
|
||||||
AUTHOR_EMAIL = "blallo@autistici.org"
|
AUTHOR_EMAIL = "blallo@autistici.org"
|
||||||
BIN_PATH = "bin/geckodriver"
|
BIN_PATH = "bin/geckodriver"
|
||||||
|
@ -115,6 +115,7 @@ PLATFORM_MAP = {
|
||||||
"linux64": "linux64",
|
"linux64": "linux64",
|
||||||
"darwin64": "macos",
|
"darwin64": "macos",
|
||||||
"darwin32": "macos", # This is impossible (?)
|
"darwin32": "macos", # This is impossible (?)
|
||||||
|
"macos": "macos"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,7 +135,7 @@ def assemble_driver_uri(
|
||||||
platform = "{}64".format(s_platform)
|
platform = "{}64".format(s_platform)
|
||||||
else:
|
else:
|
||||||
platform = "{}64".format(s_platform)
|
platform = "{}64".format(s_platform)
|
||||||
if "win" in PLATFORM_MAP[platform]:
|
if "win" in platform:
|
||||||
ext = "zip"
|
ext = "zip"
|
||||||
else:
|
else:
|
||||||
ext = "tar.gz"
|
ext = "tar.gz"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user