Skip to content

Commit a27244d

Browse files
authored
BLD: fix build failure py3.9.1 on OSX (#38766)
1 parent 7f912a4 commit a27244d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v1.2.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ I/O
4141

4242
Other
4343
~~~~~
44-
-
44+
- Fixed build failure on MacOS 11 in Python 3.9.1 (:issue:`38766`)
4545
-
4646

4747
.. ---------------------------------------------------------------------------

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def run(self):
435435
"MACOSX_DEPLOYMENT_TARGET", current_system
436436
)
437437
if (
438-
LooseVersion(python_target) < "10.9"
438+
LooseVersion(str(python_target)) < "10.9"
439439
and LooseVersion(current_system) >= "10.9"
440440
):
441441
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9"

0 commit comments

Comments
 (0)