From 2eb7052e0b75812250a27ac60fcfc2bad66347db Mon Sep 17 00:00:00 2001 From: Brock Date: Mon, 28 Dec 2020 15:51:01 -0800 Subject: [PATCH 1/2] BLD: fix build failure py3.9.1 on OSX --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a25fe95e025b3..f9c4a1158fee0 100755 --- a/setup.py +++ b/setup.py @@ -435,7 +435,7 @@ def run(self): "MACOSX_DEPLOYMENT_TARGET", current_system ) if ( - LooseVersion(python_target) < "10.9" + LooseVersion(str(python_target)) < "10.9" and LooseVersion(current_system) >= "10.9" ): os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9" From a13b19bec370f2dcd175f06501d13e70097ff589 Mon Sep 17 00:00:00 2001 From: Brock Date: Mon, 28 Dec 2020 17:32:38 -0800 Subject: [PATCH 2/2] whatsnew --- doc/source/whatsnew/v1.2.1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index e280b730679f0..cbbb0dfcf3b43 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -40,7 +40,7 @@ I/O Other ~~~~~ -- +- Fixed build failure on MacOS 11 in Python 3.9.1 (:issue:`38766`) - .. ---------------------------------------------------------------------------