forked from pool/python-matplotlib
Marcus Rueckert
91a8eb7a27
- fix build for platform == linux3 (forwarded request 78835 from oertel) OBS-URL: https://build.opensuse.org/request/show/78852 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=10
44 lines
1.8 KiB
Diff
44 lines
1.8 KiB
Diff
--- doc/mpl_examples/api/font_file.py
|
|
+++ doc/mpl_examples/api/font_file.py
|
|
@@ -17,7 +17,7 @@
|
|
|
|
if sys.platform == 'win32':
|
|
fpath = 'C:\\Windows\\Fonts\\Tahoma.ttf'
|
|
-elif sys.platform == 'linux2':
|
|
+elif sys.platform == 'linux2' or sys.platform == 'linux3':
|
|
fonts = ['/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf',
|
|
'/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf',
|
|
'/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf',
|
|
--- examples/api/font_file.py
|
|
+++ examples/api/font_file.py
|
|
@@ -17,7 +17,7 @@
|
|
|
|
if sys.platform == 'win32':
|
|
fpath = 'C:\\Windows\\Fonts\\Tahoma.ttf'
|
|
-elif sys.platform == 'linux2':
|
|
+elif sys.platform == 'linux2' or sys.platform == 'linux3':
|
|
fonts = ['/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf',
|
|
'/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf',
|
|
'/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf',
|
|
--- lib/mpl_examples/api/font_file.py
|
|
+++ lib/mpl_examples/api/font_file.py
|
|
@@ -17,7 +17,7 @@
|
|
|
|
if sys.platform == 'win32':
|
|
fpath = 'C:\\Windows\\Fonts\\Tahoma.ttf'
|
|
-elif sys.platform == 'linux2':
|
|
+elif sys.platform == 'linux2' or sys.platform == 'linux3':
|
|
fonts = ['/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf',
|
|
'/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf',
|
|
'/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf',
|
|
--- setupext.py
|
|
+++ setupext.py
|
|
@@ -53,6 +53,7 @@
|
|
'linux2-hppa' : ['/usr/local', '/usr'],
|
|
'linux2-mips' : ['/usr/local', '/usr'],
|
|
'linux2-sparc' : ['/usr/local', '/usr'],
|
|
+ 'linux3' : ['/usr/local', '/usr'],
|
|
'linux2' : ['/usr/local', '/usr'],
|
|
'linux' : ['/usr/local', '/usr',],
|
|
'cygwin' : ['/usr/local', '/usr',],
|