Skip to content

Commit ed91e91

Browse files
committed
allow configuration of disabled GUIs, and enable by default
1 parent d4aa964 commit ed91e91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
except AttributeError:
1616
pass
1717

18-
graphical_backend = False
18+
# skip gui backends if DISABLE_MPL_GUI is defined with any non-empty value
19+
graphical_backend = not (os.environ.get('DISABLE_MPL_GUI', False))
1920

2021
# This dict will be updated as we try to select the best option during
2122
# the build process. However, values in setup.cfg will be used, if

0 commit comments

Comments
 (0)