Skip to content

Commit 865c202

Browse files
committed
Set min MacOSX req to 10.12
1 parent 0406c46 commit 865c202

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
min-numpy-version: "1.17.3"
3232
min-numpy-hash: "b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe"
3333
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
34+
MACOSX_DEPLOYMENT_TARGET: "10.12"
3435
strategy:
3536
matrix:
3637
os: [ubuntu-18.04, windows-latest, macos-10.15]

doc/devel/dependencies.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ and the capabilities they provide.
4747
* pycairo_ (>= 1.11.0) or cairocffi_ (>= 0.8): for the GTK and/or cairo-based
4848
backends.
4949
* Tornado_ (>=5): for the WebAgg backend.
50+
* OS X/macOS (>=10.12): for the macosx backend.
5051

5152
.. _Tk: https://docs.python.org/3/library/tk.html
5253
.. _PyQt5: https://pypi.org/project/PyQt5/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
New minimum OS X/macOS version
2+
------------------------------
3+
The macosx backend now requires OS X/macOS >= 10.12.

setupext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,8 @@ def get_extensions(self):
731731
'matplotlib.backends._macosx', [
732732
'src/_macosx.m'
733733
])
734-
ext.extra_compile_args.extend(['-Werror'])
735-
ext.extra_link_args.extend(['-framework', 'Cocoa'])
734+
ext.extra_compile_args.extend(['-Werror', '-mmacosx-version-min=10.12'])
735+
ext.extra_link_args.extend(['-framework', 'Cocoa', '-mmacosx-version-min=10.12'])
736736
if platform.python_implementation().lower() == 'pypy':
737737
ext.extra_compile_args.append('-DPYPY=1')
738738
yield ext

0 commit comments

Comments
 (0)