We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c32dcc8 commit df7f8c0Copy full SHA for df7f8c0
lib/matplotlib/__init__.py
@@ -1200,10 +1200,8 @@ def is_interactive():
1200
def _init_tests():
1201
# The version of FreeType to install locally for running the
1202
# tests. This must match the value in `setupext.py`
1203
- if sys.platform.startswith('win') and platform.machine() == 'ARM64':
1204
- LOCAL_FREETYPE_VERSION = '2.11.1'
1205
- else:
1206
- LOCAL_FREETYPE_VERSION = '2.6.1'
+ win_arm64 = sys.platform.startswith('win') and platform.machine() == 'ARM64'
+ LOCAL_FREETYPE_VERSION = '2.11.1' if win_arm64 else '2.6.1'
1207
1208
from matplotlib import ft2font
1209
if (ft2font.__freetype_version__ != LOCAL_FREETYPE_VERSION or
0 commit comments