(pyf_files, modulename='untitled')
| 739 | |
| 740 | |
| 741 | def validate_modulename(pyf_files, modulename='untitled'): |
| 742 | if len(pyf_files) > 1: |
| 743 | raise ValueError("Only one .pyf file per call") |
| 744 | if pyf_files: |
| 745 | pyff = pyf_files[0] |
| 746 | pyf_modname = auxfuncs.get_f2py_modulename(pyff) |
| 747 | if modulename != pyf_modname: |
| 748 | outmess( |
| 749 | f"Ignoring -m {modulename}.\n" |
| 750 | f"{pyff} defines {pyf_modname} to be the modulename.\n" |
| 751 | ) |
| 752 | modulename = pyf_modname |
| 753 | return modulename |
| 754 | |
| 755 | def main(): |
| 756 | if '--help-link' in sys.argv[1:]: |
no test coverage detected