From d205d98eb40df9588096b7645c273629c91bc9f7 Mon Sep 17 00:00:00 2001 From: Blallo Date: Tue, 5 Mar 2019 15:12:44 +0100 Subject: [PATCH] Fix macos with bdist_wheel. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index f1830a3..3082e4d 100644 --- a/setup.py +++ b/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"