diff options
| -rwxr-xr-x | numpy/f2py/f2py2e.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index ed5d529cf..90aea7705 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -325,6 +325,16 @@ def scaninputline(inputline): options['buildpath'] = buildpath options['include_paths'] = include_paths options.setdefault('f2cmap_file', None) + if not emptygen: + import warnings + warnings.warn("\n --empty-gen is false" + " this will default to true" + " in subsequent releases" + " for build uniformity\n" + " see: " + "https://numpy.org/devdocs/f2py/buildtools/index.html" + "\n Pass --empty-gen to silence this warning\n", + FutureWarning, stacklevel=2) return files, options |
