8000 prettify · matplotlib/matplotlib@24217e5 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 24217e5

Browse files
committed
prettify
1 parent 89c582d commit 24217e5

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

setupext.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ def get_base_dirs():
143143
return options['basedirlist']
144144

145145
basedir_map = {
146-
'win32': ['win32_static',],
146+
'win32': ['win32_static'],
147147
'darwin': ['/usr/local/', '/usr', '/usr/X11', '/opt/local'],
148-
'sunos5': [os.getenv('MPLIB_BASE') or '/usr/local',],
148+
'sunos5': [os.getenv('MPLIB_BASE') or '/usr/local'],
149149
'gnu0': ['/usr'],
150150
'aix5': ['/usr/local'],
151151
}
@@ -588,8 +588,7 @@ def get_py_modules(self):
588588

589589
def get_package_data(self):
590590
return {
591-
'matplotlib':
592-
[
591+
'matplotlib': [
593592
'mpl-data/fonts/afm/*.afm',
594593
'mpl-data/fonts/pdfcorefonts/*.afm',
595594
'mpl-data/fonts/pdfcorefonts/*.txt',
@@ -610,8 +609,9 @@ def get_package_data(self):
610609
'backends/web_backend/jquery/css/themes/base/*.*',
611610
'backends/web_backend/jquery/css/themes/base/images/*',
612611
'backends/web_backend/css/*.*',
613-
'backends/Matplotlib.nib/*'
614-
]}
612+
'backends/Matplotlib.nib/*',
613+
],
614+
}
615615

616616

617617
class SampleData(OptionalPackage):
@@ -707,8 +707,8 @@ def check(self):
707707

708708
ext = make_extension('test', [])
709709
ext.include_dirs.append(numpy.get_include())
710-
if not has_include_file(
711-
ext.include_dirs, os.path.join("numpy", "arrayobject.h")):
710+
if not has_include_file(ext.include_dirs,
711+
os.path.join("numpy", "arrayobject.h")):
712712
raise CheckFailed(
713713
"The C headers for numpy could not be found. You"
714714
"may need to install the development package.")
@@ -768,12 +768,12 @@ def check(self):
768768
def add_flags(self, ext):
769769
if self.found_external and not 'sdist' in sys.argv:
770770
support_dir = os.path.normpath(
771-
os.path.join(
772-
sys.prefix,
773-
'share',
774-
'python%d.%d' % (
775-
sys.version_info[0], sys.version_info[1]),
776-
'CXX'))
771+
os.path.join(
772+
sys.prefix,
773+
'share',
774+
'python%d.%d' % (sys.version_info[0], sys.version_info[1]),
775+
'CXX')
776+
)
777777
if not os.path.exists(support_dir):
778778
# On Fedora 17, these files are installed in /usr/share/CXX
779779
support_dir = '/usr/src/CXX'
@@ -1197,7 +1197,7 @@ def parse_tcl_config(self, tcl_lib_dir, tk_lib_dir):
11971197
"/usr/lib/tcl" + str(Tkinter.TclVersion),
11981198
"/usr/lib"]
11991199
tk_poss = [tk_lib_dir,
1200-
os.path.normpath(os.path.join(tk_lib_dir, '..')),
1200+
os.path.normpath(os.path.join(tk_lib_dir, '..')),
12011201
"/usr/lib/tk" + str(Tkinter.TkVersion),
12021202
"/usr/lib"]
12031203
for ptcl, ptk in zip(tcl_poss, tk_poss):
@@ -1265,9 +1265,9 @@ def guess_tcl_config(self, tcl_lib_dir, tk_lib_dir, tk_ver):
12651265

12661266
if not os.path.exists(tcl_inc):
12671267
# this is a hack for suse linux, which is broken
1268-
if (sys.platform.startswith('linux') and
1269-
os.path.exists('/usr/include/tcl.h') and
1270-
os.path.exists('/usr/include/tk.h')):
1268+
if all([sys.platform.startswith('linux'),
1269+
os.path.exists('/usr/include/tcl.h'),
1270+
os.path.exists('/usr/include/tk.h')]):
12711271
tcl_inc = '/usr/include'
12721272
tk_inc = '/usr/include'
12731273

@@ -1469,9 +1469,9 @@ def getoutput(s):
14691469
(flag.startswith('-l') or flag.startswith('-L'))])
14701470

14711471
# visual studio doesn't need the math library
1472-
if (sys.platform == 'win32' and
1473-
win32_compiler == 'msvc' and
1474-
'm' in ext.libraries):
1472+
if all([sys.platform == 'win32',
1473+
win32_compiler == 'msvc',
1474+
'm' in ext.libraries]):
14751475
ext.libraries.remove('m')
14761476

14771477
elif sys.platform != 'win32':

0 commit comments

Comments
 (0)
0