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