Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ad9b15

Browse files
committed
ENH: use env MPLLOCALFREETYPE for local freetype
'or' the env value (defaults to False) with the value from setup.cfg
1 parent c878912 commit 5ad9b15

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

doc/devel/testing.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ matplotlib source directory::
4949
[test]
5050
local_freetype = True
5151

52+
or by setting the ``MPLLOCALFREETYPE`` environmental variable to any true
53+
value.
54+
5255
Running the tests
5356
-----------------
5457

@@ -65,7 +68,7 @@ commands, such as:
6568
``--no-network`` Disable tests that require network access
6669
======================== ===========
6770

68-
Additional arguments are passed on to nosetests. See the nose
71+
Additional arguments are passed on to nosetests. See the nose
6972
documentation for supported arguments. Some of the more important ones are given
7073
here:
7174

setupext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
else:
7575
config = None
7676

77+
lft = bool(os.environ.get('MPLLOCALFREETYPE', False))
78+
options['local_freetype'] = lft or options['local_freetype']
79+
7780

7881
def get_win32_compiler():
7982
"""

0 commit comments

Comments
 (0)