From b4acab1e49d3bb07738d855d6e25552f1e2644a4 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Sat, 8 Jan 2022 13:01:46 +0800 Subject: [PATCH] Apple's outdated pip won't use wheel file and can't build it --- README.md | 4 ---- __init__.py | 2 +- deps.py | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index a43d9b3..4eab4d4 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,7 @@ Please read [CONTRIBUTING](./docs/CONTRIBUTING.md). - macOS ``` - // install from Homebrew(recommended) $ brew install python - - // or install Apple Command Line Tools - $ xcode-select --install ``` - Windows: use Chocolatey or download from https://www.python.org/downloads diff --git a/__init__.py b/__init__.py index fa241b5..a4c3835 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 from calibre.customize import InterfaceActionBase -VERSION = (3, 16, 0) +VERSION = (3, 16, 1) class WordDumbDumb(InterfaceActionBase): diff --git a/deps.py b/deps.py index dd9d184..498a2e7 100644 --- a/deps.py +++ b/deps.py @@ -30,8 +30,6 @@ def which_python(self): py = '/opt/homebrew/bin/python3' else: py = '/usr/local/bin/python3' - if not Path(py).exists(): - py = '/usr/bin/python3' # command line tools command = 'import platform;' \ 'print(".".join(platform.python_version_tuple()[:2]))' r = subprocess.run([py, '-c', command], check=True,