MCPcopy Create free account
hub / github.com/numpy/numpy / scaninputline

Function scaninputline

numpy/f2py/f2py2e.py:193–332  ·  view source on GitHub ↗
(inputline)

Source from the content-addressed store, hash-verified

191
192
193def scaninputline(inputline):
194 files, skipfuncs, onlyfuncs, debug = [], [], [], []
195 f, f2, f3, f5, f6, f8, f9, f10 = 1, 0, 0, 0, 0, 0, 0, 0
196 verbose = 1
197 emptygen = True
198 dolc = -1
199 dolatexdoc = 0
200 dorestdoc = 0
201 wrapfuncs = 1
202 buildpath = '.'
203 include_paths, inputline = get_includes(inputline)
204 signsfile, modulename = None, None
205 options = {'buildpath': buildpath,
206 'coutput': None,
207 'f2py_wrapper_output': None}
208 for l in inputline:
209 if l == '':
210 pass
211 elif l == 'only:':
212 f = 0
213 elif l == 'skip:':
214 f = -1
215 elif l == ':':
216 f = 1
217 elif l[:8] == '--debug-':
218 debug.append(l[8:])
219 elif l == '--lower':
220 dolc = 1
221 elif l == '--build-dir':
222 f6 = 1
223 elif l == '--no-lower':
224 dolc = 0
225 elif l == '--quiet':
226 verbose = 0
227 elif l == '--verbose':
228 verbose += 1
229 elif l == '--latex-doc':
230 dolatexdoc = 1
231 elif l == '--no-latex-doc':
232 dolatexdoc = 0
233 elif l == '--rest-doc':
234 dorestdoc = 1
235 elif l == '--no-rest-doc':
236 dorestdoc = 0
237 elif l == '--wrap-functions':
238 wrapfuncs = 1
239 elif l == '--no-wrap-functions':
240 wrapfuncs = 0
241 elif l == '--short-latex':
242 options['shortlatex'] = 1
243 elif l == '--coutput':
244 f8 = 1
245 elif l == '--f2py-wrapper-output':
246 f9 = 1
247 elif l == '--f2cmap':
248 f10 = 1
249 elif l == '--overwrite-signature':
250 options['h-overwrite'] = 1

Callers 1

run_mainFunction · 0.85

Calls 5

get_includesFunction · 0.85
printFunction · 0.85
openFunction · 0.85
outmessFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected