Skip to content

Commit 445ba8f

Browse files
committed
cosmetics in setup.py
1 parent d4cea41 commit 445ba8f

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

python/magic/setup.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
fcompiler = parser.get('libraries', 'fcompiler')
3030
ccompiler = parser.get('libraries', 'ccompiler')
3131
f2pycmd = parser.get('libraries', 'f2pyexec')
32-
else: # Default if the PATH is messed up
32+
else: # Default if the PATH is messed up
3333
backend = 'GTKAgg'
3434
labTex = False
3535
defaultCm = 'seismic'
@@ -92,15 +92,15 @@
9292
omp_options = ''
9393
omp_link = ''
9494

95-
def buildLib(fileName,libName):
95+
def buildLib(fileName, libName):
9696
t2 = os.stat('fortranLib/' + fileName).st_mtime
9797
sos = scanDir(libName + '.*')
9898
if len(sos) >= 1:
9999
t1 = os.stat(sos[-1]).st_mtime
100-
else: # in case the file does not exist t2 is set to t1
100+
else: # In case the file does not exist t2 is set to t1
101101
t1 = t2
102102

103-
if len(sos) < 1 or t2 > t1:
103+
if len(sos) < 1 or t2 > t1:
104104

105105
if (sys.version_info.major == 3 and sys.version_info.minor < 12):
106106
print("Please wait: building {} using distutils...".format(libName))
@@ -127,17 +127,17 @@ def buildLib(fileName,libName):
127127
else:
128128
return 0
129129

130-
fortranFiles=['readG_single.f90','readG_double.f90',
131-
'readPot_single.f90','legendre.f90',
132-
'vtkLib.f90','cyl.f90']
130+
fortranFiles = ['readG_single.f90', 'readG_double.f90',
131+
'readPot_single.f90', 'legendre.f90',
132+
'vtkLib.f90', 'cyl.f90']
133133

134-
sharedLibFiles=['greader_single','greader_double',
135-
'lmrreader_single','legendre',
136-
'vtklib','cylavg']
134+
sharedLibFiles = ['greader_single', 'greader_double',
135+
'lmrreader_single', 'legendre',
136+
'vtklib', 'cylavg']
137137

138-
for fileName,libName in zip(fortranFiles,sharedLibFiles):
139-
return_code = buildLib(fileName,libName)
138+
for fileName, libName in zip(fortranFiles, sharedLibFiles):
139+
return_code = buildLib(fileName, libName)
140140
if return_code != 0:
141-
print("Error in building {}".format(libName))
141+
print('Error in building {}'.format(libName))
142142

143143
os.chdir(startdir)

0 commit comments

Comments
 (0)